Skip to content
Get started
Get started
bunqueue v2.6.115
View Markdown
blog · release

bunqueue v2.6.115

prefixKey, namespace isolation for Queue and Worker.

bun add bunqueue@2.6.115
npm install bunqueue@2.6.115
bun add bunqueue@latest

prefixKey, 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 queue
new Worker('emails', processor, { prefixKey: 'dev:' });

See the Namespace Isolation guide.


← bunqueue v2.6.114 · Release on GitHub · Commits since v2.6.114 · Full changelog · All posts