Project

firemq

0.0
The project is in a healthy, maintained state
UniFFI bindings over firemq-client, the Rust client for the FireMQ message broker.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

~> 1.16
 Project Readme

FireMQ

A lean, fast, RabbitMQ-compatible message broker written in Rust.

CI License

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
firemq
FireMQ 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/firemq

Why 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 rabbitmqadmin against 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 with kill -9 in 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, bench and doctor in 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 1

From 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 confirmed

Documentation

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.