bunqueue v2.4.0
blog · release
bunqueue v2.4.0
Auto-batching for queue.add() over TCP, 306 new tests.
To install bunqueue v2.4.0
Section titled “To install bunqueue v2.4.0”bun add bunqueue@2.4.0npm install bunqueue@2.4.0To upgrade bunqueue
Section titled “To upgrade bunqueue”bun add bunqueue@latestAuto-batching for queue.add() over TCP
Section titled “Auto-batching for queue.add() over TCP”Transparently batches concurrent add() calls into PUSHB commands
- Zero overhead for sequential
awaitusage (flush immediately when idle) - ~3x speedup for concurrent adds (buffers during in-flight flush)
- Configurable:
autoBatch: { maxSize: 50, maxDelayMs: 5 }(defaults) - Durable jobs bypass the batcher (sent as individual PUSH)
- Disable with
autoBatch: { enabled: false }
306 new tests
Section titled “306 new tests”Covering previously untested modules
Thanks to 1 contributor!
Section titled “Thanks to 1 contributor!”← bunqueue v2.3.1 · Release on GitHub · Commits since v2.3.1 · Full changelog · All posts