agentleFS
Ghost7802Ghost7802/awesome-api-skills/skills/bullmq/SKILL.md

bullmq

Skill13 starsChanged 28 days agoMITView on GitHub

Redis-based robust queue system for Node.js. - rabbitmq (Score: 0.8) Why: Direct relationship, Both are Messaging, Can deploy to docker - nestjs (Score: 0.6) Why: Direct relationship, Can deploy to docker - redis (Score: 0.5) Why: Direct relationship

  • Installs packages

4 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this when your agent works with bullmq — structured patterns beat pasted docs and prevent common hallucinations.

    line 51

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

BullMQ Skill

Redis-based robust queue system for Node.js.

Ecosystem Graph Preview

graph LR
  bullmq["bullmq"]:::core
  classDef core fill:#f9f,stroke:#333,stroke-width:4px;
  bullmq -- "depends on" --> redis
  bullmq -- "alternative to" --> rabbitmq
  bullmq -- "integrates with" --> nestjs
  rabbitmq -- "alternative to" --> bullmq

Recommended Next Skills

  • rabbitmq (Score: 0.8) Why: Direct relationship, Both are Messaging, Can deploy to docker
  • nestjs (Score: 0.6) Why: Direct relationship, Can deploy to docker
  • redis (Score: 0.5) Why: Direct relationship

Quick Start

BullMQ leverages Redis Lua scripts to provide an incredibly fast, transactional task queue natively in TypeScript.

npm install bullmq ioredis

Production Patterns

Sandboxed Processors

For CPU-intensive tasks (image resizing, PDF generation), use BullMQ Sandboxed Processors. This forces the worker to execute in a separate Node.js child process, preventing the heavy task from blocking your API's main event loop.

Architecture & Scaling

Redis MaxMemory

BullMQ queues can grow infinitely if consumers crash. Ensure your Redis instance is configured with a strict maxmemory limit and an eviction policy like noeviction (which causes BullMQ to gracefully pause adding jobs) to prevent OOM crashes.

Error Recovery

Configure automatic retries with exponential backoff on your jobs (attempts: 3, backoff: { type: 'exponential', delay: 1000 }) to handle transient third-party API failures gracefully.

Security Notes

Because BullMQ stores task payloads in Redis, never pass raw sensitive data (credit cards, unhashed passwords) in the job.data object. Pass a database ID and fetch the sensitive data securely within the worker.

References

Why use this skill

Use this when your agent works with bullmq — structured patterns beat pasted docs and prevent common hallucinations.

AI pitfalls

  • Referencing CLI flags or config keys that do not exist
  • Using outdated major versions of tools
  • Skipping lockfile or version pinning in examples

Production checklist

  • Secrets in environment variables, not source code
  • Error handling and logging in place
  • Rate limits and timeouts configured

Related skills

  • redis — depends on
  • rabbitmq — alternative to
  • nestjs — integrates with

Last Verified: 2026-07-02

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.