Express throttling middleware
This middleware throttles the number of concurrent requests and the numbers of requests within in a given interval.
Requests that exceed the limit of requests / interval are added to a queue and will be executed once current requests
finish execution.
If the number of queued requests exceeds the value for maxQueueSize
, the requests will be dropped until an item is
removed from the queue.
Installation
npm install -S multi-throttle
Usage
Add the middleware to your express app and adjust the configuration options.
;; const app = ;app;