Distributed Storage Internals
Explain how storage engines and Dynamo-style replicated stores work inside, so you can predict their write, read and repair costs and tune them for a workload.
4 objectives 6 steps about 140 min
Check what you know
The lessons are coming later. The knowledge check is ready now.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Compare B-tree and LSM-tree storage engines (write-ahead log, memtable, sorted runs, compaction, Bloom filters) by write, read and space amplification, and choose one for a stated read/write mix.
- Design a Dynamo-style key-value store that combines consistent hashing, replication and tunable read and write quorums, and resolve concurrent writes with version vectors or last-write-wins, stating what each can lose.
- Keep a leaderless store convergent through failures with gossip membership and failure detection, hinted handoff, read repair and Merkle-tree anti-entropy, and estimate the repair traffic each causes.
- Compare replication and erasure coding for an object store by durability, storage overhead, repair traffic and read latency, and keep the metadata service separate from blob placement.
Lesson plan
6 steps, about 140 min · 0 of 5 lessons available so far
- Inside a storage engine: B-trees, LSM-trees and the write-ahead log Concept · 25 min · coming later
- Building a tiny LSM store and measuring its amplification Lab · 30 min · coming later
- Designing a Dynamo-style key-value store Worked example · 30 min · coming later
- Membership, repair and convergence without a leader Concept · 20 min · coming later
- Object storage: metadata, placement, replication and erasure coding Concept · 20 min · coming later
- Storage internals check Knowledge check · 8 questions
Practise it
Build a minimal LSM store (write-ahead log, memtable, sorted runs, size-tiered compaction and a Bloom filter per run), load 1M keys with updates and deletes, and report write, read and space amplification before and after compaction; then design a three-replica key-value store with chosen N, R and W, a conflict policy and the repair path for a node that is down for an hour, and estimate the bytes moved to repair it.
References
Hard prerequisites
Unlocks
Nothing depends on this skill yet.
On these roadmaps
Progress and evidence for this skill are shared across all of them.