apply per-group rate limiting to bullmq jobs to evenly process a multi-tenant queue

domain: docs.bullmq.io · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Assign each job a group id, such as a per-tenant identifier, so BullMQ can track and rate-limit groups independently within the same queue.
  2. Configure the worker's rate limiter with a max job count and duration to bound how fast jobs in any one group are processed.
  3. When a group exceeds its rate limit, confirm BullMQ stops processing that group's jobs until the limit window expires while continuing to process other groups' jobs normally.
  4. Use local per-group overrides where specific groups, such as higher-tier tenants, need a different limit than the global default.
  5. Monitor group-level throughput to confirm no single noisy tenant starves the others sharing the worker pool.

Known gotchas

Related routes

Configure BullMQ repeatable jobs and worker concurrency
docs.bullmq.io · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans