GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • RocketMQ-Rust
  • Docs
  • Architecture
  • Examples
  • Community
  • GitHub
  • 简体中文
  • Help us translate
  • v1.0.0 is live on crates.ioRelease notes

This view

  • Original page
  • New address

GeezerVison is showing rocketmqrust.com — RocketMQ-Rust

  • Ordered messages
  • Delayed delivery
  • Transactional messages
  • Batch sending
  • Request-reply
  • Push consumer
  • LitePull consumer
  • POP consumption
  • Tag and SQL92 filtering
  • ACL authorization
  • TLS transport
  • Raft controller
  • gRPC proxy
  • Tiered storage
  • Ordered messages
  • Delayed delivery
  • Transactional messages
  • Batch sending
  • Request-reply
  • Push consumer
  • LitePull consumer
  • POP consumption
  • Tag and SQL92 filtering
  • ACL authorization
  • TLS transport
  • Raft controller
  • gRPC proxy
  • Tiered storage
  • Tokio
  • Tonic gRPC
  • OpenRaft
  • RocksDB
  • OpenTelemetry
  • Prometheus
  • Rustls
  • Serde
  • Ratatui
  • Linux
  • macOS
  • Windows
  • Docker
  • Kubernetes
  • crates.io
  • Tokio
  • Tonic gRPC
  • OpenRaft
  • RocksDB
  • OpenTelemetry
  • Prometheus
  • Rustls
  • Serde
  • Ratatui
  • Linux
  • macOS
  • Windows
  • Docker
  • Kubernetes
  • crates.io
  • v1.0.0Stable releasePublished on crates.io
  • 28Workspace cratesFrom protocol to storage, one repository
  • 0Garbage-collector pausesRust frees memory without a GC
  • 1,500GitHub starsStar the repository
Architecture in motion

Follow a message from producer to consumer

Route discovery, sending, persistence, replication and delivery: every hop of the RocketMQ model, implemented in async Rust.

  • Control plane
  • Produce
  • Store and replicate
  • Consume
Architecture overview
Why RocketMQ-Rust

Engineered for the hot path

The RocketMQ model you already know, rebuilt in a language that turns whole classes of runtime failures into compile errors.

producer.rs
let msg = Message::builder()    .topic("orders")    .build()?;producer.send(msg).await?; // msg movedprintln!("{}", msg.topic());error[E0382]: borrow of moved value: `msg`
✓Caught by the compiler, not in production

Memory safety without a garbage collector

Ownership and borrowing rule out data races and use-after-free at compile time. With no GC, there are no stop-the-world pauses on the message path.

accept
decode
process
respond

Async from socket to disk

Built on Tokio. Networking, request processing and background services are non-blocking, with owned runtimes and orderly shutdown.

Javaclient · brokerRustclient · broker
RemotinggRPC v2

Speaks RocketMQ

Implements the remoting protocol and the gRPC messaging API, so Rust and Java clients and servers interoperate at documented boundaries.

CommitLog
ConsumeQueue
Index
Local filesRocksDBTiered

Pluggable storage engines

An append-only CommitLog with ConsumeQueue and index files, a RocksDB backend, and tiered storage for data beyond local disks.

ordereddelayedtransactionalbatchedrequest-reply
PushLitePullPOP

Every messaging pattern

Ordered, delayed, transactional, batch and request-reply messaging, consumed through Push, LitePull or POP.

High availability with Raft

A Raft-based Controller coordinates master election and in-sync replicas across Broker groups.

✓AuthN✓ACL✓TLS

Security built in

Authentication, ACL authorization and TLS guard client and administrative access.

metricstraceslogs

Observable by design

Prometheus metrics plus OpenTelemetry traces and logs over OTLP, enabled through opt-in build features.

Developer experience

An API that feels like Rust

Builders, typed results and explicit lifecycles. No hidden threads, no surprises.

Producer guideConsumer guideRust API reference
1use std::error::Error;2use std::sync::Arc;3
4use rocketmq_client_rust::{ClientRuntime, DefaultMQProducer};5use rocketmq_model::common::message::message_single::Message;6
7async fn produce(client: Arc<ClientRuntime>) -> Result<(), Box<dyn Error>> {8    let mut producer = DefaultMQProducer::builder(client)9        .producer_group("order_producer")10        .name_server_addr("127.0.0.1:9876")11        .build();12    producer.start().await?;13
14    let message = Message::builder()15        .topic("OrderTopic")16        .tags("created")17        .body("order-1024")18        .build()?;19
20    if let Some(sent) = producer.send_with_timeout(message, 3_000).await? {21        println!("{} at offset {}", sent.send_status, sent.queue_offset);22    }23
24    producer.shutdown().await;25    Ok(())26}
Ecosystem

One workspace, a whole messaging platform

Services, libraries and operations tooling evolve together in a single repository.

NameServerBrokerProxyController
ClientProtocolStoreRuntime
Admin CLIWeb DashboardMCPGPUI DashboardAdmin TUITauri DashboardAI SREStore Inspect
  • Core services

    NameServer, Broker, Proxy and Controller: the deployable runtime of a RocketMQ cluster.

    • NameServer
    • Broker
    • Proxy
    • Controller
    Architecture overview
  • Reusable crates

    Client SDK, protocol, transport, storage engines, runtime and auth, each usable on its own from crates.io.

    • Client
    • Protocol
    • Transport
    • Model
    • Store
    • Runtime
    • Auth
    • Filter
    • Observability
    Module map
  • Operations and AI

    Admin CLI and TUI, web and desktop dashboards, MCP servers and AI SRE workflows.

    • Admin CLI
    • Admin TUI
    • Store Inspect
    • Web Dashboard
    • GPUI Dashboard
    • Tauri Dashboard
    • MCP
    • MCP Control
    • AI SRE
    Ecosystem guide
Quick start

From clone to first message

Four steps stand up a local cluster from source and push your first messages through it.

Full first-message tutorialInstallation options
  1. 1

    Clone and build

    Fetch the workspace and build it with the pinned Rust 1.95 toolchain.

    $git clone https://github.com/mxsm/rocketmq-rust.git$cd rocketmq-rust$cargo build --workspace
  2. 2

    Start the NameServer

    The route registry for brokers and clients. It listens on 127.0.0.1:9876 by default.

    $cargo run --bin rocketmq-namesrv-rust
  3. 3

    Start a Broker

    Give the Broker a home directory for its store and point it at the NameServer.

    $export ROCKETMQ_HOME="$(pwd)/.rocketmq"$mkdir -p "$ROCKETMQ_HOME/conf"$cargo run --bin rocketmq-broker-rust -- -n 127.0.0.1:9876
  4. 4

    Send and consume

    Start the consumer first, then run the producer from a second terminal.

    $cargo run -p rocketmq-client-rust --example consumer$cargo run -p rocketmq-client-rust --example producer

Build the next generation of messaging with us

RocketMQ-Rust is developed in the open. Star the repository, join the discussion, or pick up a good first issue.

Star on GitHub1.5kJoin the discussionContributing guide
Browse good first issues

RocketMQ-Rust is an independent community project, not an official Apache Software Foundation release. Apache RocketMQ is a trademark of the Apache Software Foundation.

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.