node-inflight-requests
Measure the number of inflight requests at any single time in your Node.js server.
Install
npm install node-inflight-requests
Usage
const http = ;const congestion = ;const server = http; { const inflightReqs = ; console; ; if inflightReqs > 100 resstatusCode = 503; // Service Unavailable res; res;}
License
The MIT License (MIT)
Copyright (c) 2019 Vignesh Shanmugam