ASAysha Shafiq
DATABASE INTERNALS · DISTRIBUTED SYSTEMS

TinyKV Distributed Store

I built a durable C++ key-value store that combines an LSM engine, key-value separation, crash recovery, and Raft consensus behind a small API.A durable C++ key-value store with an LSM engine, crash recovery, and Raft consensus.

Replicates data across servers
Keeps data safe through crashes
Faster writes for large values

Two systems, one interface

The local database knows nothing about the network; the Raft layer replicates opaque commands and knows nothing about the LSM tree.

Crash safety by construction

The engine avoids in-place data updates and treats the manifest as the durable description of every live file.

Raft and measured trade-offs

A three-node cluster acknowledges writes only after a majority has them on disk, while deterministic tests inject partitions and divergent logs without timing races.

AirlockTarget AnagramSmolLM Alignment Lab