Why it matters

LSM trees power write-heavy stores. RocksDB is workhorse.

Advertisement

The architecture

Memtable + WAL.

Flush to SSTable.

Background compaction.

LSM tree deep diveMemtable + WALin memoryFlushimmutable SSTableCompactionbackground mergeO'Neil et al. 1996; RocksDB, LevelDB, Cassandra, HBase all use
LSM tree deep dive.
Advertisement

How it works end to end

O'Neil 1996.

Memtable + WAL + SSTable.

Compaction background.