Skip to content

What is BullMQ ​

BullMQ is a fast and robust distributed job and message queue. It is available natively for TypeScript/JavaScript (Node.js and Bun), Python, Elixir, Rust, .NET, Go and PHP, and it can run on top of Redis™ (or compatible datastores such as Valkey and Dragonfly) as well as on PostgreSQL.

BullMQ helps you solve many of the problems found in modern architectures, from offloading heavy work out of your web servers to orchestrating complex workflows across micro-services written in different languages.

The library is designed so that it will fulfill the following goals:

  • At-least-once delivery: every job is delivered to a worker at least once. Under normal operation each job is processed exactly once, but if a worker crashes or loses the lock of a job while processing it, the job can be processed again, so design your processors to be idempotent.
  • Easy to scale horizontally: add more workers, on as many machines as you need, to process jobs in parallel.
  • Consistent: every state transition of a job is atomic, implemented as Lua scripts on Redis and as transactional SQL functions on PostgreSQL.
  • High performance: get the highest possible throughput from your datastore by combining efficient scripts, pipelining and a polling-free design.
  • Language and datastore agnostic: every SDK shares the exact same scripts and data model, so producers and workers written in different languages can work on the same queues.

View the repository, see open issues, and contribute back on GitHub!

Supported languages ​

All the SDKs are developed in the same repository and are built on top of the same Lua and SQL scripts, which guarantees identical behavior across languages. A job added from a PHP web application can be processed by a Python worker, and its result consumed by a Node.js service.

LanguagePackageInstallRedis™PostgreSQL
TypeScript (Node.js and Bun)bullmqnpm install bullmq✅✅
Pythonbullmqpip install bullmq✅✅
Elixirbullmq{:bullmq, "~> 2.3"}✅✅