Jeffrey M. Barber

Tombstone

Adama Caravan: the storage engine

Mar 2022 โ€“ Feb 2026 ยท age 40โ€“44

What it was

The storage engine under Adama's living documents: a single-node, single-threaded log of ordered appends per document. The bytes lived in a pre-sized memory-mapped heap, the metadata in RAM, and the truth in a checksummed write-ahead log that began every rotation with a full snapshot of itself. A thread slept just under a millisecond, then wrote and fsynced everyone's changes at once, and nothing became visible to readers until the disk said yes. When a document went idle it was archived to the cloud and deleted locally, so every reopen was a restore. Jeff wrote it after benchmarking RocksDB against this workload and finding the general tool about ten times too slow. It ran in production, in solo mode and in the devbox, as a single point of failure its author named in public.

Wins, for the age

What it taught

Genealogy

Ancestors: Career S3: years inside an object store, and a respect for durability. Lamancha IV: a first disk-backed document store, and Raft left as a TODO. ZHeap: a hand-rolled heap that managed its own free space, twenty years earlier. Descendants: Hearth: one-person persistence on a single node, where backup is copying a directory. Part of: Adama.

Epitaph

It kept its bytes in a mapped file and its truth in a log that began with a picture of itself. Ten times faster than what it replaced, it was good for the two or three years its author predicted.