OptimalBits /bull
Premium Queue package for handling distributed jobs and messages in NodeJS.
★ 16,266⑂ 1,391👁 108⑃ 760● 1,854▤ 87
+1
日增长
16,266
stars
1,391
forks
108
watchers
760
prs
1,854
issues
87
releases
README
The fastest, most reliable, Redis-based queue for Node.
Carefully written for rock solid stability and atomicity.
Sponsors ·
Features ·
UIs ·
Install ·
Quick Guide ·
Documentation
Check the new Guide!
🚀 Sponsors 🚀
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 here on how to use it with BullMQ.
📻 News and updates
Bull is currently in maintenance mode, we are only fixing bugs. For new features check BullMQ, a modern rewritten
implementation in Typescript. You are still very welcome to use Bull if it suits your needs, which is a safe, battle tested library.
Follow me on Twitter for other important news and updates.
🛠 Tutorials
You can find tutorials and news in this blog: https://blog.taskforce.sh/
---
Used by
Bull is popular among large and small organizations, like the following ones:
---
---
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
---
Bull Features
- [x] Minimal CPU usage due to a polling-free design.
- [x] Robust design based on Redis.
- [x] Delayed jobs.
- [x] Schedule and repeat jobs according to a cron specification.
- [x] Rate limiter for jobs.
- [x] Retries.
- [x] Priority.
- [x] Concurrency.
- [x] Pause/resume—globally or locally.
- [x] Multiple job types per queue.
- [x] Threaded (sandboxed) processing functions.
- [x] Automatic recovery from process crashes.
And coming up on the roadmap...
- [ ] Job completion acknowledgement (you can use the message queue pattern in the meantime).
- [ ] Parent-child jobs relationships.
---
UIs
There are a few third-party UIs that you can use for monitoring:
BullMQ
- Taskforce
Bull v3
- Taskforce
- bull-board
- bull-repl
- bull-monitor
- Monitoro
Bull <= v2
- Matador
- react-bull
- Toureiro
---
Monitoring & Alerting
- With Prometheus Bull Queue Exporter
---
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 | reTop issues
#1304Possible infinite loop if BRPOPLPUSH fails ?26 comments · 2019-05-02#758Error: Sending custom commands in pipeline is not supported in Cluster mode when use Cluster Mode22 comments · 2017-10-25#519Implement a processOnce method19 comments · 2017-04-27#2005Redis Cluster, Can't add the job to the failed queue18 comments · 2021-03-26#1148Job is dropped when rate limit hit and bounceback is set to true18 comments · 2018-12-05#173Ability to get the worker processing a job17 comments · 2015-09-17#1371Job#finished never resolves when is job removed [BUG]16 comments · 2019-07-04#848Support for superseding jobs16 comments · 2018-01-24
Discussions
#2793Named processor for a Worker1 comments · 2025-03-21#2780I am using clustered environment for my scheduler using pub/sub model. Done separate setup for listeners. Is there any way I can use clusters with listeners, since the events like completed or failed are getting sent on all CPUs.0 comments · 2024-10-23#2778How to maintain absolute order in a multi-process situation?1 comments · 2024-10-11#2773Debouncing doesn't seem to be implemented in a useful way1 comments · 2024-09-17#2762this.bclient.options.connectionName = connectionName;1 comments · 2024-08-08#2761One job at a time in workers?1 comments · 2024-08-05#2753[Question] Is it possible to configure bull to use a single key as a list for jobs in redis?1 comments · 2024-06-28#2752Issue with moveToFailed function reprocessing jobs and blocking queue1 comments · 2024-06-25
Latest release
v4.16.5 v4.16.5 2024-12-184.16.5 (2024-12-18) Bug Fixes upgrade cron-parser dependency for Luxon CVE-2023-22467 (e45698e)