Skip to content
Get started
Get started
BullMQ on Bun: Compatibility & SQLite Alternative
guide · comparison

bunqueue vs BullMQ, one less server.

Benchmark results comparing the bunqueue TCP server against BullMQ with Redis on identical workloads, a feature comparison, and the cases where BullMQ is still the better pick.

This page helps you decide between bunqueue and BullMQ. Short version first, then the numbers with their caveats, then features.

Pick bunqueue if you run on Bun and one queue server (or one process, in embedded mode) is enough. You get the same Queue and Worker API as BullMQ with no Redis to install, monitor, or pay for. Jobs persist in a SQLite file.

Pick BullMQ if you need to scale the queue itself across multiple servers, already operate Redis, or need workers in languages beyond bunqueue’s official SDKs (TypeScript and Python). Details in When to Use BullMQ Instead.

1.3x Faster Push

54,140 vs 43,261 ops/sec

Single job push

3.2x Faster Bulk

139,200 vs 44,000 ops/sec

Bulk push, 100 jobs per batch

Lower Bulk Latency

3.26 vs 4.53 ms p99

Bulk push tail latency

Zero Infrastructure

No Redis required

Embedded SQLite. 7 packages, 5.5 MB installed.

OperationbunqueueBullMQSpeedup
Push (single job)54,140 ops/sec43,261 ops/sec1.3x
Bulk push (100 per batch)139,200 ops/sec44,000 ops/sec3.2x
Bulk push p99 latency3.26 ms4.53 ms1.4x lower

Push ops/sec, higher is better

bunqueue
54,140
BullMQ
43,261

1.3x faster

Bulk push ops/sec, higher is better

bunqueue
139,200
BullMQ
44,000

3.2x faster

Bulk push p99 ms, lower is better

bunqueue
3.26 ms
BullMQ
4.53 ms

1.4x lower

Environment for the table above: Mac Studio (Apple M1 Max, 32 GB, SSD), macOS Tahoe, Bun 1.3.8, Redis 7.x on localhost. 10,000 iterations per test, bulk size 100, payload 100 bytes, 32-connection pool with pipelining.

  • TCP pipelining: many commands in flight per connection, responses matched by request id.
  • Batched writes: SQLite in WAL mode (write-ahead logging, a journal that lets reads and writes overlap) groups many jobs into one disk transaction.
  • Sharding: work is spread across independent shards sized to your CPU cores, which keeps lock contention low.
  • In-memory hot path: the ready queue lives in memory (skip lists, heaps, LRU caches), SQLite is the durability layer, not the dispatcher.
FeaturebunqueueBullMQ
Queue types (standard, priority, LIFO)
Delayed jobs, retries with backoff
Dead letter queue (holding area for jobs that failed all retries)✅ Built-in, with auto-retry and expiration⚠️ Failed set, no dedicated DLQ
Rate limiting✅ Per-worker and per-queue✅ Per-worker
Cron / repeatable jobs✅ Built-in✅ Via Job Scheduler
Parent-child flows
PersistenceSQLite file, embeddedRedis server
Horizontal scaling of the queue itself❌ Single instance✅ Redis Cluster
External dependencies✅ None (2 runtime deps)❌ Redis required
S3 backup✅ Built-in❌ Manual
MCP server for AI agents✅ Built-in
Client languagesTypeScript, PythonNode.js, Python, and community ports

bunqueue is single-instance: one server process owns the SQLite file, and workers connect to it. BullMQ is the better pick when:

  • The queue itself must scale horizontally across multiple servers (Redis Cluster).
  • Redis is already in your stack and operating it costs you nothing extra.
  • You need Redis-specific features such as pub/sub fan-out or custom Lua scripts.
  • Your workers are written in languages outside bunqueue’s official SDKs (TypeScript and Python).
  • You cannot run on Bun. bunqueue’s server and embedded mode require the Bun runtime.
Terminal window
git clone https://github.com/egeominotti/bunqueue.git
cd bunqueue && bun install
redis-server --daemonize yes # BullMQ side
bun run start & # bunqueue server
bun run bench/comparison/run.ts

Source: bench/comparison/run.ts.