Raft-replicated distributed key–value store
Built with Java 21, gRPC, Docker, JUnit, JMH.
0
saved writes lost in 50 crash tests.
A five-node key–value store implementing Raft from scratch in Java 21, built to examine consistent replicated state through crashes, partitions, delayed messages, and leadership changes.
What I built
- Leader election and replicated log coordination across five nodes
- gRPC key–value API designed for linearizable operations
- Log replication and committed-operation propagation
- Snapshotting for replicated-state management and recovery
- Fault-injection harness for crashes, partitions, and message delays
Measured results
- replicated nodes
- 5
- fault-injection scenarios
- 50
- lost acknowledged writes
- 0
- operations / second
- 20k
- reported p99 latency
- 12 ms
- measured failover
- 350 ms
Private repository
Benchmark and method
Project benchmark: five-node cluster, 50 fault-injection scenarios. Throughput and latency describe the tested workload.




