Stratakv
Aug 2026A linearizable distributed key-value store built on Raft consensus, an LSM storage engine, and a linearizability checker that verifies the whole thing under network partitions.
- From-scratch Raft covering leader election, log replication, current-term-only commitment and snapshot compaction, sustaining 1,100 ops/s across 3 nodes, with leader failover measured at 334–526 ms.
- Hand-written LSM storage engine: a CRC-framed write-ahead log with torn-tail recovery, skiplist memtable, bloom-filtered SSTables and levelled compaction. Point reads land at 1.17 µs, and the filters skip 99% of tables on absent keys.
- Correctness is proved rather than asserted. A self-written linearizability checker (Wing & Gong, with Lowe's memoisation) verified 3,150 operations across 15 leader changes under repeated partitions, with zero anomalies. The checker itself is tested against six classes of known violation.
- Raised throughput 25 → 1,100 ops/s by isolating each layer: group-commit durability, an append-only log, and a lock-free counter on the apply path that was serialising every operation behind a 4 ms fsync.
At a glance
- 3,150
- ops verified linearizable
- 334ms
- fastest failover
- 0
- external dependencies
