01 · Distributed key-value store
Tenet
A Raft key-value store in C++17, tested by deterministic simulation and a linearizability checker.
Raft with PreVote, CheckQuorum, pipelined replication, snapshots, a checksummed write-ahead log and exactly-once client sessions, served over gRPC. The Raft core never touches the network, disk or clock, so the same code runs in a simulator where one seed controls every delay, drop, partition and crash.
- 0
- violations in 20,000 seeded fault runs (14.5M operations checked)
- 494,853
- operations under 32 kills and 34 partitions of a real cluster, 0 violations
- 6,561
- ops/s at 64 clients, p99 18.5 ms, fsync on
- 181 ms
- median failover after a leader crash; 4 of 4 planted bugs caught
C++17 · gRPC · Raft · CMake · Sanitizers
5 nodes and the load generator on one 4-vCPU machine.
Four planted bugs, all caught. The real build: no violations across 20,000 seeds.



