bunqueue v2.8.41
blog · release
bunqueue v2.8.41
Ships 3 performance improvements. pullBatch now parks delayed and active-group-blocked candidates in one scratch area for the entire batch, then restores them once before releasing the shard lock.
To install bunqueue v2.8.41
Section titled “To install bunqueue v2.8.41”bun add bunqueue@2.8.41npm install bunqueue@2.8.41To upgrade bunqueue
Section titled “To upgrade bunqueue”bun add bunqueue@latestPerformance
Section titled “Performance”pullBatchnow parks delayed and active-group-blocked candidates in one scratch area for the entire batch, then restores them once before releasing the shard lock. This removes the repeated extract/reinsert cycle for every delivered job while preserving priority, FIFO groups, limiter accounting, long-poll deadlines and queue indexes.- Native benchmarks with 50,000 ineligible jobs and a batch of 100 improved active-group backlogs from roughly 1.54 seconds to 18 milliseconds (about 85x) and delayed backlogs from roughly 1.45 seconds to 16 milliseconds (about 90x).
- Regression coverage verifies single restoration, partial batches under concurrency limits, earliest delayed wake-up and exception-safe restoration.
Thanks to 1 contributor!
Section titled “Thanks to 1 contributor!”← bunqueue v2.8.40 · Release on GitHub · Commits since v2.8.40 · Full changelog · All posts