FireMQ
A lean, fast, RabbitMQ-compatible message broker written in Rust.
FireMQ keeps RabbitMQ's model of exchanges, queues, bindings and acknowledgements, and drops the Erlang runtime, the plugins and the setup. Your existing RabbitMQ clients connect to it unchanged.
curl -fsSL https://raw.githubusercontent.com/FireMQ/firemq/main/install.sh | sh
firemqFireMQ 0.1.0 is ready in 40 ms
AMQP 0-9-1 amqp://guest:guest@localhost:5672
FireMQ fire://guest:guest@localhost:5673
WebSocket ws://localhost:15672/fire
Management http://localhost:15672
Metrics http://localhost:15672/metrics
Data firemq-data (0 queues, 0 messages recovered)
Or with Docker:
docker run -p 5672:5672 -p 5673:5673 -p 15672:15672 ghcr.io/firemq/firemqWhy FireMQ
-
Drop-in for RabbitMQ clients. FireMQ speaks AMQP 0-9-1. CI runs pika, amqplib, amqp091-go (including its own integration suite), the RabbitMQ Java and .NET clients, and
rabbitmqadminagainst every change. See the compatibility notes. -
Durable, and tested that way. Persistent messages are confirmed after
fsync, batched so one sync covers a burst of publishes. A test kills the broker withkill -9in the middle of confirmed publishing and checks that nothing confirmed is lost. -
RabbitMQ's features, not a subset of a subset. Direct, fanout, topic and headers exchanges, exchange-to-exchange bindings, alternate exchanges, publisher confirms, mandatory returns, prefetch, TTL, dead-lettering with
x-death, max length with overflow modes, priorities, single active consumer, transactions, policies, vhosts, users and permissions, memory and disk alarms. - Small. One static binary. An idle broker uses about 8 MB of memory on Linux.
-
Built for developers.
firemq pub,sub,ctl,benchanddoctorin the terminal; a management UI and a RabbitMQ-compatible HTTP API; Prometheus metrics with RabbitMQ's names; a broker you can embed in Rust tests. - A native protocol and SDKs. A small MessagePack-based protocol over TCP and WebSocket, with SDKs that share one API across languages.
Try it
firemq ctl declare-queue jobs
firemq pub --queue jobs "hello"
firemq sub jobs --count 1From Python, with any RabbitMQ client:
import pika
channel = pika.BlockingConnection(pika.URLParameters("amqp://localhost")).channel()
channel.queue_declare(queue="hello")
channel.basic_publish(exchange="", routing_key="hello", body=b"Hello World!")From Rust, with the FireMQ SDK:
let client = firemq_client::Client::connect("fire://localhost").await?;
client.publish("", "hello", "Hello World!").await?; // returns when confirmedDocumentation
- Install and quickstart
- Tutorials in Python, JavaScript and Rust, all tested in CI
- Configuration and the command-line tool
- Management UI, API and metrics
- Durability and recovery, security and operations
- Migrating from RabbitMQ and what FireMQ does not support
- The FireMQ protocol
Project layout
| Path | Contents |
|---|---|
crates/firemq |
The firemq binary and the embeddable broker |
crates/firemq-server |
Listeners, management API, metrics, web UI |
crates/firemq-core |
Exchanges, queues, routing, confirms, definitions |
crates/firemq-store |
Segmented message log, fsync batching, recovery |
crates/firemq-amqp, firemq-amqp-codec
|
AMQP 0-9-1 |
crates/firemq-proto, firemq-client
|
FireMQ protocol and the Rust SDK |
compat/ |
RabbitMQ client suites run in CI |
spec/ |
Protocol specification and test vectors |
Status
FireMQ runs on a single node. Clustering, streams and MQTT are on the roadmap.
License
Apache-2.0. See LICENSE.