2 min read
|
Saved February 14, 2026
|
Copied!
Do you care about this?
Bunqueue is a job queue designed for Bun with no external dependencies. It offers high throughput using SQLite and supports both embedded and standalone server modes. Ideal for single-server applications, it provides features like persistence, retries, and cron jobs without the need for Redis.
If you do, here's more
Bunqueue is a high-performance job queue specifically designed for Bun, a runtime environment. It sets itself apart by having zero external dependencies, unlike other job queues like BullMQ, Agenda, or pg-boss that rely on Redis, MongoDB, or PostgreSQL. Bunqueue uses SQLite for persistence, allowing it to survive restarts and handle concurrent access effectively with Write-Ahead Logging (WAL) mode. It boasts impressive benchmarks, achieving up to 286,000 operations per second, making it suitable for moderate to high workloads.
This library is ideal for single-server deployments, prototypes, and MVPs, especially for teams that want to sidestep the complexities of running Redis. It supports features like job priorities, delays, retries, cron jobs, and dead-letter queues (DLQs) without the overhead of managing another service. However, it’s not the best choice for multi-region distributed systems that require high availability or for workloads needing automatic failover.
Bunqueue can operate in two modes: embedded or as a standalone server. In embedded mode, the queue runs within the same process, while in server mode, it allows multiple clients to connect via TCP, supporting greater scalability. Performance varies between the two, with the embedded mode reaching peak throughput of 286K ops/sec and the TCP mode managing 149K ops/sec. For those looking to monitor their Bunqueue setup, it integrates well with Prometheus and Grafana for performance tracking.
To get started, users can easily install Bunqueue with a simple command and run it in a Docker container for persistent data. The library requires the Bun runtime and does not support Node.js, making it a niche option for projects aligned with Bun's technology stack.
Questions about this article
No questions yet.