internalsGet Pro

System Design · Module 08

Storage engines and on-disk data structures

Lessons
15
Free
0
Reading
~5 h

Your progress

0 / 15 lessons done

Sign in to track

Lessons

  1. Storage engine requirements: what they must handleDatabase settings and benchmarks only make sense against a clear storage contract. You need that contract when choosing an engine, changing durability settings or investigating missing data.18 min
  2. Storage engine tradeoffs: reads, writes and spaceStorage tuning often moves a cost rather than removing it. You need to recognize when faster writes create slower reads, growing files or maintenance work that cannot keep up.18 min
  3. Building a key-value store on a single fileStorage libraries turn file operations into promises about data. Building a small store exposes the ordering, recovery rules and resource limits behind those promises.19 min
  4. Binary file formats: designing your ownStorage files can outlive the program that created them. Engineers need precise byte contracts to read old data, detect damage and deploy compatible changes.19 min
  5. Append-only logs and BitcaskStorage engines often keep old bytes instead of updating them. Understanding that choice helps you explain their memory use, durability settings, recovery time and background disk traffic.19 min
  6. LSM trees: storage designed for fast writesA database can accept writes quickly and still become slower every minute. Understanding LSM trees helps you distinguish a short burst of speed from sustainable storage throughput.19 min
  7. The LSM write path: memtable, WAL and SSTablesAn embedded storage engine can acknowledge a write long before it reaches a sorted data file. Understanding that gap helps you choose durability settings, investigate write stalls and reason about crash recovery.19 min
  8. The LSM read path: Bloom filters and sparse indexesA database can accept writes quickly yet struggle to find one key. Understanding its read path helps you distinguish excessive file checks, missing metadata and genuine data reads.19 min
  9. Compaction: merging files and reducing amplificationAn LSM engine can accept writes quickly while accumulating work that later slows reads or stops writes. Compaction connects that background work to disk capacity, deletion correctness and user-visible latency.19 min
  10. Immutable data files and versioningStorage maintenance must not break requests already reading data. File versioning connects background compaction, crash recovery and safe disk-space reclamation.19 min
  11. Object storage internals: how S3-style systems workUploads can finish storing bytes without becoming visible, or become visible before their response reaches the client. Understanding these boundaries helps you diagnose missing objects, failed replacements and growing storage bills.20 min
  12. Object placement: partitioning and metadataStorage capacity is useful only if requests can find the right bytes. Placement and metadata determine whether adding capacity or replacing a failed machine preserves that ability.20 min
  13. Append-only streams as a storage layerStorage streams let services rebuild indexes, recover state and serve several readers from one recorded history. Their safety depends on what an acknowledgement means and which records remain available.19 min
  14. Durability: replication and checksumsStorage can return success before bytes reach persistent media. You need to understand acknowledgment, verification and repair before promising that an uploaded file will survive a failure.19 min
  15. Design: an S3-style object storeUpload services must coordinate large byte transfers with small, atomic metadata changes. This design shows where data becomes visible, what an acknowledgement promises, and how failures affect those promises.30 min

Practise with

Terms this module teaches 49

Open glossary

Append-only log

A sequence of records where changes are added at the end instead of rewriting earlier records.