egeominotti/bunqueue

⚡ High-performance job queue for Bun. SQLite by default, PostgreSQL multi-broker when you scale. DLQ, cron, SQLite S3 backups, and native MCP. No Redis.

What it solves

Bunqueue is a high-performance job queue system designed to eliminate the need for external infrastructure like Redis or MongoDB. It provides a reliable way to manage background tasks, scheduled jobs (cron), and complex multi-step workflows with minimal setup, making it particularly suitable for AI agents and automation tasks.

How it works

The system operates in two primary modes:

  • Embedded Mode: The queue runs directly inside the application process, using either in-memory storage or a single SQLite file for persistence.
  • Server Mode: A standalone server is deployed (via Docker or Bun), allowing multiple producers and workers to connect via TCP. For scaling, it supports multi-broker setups using PostgreSQL 15–18.

It features a BullMQ-compatible API and provides official SDKs for TypeScript, Python, PHP, Go, Rust, and Elixir, allowing jobs to be produced in one language and processed in another.

Who it’s for

  • Developers building AI agents who need a scheduler and task management without managing complex infrastructure.
  • Teams wanting to avoid the operational overhead of Redis.
  • Developers creating single-process apps, CLIs, or serverless functions that require background processing.
  • Architectural teams needing a complex workflow engine with saga compensation and human-in-the-loop signals.

Highlights

  • Zero-infrastructure default: Works out-of-the-box with memory or SQLite.
  • AI-native: Includes a native Model Context Protocol (MCP) server with 73 tools, allowing AI agents to control the queue directly.
  • Multi-language support: Unified wire protocol with SDKs for six different languages.
  • Workflow Engine: Built-in support for multi-step orchestration, saga compensation, and .waitFor() for human-in-the-loop interactions.
  • High Performance: Capable of handling hundreds of thousands of jobs per second in embedded mode.
  • BullMQ Pro-compatible: Supports job groups, batches, and fair round-robin claims without a separate license.

Related

  • Project
  • Project
  • Project
  • Project
  • Project