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
Architecture in motionFollow a message from producer to consumerRoute discovery, sending, persistence, replication and delivery: every hop of the RocketMQ model, implemented in async Rust. - Control plane
- Produce
- Store and replicate
- Consume
Why RocketMQ-RustEngineered for the hot pathThe 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 collectorOwnership 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 diskBuilt on Tokio. Networking, request processing and background services are non-blocking, with owned runtimes and orderly shutdown. Javaclient · brokerRustclient · broker RemotinggRPC v2 Speaks RocketMQImplements 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 enginesAn append-only CommitLog with ConsumeQueue and index files, a RocksDB backend, and tiered storage for data beyond local disks. ordereddelayedtransactionalbatchedrequest-replyPushLitePullPOP Every messaging patternOrdered, delayed, transactional, batch and request-reply messaging, consumed through Push, LitePull or POP. High availability with RaftA Raft-based Controller coordinates master election and in-sync replicas across Broker groups. Security built inAuthentication, ACL authorization and TLS guard client and administrative access. Observable by designPrometheus metrics plus OpenTelemetry traces and logs over OTLP, enabled through opt-in build features. Developer experienceAn API that feels like RustBuilders, typed results and explicit lifecycles. No hidden threads, no surprises. 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}EcosystemOne workspace, a whole messaging platformServices, libraries and operations tooling evolve together in a single repository. NameServerBrokerProxyController ClientProtocolStoreRuntime Admin CLIWeb DashboardMCPGPUI DashboardAdmin TUITauri DashboardAI SREStore Inspect Core servicesNameServer, Broker, Proxy and Controller: the deployable runtime of a RocketMQ cluster. - NameServer
- Broker
- Proxy
- Controller
Architecture overviewReusable cratesClient 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 mapOperations and AIAdmin 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 startFrom clone to first messageFour steps stand up a local cluster from source and push your first messages through it. - 1
Clone and buildFetch 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
Start the NameServerThe route registry for brokers and clients. It listens on 127.0.0.1:9876 by default. $cargo run --bin rocketmq-namesrv-rust - 3
Start a BrokerGive 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
Send and consumeStart 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 usRocketMQ-Rust is developed in the open. Star the repository, join the discussion, or pick up a good first issue. Browse good first issuesRocketMQ-Rust is an independent community project, not an official Apache Software Foundation release. Apache RocketMQ is a trademark of the Apache Software Foundation. |