I use ASP.NET with IIS7, and today an error on one of my pages caused the server to go down. The script used ajax to request a resource at a speed of ~ 1000 requests per second. The requests are authenticated, so I know what the user requested on which page.
My question is that either through IHttpModule, or otherwise, how can I limit at the server level the maximum number of requests per second (or minute) that a client can make, and then enter a delay so that their requests are throttled?
source share