O'Reilly logo

Visual Studio 2012 Cookbook by Richard Banks

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Asynchrony and web applications

Web applications don't need to be asynchronous, do they? IIS gives each request its own thread so people don't need to worry about it, right? Even if one request goes slow, all the others will still be processed quickly so it's not really a problem, right?

It's surprising how many times this is said by developers, often the same ones who have slow sites even though they have small user loads and few requests per second. If you want a responsive, scalable web application that supports hundreds or thousands of users per server, you need to make the best use of the hardware you are on and you must consider the problems that are caused by blocking threads.

IIS has limits on the number of requests and I/O threads it uses. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required