Sharded Interval Queue v2.0.0 is a zero-dependency, persistent store sharded queue that runs async functions in timed intervals while preserving ordering across shards. It supports in-memory, LowDB, and Redis adapters for persistence and scaling. V2 introduces job limits to cap concurrent running jobs. Key differentiator: sharded design allows multiple queues to coordinate under a single name, with no recurring intervals or hooks—execution starts on job add. Decorator and thunk patterns are supported for wrapping async jobs. Suitable for rate-limited scheduling with ordering guarantees.
npm install sharded-interval-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates queue creation, init, decorator and thunk job enqueuing, pausing/unpausing, and using job limit option.
Update custom adapters to optionally omit these methods or implement them if needed.
After unpausing, call queue.start() or add a new job to resume.
Call queue.setStorageLowDB(db) before await queue.init(interval).
For LowDB v5, use lowdb with FileSync/FileAsync adapters compatible with this package.
Use lowdb v1 or v2, or adapt custom storage instead.
Ensure correct import: const { ShardedIntervalQueue } = require('sharded-interval-queue'); and use new ShardedIntervalQueue(name).Add await queue.init(interval) before using add().
No dependency data recorded yet.