mxsm/rocketmq-rust
Tokio-based RocketMQ for self-hosted messaging with separate MCP operations
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
RocketMQ-Rust is a messaging system first and an MCP integration second. In the minimal topology, the Broker registers with NameServer; clients use NameServer to resolve topic routes and talk to the Broker for message operations. The Broker owns request handling, delivery, and storage. An optional OpenRaft-based Controller handles master election and replica coordination. The Proxy exposes gRPC MessagingService and optional remoting ingress, either through a cluster adapter that uses the client SDK or with an embedded Broker.
The Rust crates separate wire contracts (rocketmq-protocol), bounded TCP/TLS transport (rocketmq-transport), and task lifecycle management (rocketmq-runtime) on Tokio. The client takes an application-owned runtime rather than creating a hidden one, so the caller controls startup and shutdown. Operations stay off the message path: rocketmq-admin-core serves the CLI, TUI, dashboards, and MCP integrations, with separate MCP servers for read-only diagnostics and supervised changes.
Key Capabilities & Differentiators
The SDK supports producers, including transactional producers, plus push, lite pull, and POP consumption. The repository includes examples for ordered and delayed messages and request/reply, alongside tag and SQL92 filtering support. Local storage uses CommitLog, ConsumeQueue, and index files. The optional RocksDB component is described for derived state such as queues, indexes, timers, and transactions; it should not be treated as a like-for-like replacement for the primary CommitLog. Optional tiered storage moves older messages to a secondary layer and retrieves them when needed.
The operations stack includes a Java mqadmin-compatible CLI command surface, a TUI, web and desktop dashboards, and an offline tool for CommitLog inspection and downgrade preflight. Authentication and ACL authorization, TLS, and OpenTelemetry instrumentation with OTLP and Prometheus exporter options address distinct production needs. For agent integration, the concrete boundary is read-only diagnostics versus separately controlled changes. MCP transport, tool schemas, and model-provider support are not established, so they should not be assumed in an integration plan.
Trade-offs & Limitations
The direct comparison is Apache RocketMQ’s Java implementation, with 5.5.0 as the compatibility baseline. Remoting support, gRPC ingress, and conversion of Java Broker .properties files provide useful migration paths but do not establish full feature parity, mixed-version failover behavior, or drop-in compatibility with existing data directories. Before migrating, test the actual clients, message modes, ACLs, and failover and recovery procedures your deployment relies on. Teams requiring official Apache releases should keep the Java distribution as their default.
The native Rust stack avoids JVM garbage collection and gives applications explicit control over runtime and shutdown, but that also makes lifecycle management an integration responsibility. Neither the language nor the bounded queues establish a throughput or latency advantage for a particular workload. Benchmark end-to-end under representative load and recovery conditions. The modular design lets a small installation omit Proxy, Controller, and MCP; adding those services introduces additional network and policy boundaries. Keeping the write-capable MCP service separate makes least-privilege rollout easier, but its access and approval controls still need validation.
Hardware & Deployment Guide
Start with a self-hosted NameServer and Broker, using published Docker Hub or GHCR images or a source build. Helm charts and Kubernetes manifests are also available. The v1.1.0 source build needs Rust 1.95.0 or newer and a native C/C++ toolchain. The local walkthrough uses --rocketmqHome or ROCKETMQ_HOME for NameServer and -c .rocketmq/broker.toml for Broker. It needs free TCP ports 9876, 10909, 10911, and 10912 and about 1.5 GB for preallocated store files. These are local setup requirements, not production sizing guidance.
Keep the unauthenticated, non-TLS quick start on loopback; the Broker binds to all interfaces without a config file. Before opening network access, explicitly configure listener and advertised addresses, persistent storage, ACLs, and TLS. Add the Proxy for gRPC or the Controller for controller-mode HA when needed, and deploy the standalone AI operations projects separately from the root Cargo workspace. Version 1.0.0 established the stable core service and tooling release; v1.1.0 introduced source-breaking API changes. Since ^1.0 can resolve to 1.1.0, control dependency resolution and rebuild downstream applications with their production feature sets before rollout.
Rust teams evaluating self-hosted RocketMQ-compatible messaging, or platform teams piloting MCP-assisted diagnostics without putting agents in the message path.
You need an official Apache distribution, a drop-in migration without compatibility testing, or a standalone agent platform with established model-provider and MCP tool coverage.
Quick Start & Installation
cargo run -p rocketmq-namesrv --bin rocketmq-namesrv-rust -- --rocketmqHome .rocketmq --bindAddress 127.0.0.1
Comparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| rocketmq-rust ★ | 1.6k | +6 | Rust | Apache-2.0 | Tokio-based RocketMQ for self-hosted messaging with separate MCP operations |
| obscura | 38.8k | +1k | Rust | Apache-2.0 | Rust/V8 headless browser for agent automation and capture without Chromium |
| WrenAI | 18.5k | +66 | Python | — | An MCP-ready semantic engine that gives AI agents governed SQL and dashboard wor |
| activepieces | 25.9k | +104 | TypeScript | — | Self-hosted TypeScript automation with visual workflows and reusable MCP tools |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/mxsm/rocketmq-rust.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about rocketmq-rust
Where does MCP fit in an existing RocketMQ deployment?
rocketmq-admin-core. Start with the read-only diagnostic server; deploy the separate server for supervised changes only if needed. Verify MCP transport, tool coverage, authentication, and approval behavior before granting write access.Do I need a GPU, and how should I size a deployment?
Can a company self-host, modify, and redistribute RocketMQ-Rust?
When should I choose it over Apache RocketMQ’s Java implementation?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy