The System Design board on choosing a storage engine for the job, with the log-structured one drawn as a stack of sorted books. This capstone is that engine, built. Closes the LSM series, Build Your Own LSM Tree.
Before you start. This series built a small copy of a log-structured storage engine in seven stages. By now it can: keep recent writes in a sorted memtable (LSM 01-02: The Memtable and the Log). Log every write first so a crash cannot lose one. Flush the memtable into an immutable sorted file with a sparse index (LSM 03-04: Table Files and the Sparse Index). Skip files with a Bloom filter (LSM 05: The Bloom Filter). And merge files in levels so a lookup touches about one (LSM 06-07: Compaction and Levels). This lesson follows a write and a read through all of it and compares the result with the real library the design came from.
Lesson 60 of 117 in From Scratch
The rest of this lesson is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.