Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
B

bullmq

> 数据库
Open source

BullMQ - Message Queue and Batch processing for NodeJS, Python, .NET, Elixir, Rust and PHP based on Redis or PostgreSQL

9.2K stars0 likes1 views
WebsiteGitHub

About

BullMQ - Message Queue and Batch processing for NodeJS, Python, .NET, Elixir, Rust and PHP based on Redis or PostgreSQL

Tutorials

You can find tutorials and news in this blog: https://blog.taskforce.sh/

News

Language agnostic BullMQ

BullMQ is available natively in multiple languages:

  • Node.js / Bun — This repository (npm install bullmq)
  • Python — python/ directory (pip install bullmq)
  • Rust — rust/ directory (cargo add bullmq-official --rename bullmq)
  • Elixir — elixir/ directory ({:bullmq, "~> x.x"})
  • .Net — dotnet/ directory (dotnet add package BullMQ)
  • PHP — php/ directory

For other platforms, check out the BullMQ Proxy.

Official FrontEnd

Supercharge your queues with a professional front end:

  • Get a complete overview of all your queues.
  • Inspect jobs, search, retry, or promote delayed jobs.
  • Metrics and statistics.
  • and many more features.

Sign up at Taskforce.sh

Sponsors

  </a>
</td>
<td>
  Dragonfly is a new Redis™ drop-in replacement that is fully compatible with BullMQ and brings some important advantages over Redis™ such as massive
  better performance by utilizing all CPU cores available and faster and more memory efficient data structures. Read more <a href="https://www.dragonflydb.io/docs/integrations/bullmq">here</a> on how to use it with BullMQ.
</td>

Used by

Some notable organizations using BullMQ:

   </a>
</td>
<td valign="center">
   <a href="https://github.com/vendure-ecommerce/vendure">
    
   </a>
</td>
<td valign="center">
   <a href="https://github.com/datawrapper/datawrapper">
    
   </a>
</td>
<td valign="center">
  <a href="https://github.com/nestjs/bull/tree/master/packages/bullmq">
    
    </a>
</td>
<td valign="center">
  <a href="https://langfuse.com">
    
    </a>
</td>
</tr>
<tr>
  <td valign="center">
   <a href="https://github.com/teamcurri">
    
  </a>
</td>
  <td valign="center">
   <a href="https://novu.co">
    
  </a>
</td>
</td>
  <td valign="center">
   <a href="https://www.nocodb.com">
    
  </a>
</td>
</td>
  <td valign="center">
   <a href="https://infisical.com/">
     <picture>
      <source media="(prefers-color-scheme: dark)" srcset="https://mintlify.s3-us-west-1.amazonaws.com/infisical/logo/dark.svg">
      
      </picture>
  </a>
</td>
</tr>

The gist

Install:

$ yarn add bullmq

If you use the node-redis adapter (createNodeRedisClient), install redis v5 or newer (redis >= 5.0.0).

If you use the Valkey Glide adapter (createValkeyGlideClient), install @valkey/valkey-glide.

Add jobs to the queue:

typescript
import { Queue } from 'bullmq';

const queue = new Queue('Paint');

queue.add('cars', { color: 'blue' });

Process the jobs in your workers:

typescript
import { Worker } from 'bullmq';

const worker = new Worker('Paint', async job => {
  if (job.name === 'cars') {
    await paintCar(job.data.color);
  }
});

Listen to jobs for completion:

typescript
import { QueueEvents } from 'bullmq';

const queueEvents = new QueueEvents('Paint');

queueEvents.on('completed', ({ jobId }) => {
  console.log('done painting');
});

queueEvents.on(
  'failed',
  ({ jobId, failedReason }: { jobId: string; failedReason: string }) => {
    console.error('error painting', failedReason);
  },
);

Adds jobs with parent-child relationship:

…

This is just scratching the surface, check all the features and more in the official documentation

Feature Comparison

Since there are a few job queue solutions, here is a table comparing them:

Feature BullMQ-Pro BullMQ Bull Kue Bee Agenda
Backend redis redis redis redis redis mongo
Observables ✓
Group Rate Limit ✓
Group Support ✓
Batches Support ✓
Parent/Child Dependencies ✓ ✓
Deduplication (Debouncing) ✓ ✓ ✓
Deduplication (Throttling) ✓ ✓ ✓
Priorities ✓ ✓ ✓ ✓ ✓
Concurrency ✓ ✓ ✓ ✓ ✓ ✓
Delayed jobs ✓ ✓ ✓ ✓ ✓
Global events ✓ ✓ ✓ ✓
Rate Limiter ✓ ✓ ✓
Pause/Resume ✓ ✓ ✓ ✓
Sandboxed worker ✓ ✓ ✓
Repeatable jobs ✓ ✓ ✓ ✓
Atomic ops ✓ ✓ ✓ ✓
Persistence ✓ ✓ ✓ ✓ ✓ ✓
UI ✓ ✓ ✓ ✓ ✓
Optimized for Jobs / Messages Jobs / Messages Jobs / Messages Jobs Messages Jobs

Contributing

Fork the repo, make some changes, submit a pull-request! Here is the contributing doc that has more details.

Thanks

Thanks for all the contributors that made this library possible, also a special mention to Leon van Kammen that kindly donated his npm bullmq repo.

Issues· 391 open

View all issuesOpen on GitHub
  • #1373

    Dependency Dashboard

    Updated Sep 29, 2026
  • #4840

    [Feature]: Add getJob method to Queue in Python SDK

    Updated Sep 28, 2026
  • #4603

    PostgreSQL backend reads SQL from disk at runtime, breaking every single-file bundler

    Updated Sep 24, 2026
  • #4595

    [Bug]: ioredis v6 `RedisOptions` not assignable to bullmq v6 `ConnectionOptions`

    bugUpdated Sep 23, 2026
  • #4608

    [Bug]: getJobs Lua script (since 5.81.1) blocks Redis for seconds on unbounded ranges default 0-1 turned getDelayed() into a stop-the-world call

    bugUpdated Sep 23, 2026
  • #4765

    [Bug]: SSL Cert https://api.docs.bullmq.io/

    bugUpdated Sep 20, 2026
  • #2135

    [Feature request] search a specific job

    Updated Sep 18, 2026
  • #4616

    [Bug]: Python QueueEvents broken on Postgres

    bugUpdated Sep 15, 2026
  • #4751

    PostgreSQL - Type string is not assignable to type ConnectionOptions

    Updated Sep 14, 2026
  • #4742

    [Bug]: Rust Worker never recovers from a dropped Redis connection

    bugUpdated Sep 13, 2026

> Tags

TypeScriptbackground-jobselixirnodejsphp

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库