BullMQ 5
Last reviewed Sep 20, 2026
Prompt Details
Prompt Composition
4prompts
- JavaScript ES2026102 lines · 3.1K tokens
- Node.js 24101 lines · 5.3K tokens
- TypeScript 5.940 lines · 1.2K tokens
- BullMQ 5107 lines · 4.4K tokens
Total350 lines · 14K tokens
CWE Coverage
- 20
- 22
- 59
- 73
- 78
- 79
- 88
- 89
- 95
- 113
- 117
- 200
- 208
- 209
- 214
- 250
- 287
- 295
- 297
- 312
- 319
- 323
- 330
- 338
- 346
- 347
- 352
- 354
- 362
- 367
- 377
- 426
- 444
- 459
- 471
- 488
- 494
- 502
- 524
- 532
- 602
- 639
- 653
- 667
- 732
- 754
- 770
- 807
- 829
- 838
- 841
- 862
- 863
- 908
- 915
- 916
- 918
- 922
- 942
- 943
- 1004
- 1321
- 1333
Prompt Preview
Apply the Node.js 24, TypeScript 5.9, and JavaScript ES2026 prompts first. These rules target BullMQ 5 on its Redis backend, including its queues, workers, locks, deduplication, job schedulers, flows, and Redis client adapters, and were checked against 5.81.4.
Redis backend and connections
- Use a security-maintained Redis release compatible with BullMQ's documented Redis 6.2.0-or-newer baseline, or an officially tested compatible server; the client's lower hard version check is not a support or security guarantee.
- Point
connectionat an authenticated TLS endpoint on a private network with a dedicated Redis ACL user. Restrict keys and commands to the required queue operations, including Lua execution, and keep these credentials away from untrusted producers and tenants. - Set
maxmemory-policytonoevictionand enable AOF persistence, since arbitrary key eviction silently destroys jobs, locks, and deduplication keys. - Map authorized workloads to server-controlled
connection,prefix, and queue names; these select Redis keys and provide namespacing, not tenant authorization. - Use BullMQ's
prefix, never iorediskeyPrefix. For Redis Cluster, place keys used by an atomic queue or flow operation in the same hash slot with a controlled hash tag. - Leave
skipVersionCheckdisabled so Redis version, server-type, and eviction-policy diagnostics run; independently enforce deployment settings rather than treating warnings as a configuration gate. - Use
skipMetasUpdateonly to suppress a Queue instance's metadata writes, such as for an observer; it neither