bunqueue v2.6.115
blog · release
bunqueue v2.6.115
prefixKey, namespace isolation for Queue and Worker.
To install bunqueue v2.6.115
Section titled “To install bunqueue v2.6.115”bun add bunqueue@2.6.115npm install bunqueue@2.6.115To upgrade bunqueue
Section titled “To upgrade bunqueue”bun add bunqueue@latestprefixKey, namespace isolation for Queue and Worker
Section titled “prefixKey, namespace isolation for Queue and Worker”New option lets multiple environments, tenants, or services share the same broker without their jobs, workers, cron schedulers, stats, pause state, DLQ, or rate limits overlapping. Queue.name still reports the logical name; the prefix is applied internally to the server-side key. Backward compatible, without prefixKey, behavior is identical. Resolves the cron name PRIMARY KEY collision in #77. Example:
const dev = new Queue('emails', { prefixKey: 'dev:' });const prod = new Queue('emails', { prefixKey: 'prod:' });// Workers must match the prefix to consume jobs from the producing queuenew Worker('emails', processor, { prefixKey: 'dev:' });See the Namespace Isolation guide.
Thanks to 1 contributor!
Section titled “Thanks to 1 contributor!”← bunqueue v2.6.114 · Release on GitHub · Commits since v2.6.114 · Full changelog · All posts