A simple request or action queue that pipelines requests for long-running resources, batching callbacks to reduce load. Version 2.0.0 uses CommonJS. Unlike general-purpose queues (e.g., Bull or Bee-Queue), pipeline-queue focuses on deduplicating concurrent requests for the same resource key, ensuring the resource only handles one request at a time. Suitable for rate-limiting or caching expensive operations.
npm install pipeline-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create a queue and run a task with two callbacks for the same key, demonstrating deduplication.
Ensure your task function accepts and invokes a callback.
Manage cache separately if needed.
Use const PipelineQueue = require('pipeline-queue');Ensure the third argument to queue.run() is a function.
No dependency data recorded yet.