r/rust • u/joshuachi • Jan 20 '26
d-engine 0.2 – Embeddable Raft consensus for Rust
Hey r/rust,
I've been building d-engine – a Raft implementation designed to make distributed coordination cheap and simple. v0.2 is out, looking for early adopters willing to try it in real projects.
Why I built this:
In my experience, adding distributed coordination to applications was always expensive – existing solutions like etcd are either too slow when embedded (gRPC overhead) or require running separate 3-node clusters. d-engine aims to solve this.
What it does:
Gives you Raft consensus you can embed in your Rust app (zero serialization, <0.1ms latency) or run standalone via gRPC (language-agnostic).
Built for:
Distributed locks without running a 3-node etcd cluster
Leader election for microservices
Metadata coordination needing low latency
Starting simple (1 node), scaling when needed (3 nodes)
Architecture (why it's cheap):
Single-threaded event loop (Raft core = one thread)
Small memory footprint
Start with 1 node,
cargo addand you're runningZero config for dev, simple config for production
Quick numbers (M2 Mac, embedded mode, lab conditions):
See benches/ for methodology – your results will vary
Current state:
Core Raft: Production-ready (1000+ tests, d-engine 0.1.x version - Jepsen tests validated)
APIs: Stabilizing toward v1.0 (breaking changes possible pre-1.0)
Looking for: Teams with real coordination problems to test in staging
Try it:
d-engine = "0.2"5-min quickstart: https://docs.rs/d-engine/latest/d_engine/docs/quick_start_5min
Docs: https://docs.rs/d-engine
What I am offering:
If you have a coordination problem (expensive etcd, complex setup, need low latency), I'm happy to help review your architecture and see if d-engine fits. No strings attached.
Open to all feedback.
Duplicates
DistributedComputing • u/joshuachi • Jan 20 '26