The fastest, most reliable, Redis-based queue for Node
open sourceMITself-hostablefree
Bull is a Redis-backed job and message queue for Node.js. Workers process jobs with configurable concurrency, and it handles delayed jobs, repeatable jobs on a cron schedule, priorities, retries, rate limiting, pausing queues globally or locally, sandboxed processors in separate processes and automatic recovery when a process crashes, with a polling-free design that keeps CPU use low. Bull is in maintenance mode and only gets bug fixes: its makers point new projects to BullMQ, their TypeScript rewrite. It is MIT licensed and used by Atlassian and Autodesk among others.
Problems it solves
- run background jobs in my Node.js app backed by the Redis we already have
- retry failed jobs automatically with backoff
- schedule a job to run later or repeat it on a cron schedule from Node
- limit how fast jobs hit a third-party API that rate-limits us
- jobs shouldn't be lost when a worker process crashes halfway
- run CPU-heavy job processors in separate processes so they don't block the event loop
- process high-priority jobs before the rest of the queue
Features
- delayed jobs
- repeatable jobs on cron specifications
- rate limiter
- retries
- priority
- concurrency
- pause and resume, globally or locally
- multiple job types per queue
- sandboxed (threaded) processing functions
- automatic recovery from process crashes
View 1 more
- polling-free design with minimal CPU use
Limitations
- No parent-child job relationships or job completion acknowledgement: use BullMQ for those1
Alternatives
The same job
These do what Bull does.
- BullMQ Message queue and batch processing for Node.js, Python, .NET, Elixir, Rust and PHP
- Agenda Lightweight job scheduling library for Node.js
- River Fast and reliable background jobs
- Faktory Language-agnostic background job server
- Upstash QStash Serverless HTTP messaging, queues and scheduling
- Inngest Workflow orchestration: durable step functions on serverless, servers or the edge
