Field
notes.
software, systems, and the occasional rabbit hole.
Published
02 essays
building a serializable database in rust,
and measuring what it costs
two transactions, two engines, and one of them ends up with nobody on call, a single node engine that detects the anomaly instead of leaving it to you.
two doctors are on call; the rule is that at least one stays on duty. each checks that the other is still on, each signs off, and against most databases you end up with nobody on call. here's the engine that refuses to commit that schedule, built on serializable snapshot isolation, a TLA+ spec checked across 24.6M states, and a deterministic simulator that replays every bug from a seed, and the throughput it pays to do it, measured against RocksDB, LMDB, and sled.
Read the essay
More
01 essay