01 / Distributed systems · Consensus · Fault tolerance
Raft-replicated distributed key–value store
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.
Architecture & failure testing
- 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
5
replicated nodes
50
fault-injection scenarios
0
lost acknowledged writes
20k
operations / second
12 ms
reported p99 latency
350 ms
measured failover
Project benchmark: five-node cluster, 50 fault-injection scenarios. Throughput and latency describe the tested workload.



