Does async and await increase performance of an ASP.Net application

前端 未结 5 1310
梦如初夏
梦如初夏 2020-12-11 15:31

I recently read an article about c#-5 and new & nice asynchronous programming features . I see it works greate in windows application. The question came to

5条回答
  •  悲哀的现实
    2020-12-11 16:04

    Since the code is executed on the server and the user will still have to wait for the response, the question is like - does async call go faster than sync call.

    Well, that depends mostly on the server implementation. For IIS and multiple number of users, too many threads would be spawned per user (even without async) and async would be inefficient. But in case of small amount of users it should be faster.

    One way to see is to try out.

提交回复
热议问题