Fail-fast admission control for outbound fetch calls, built on async-bulkhead-ts. Version 0.2.0. Released as needed. Limits concurrent fetch requests to protect downstream HTTP services, rejecting early when capacity is full. Provides optional bounded queueing with timeouts, response-body-aware capacity release, and hooks for stats, close, and drain. Differentiates from rate limiters and circuit breakers by focusing solely on local concurrency enforcement with zero distributed coordination.
npm install async-bulkhead-fetchNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a guarded fetch that limits concurrent requests to 10 and rejects immediately when full. Shows how to import and use createBulkheadFetch.
Upgrade Node.js to version 20 or later.
No action needed.
Provide sensible values for maxConcurrent and maxQueue based on downstream capacity.
Run 'npm install async-bulkhead-fetch' and ensure package.json includes it.
Upgrade Node.js to v20+ or provide a custom fetch implementation via options.