Series · 4 parts · 60 min total
Database Internals
What happens inside the storage engine when you write a row.
To be written: who this series is for, in one sentence.
The parts
- 1Deep dive
UUID v4 vs UUID v7 vs Snowflake — Pick the Right Primary Key
Your primary key decides how every insert lands in the index.
- 2Deep dive
LSM Trees, the Deep Cut — MemTable, WAL, SSTables, Compaction and Why Your Writes Are So Fast
Why RocksDB, Cassandra and ClickHouse write so fast, and what they pay for it later.
- 3Deep dive
The Data Structure That Lies to Save Your Disk — How Bloom Filters Say "Definitely Not Here" in 1% of the Space
A data structure that is wrong on purpose, and saves your disk because of it.
- 4Deep dive
How Redis Actually Deletes Expired Keys — The Lazy + Active Hybrid You Didn't Know About
A key with TTL zero can still use memory. Here is why.
Get new parts by email
One production failure explained every two weeks. Free.