ASP.NET request queue priority

Posted by dan on Server Fault See other posts from Server Fault or by dan
Published on 2012-03-27T21:24:21Z Indexed on 2012/03/28 5:32 UTC
Read the original article Hit count: 895

Filed under:
|

I'm on IIS 7 and .NET 4.0. My understanding is that IIS takes requests and passes them off to ASP.NET worker threads. If all the threads are in use, the request goes into a queue and is processed once a thread becomes available. If the queue goes over a certain size, all new requests get a 503 until there is room in the queue again.

Is there a way to prioritize the order in which queued requests are served? For example, I have consumer traffic and infrastructure traffic coming to the same server. If there are no available threads, I'd like for the consumer requests to be served first, even if they have arrived after infrastructure requests. Basically I want to replace the request queue with a priority queue. Is this possible with IIS?

© Server Fault or respective owner

Related posts about iis7

Related posts about ASP.NET