Skip to main content
Rust 原生分布式系统 / Rust-native distributed systems

从 Raft 共识 / From Raft consensus
到生产级系统。 / to production.

一个框架整合 Multi-Raft 编排、分片路由、客户端 SDK 与运维能力,让你专注业务服务,而非重复搭建基础设施。 / One framework for multi-Raft orchestration, shard routing, client SDKs, and operations—so you can build the service, not the infrastructure.

强一致性 / Strong consistency水平分片 / Horizontal sharding故障验证 / Failure-tested
实时拓扑 / Live topology
production / group-01
健康 / Healthy
01领导者 / Leader
02跟随者 / Follower
03跟随者 / Follower
AppendEntriesterm 42已提交 / committed
11模块化 crate / modular crates
2待集成 trait / traits to integrate
3快速入门节点 / nodes in the quickstart
1一体化框架 / integrated framework
一体化技术栈 / One integrated stack

从你的 trait,到运行中的集群。 / The layers between your trait and a running cluster.

共识、路由、客户端与运维共享同一套契约和集成测试。 / Consensus, routing, clients, and operations share the same contracts and integration tests.

01

内置共识能力 / Consensus, built in

运行多个相互独立的 Raft 组,获得强一致性、Leader 选举、快照与成员变更保障。 / Run multiple independent Raft groups with strong consistency, leader election, snapshots, and membership safeguards.

02

按分片扩展 / Scale by shards

将分区路由到不同 Raft 组,横向提升吞吐量,避免副本成为系统瓶颈。 / Route partitions across Raft groups and grow throughput horizontally without turning replicas into a bottleneck.

03

开箱即可运维 / Ready to operate

内置客户端重试、Prometheus 指标、结构化追踪、TLS、管理工具与部署模板。 / Ship with client retries, Prometheus metrics, structured tracing, TLS, admin tooling, and deployment templates.

04

端到端 Rust / Rust end to end

将框架嵌入你的二进制程序,通过明确的 Service 与 StateMachine trait 接入业务逻辑。 / Embed the framework in your binary and connect business logic through explicit Service and StateMachine traits.

完整的分布式底座 / A complete foundation

专注业务逻辑。 / Your business logic.
分布式底座交给我们。 / Our distributed backbone.

无需再手工拼装共识、网络、路由与运维能力。Rr 为每个关注点提供清晰边界和经过验证的集成路径。 / Stop stitching consensus, networking, routing, and operations together by hand. Rr gives each concern a clear boundary and a tested integration path.

查看 C4 架构 / View the C4 architecture
端到端请求链路 / End-to-end request path01 — 04
01

你的应用 / Your application

定义业务命令与状态转换 / Define business commands and state transitions

Service / StateMachine
02

客户端与路由 / Client & routing

发现分片,将请求送往正确的 Leader / Discover shards and direct requests to the right leader

rr-client · rr-router
03

共识与存储 / Consensus & storage

复制日志、提交条目并持久化状态 / Replicate logs, commit entries, and persist state

rr-raft · rr-storage
04

网络与运维 / Network & operations

连接节点,并观测和管理整个集群 / Connect nodes, then observe and manage the cluster

rr-network · rr-admin
你的 trait / Your traits生产级集群 / Production cluster
亲手运行 / Run it yourself

从三节点集群开始。 / Start with a three-node cluster.

阅读快速入门 / Read the quickstart