Search code examples
asp.net-mvcasp.net-mvc-3threadpoolasynccontroller

Asynchronous Controllers at ASP.NET 4 make sense?


Asp.net 2 have 12 threads by default

Now Asp.Net 4 have 5000. We still need async controllers?


Solution

  • We still need async controllers?

    Yes. Async controllers are useful in situations where you have lengthy operations such as network calls and you don't want to monopolize worker threads for them. The fact that there are 5000 worker threads by default doesn't mean that you have to waste them. Is it because you are a millionaire that you are giving away your money? No.

    Obviously if you don't use async controllers correctly they will do more harm than good.