Posts

Showing posts with the label Async web request

C# 5.0 Features : Async Programining

5 Ways of Doing Asyncronous programming. Async Vs Sync. Syncronous web request  makes threads waiting for the request to return.  This position aggrevates when the services are slow or services are timing out due to some problem in services. for example : lets say service is a waiter in a restaurent and request is client ordering for food then. incase of syncronous service the waiter will keep waiting while the client eats food and leave from there. Async Web request makes threads request for the service call and it gets relieved as soon as call is made to the service. so, that it can cater to other requests. And when the service returns the data a free thread will pick up the returned value and will return the result to the client origionally requested for it. for example : lets say service is a waiter in a restaurent and request is client ordering for food then. incase of asyncronous service the waiter will go to  client2  while the client1 eats ...