Q&A: how asynchronous tasks work together with ASP.NET’s thread pool and IIS?

Posted: (EET/GMT+2)

 

If you are developing ASP.NET web applications (be it WebForms, MVC or Web API), you are surely already taking wide use of asynchronous tasks.

Now, since tasks can run in parallel, and you know that ASP.NET runtime handles its own thread pools and the IIS has its own queues, your question quickly becomes: "How are asynchronous tasks handled within ASP.NET applications?".

If you're into reading a long blog post which details all these things, then be sure to check this post out. It's already from 2010, but very much valid even four years after.

Recommended reading!