Express middleware that limits the number of simultaneously processed requests by queuing excess requests. Version 0.0.13, stable but low activity. Supports configurable active limit and queued limit with optional custom rejection handler. Uses MiniQueue internally. Differentiates from simple rate-limiters by queuing rather than dropping requests immediately.
npm install express-queueVerified import paths — ran on the pinned version, not inferred.
Sets up Express with queue middleware limiting concurrent requests to 2, queueing excess requests without rejection.
Set queuedLimit to -1 for unlimited queue, or a positive integer for limited queue.
Ensure app.use(queue(...)) is called before any route definitions.
Set activeLimit to at least 1 to allow processing.
Use const queue = require('express-queue'); then use queue({...}) as middleware.Run 'npm install express-queue' and check package.json for correct spelling.
In Node.js CJS: const queue = require('express-queue'); in ESM: import queue from 'express-queue';