SysDesignAtlas

Data & Storage

What actually happens beneath the query. Storage engines, durability, execution, streams, and analytics.

CoreHard11 min

Storage Engines — B-Tree vs LSM

The two ways databases put bytes on disk, why one favours reads and the other writes, and how compaction and write amplification decide your workload's fate.

CoreMedium13 min

Durability & the Write-Ahead Log

What "the write succeeded" actually promises — fsync, group commit, torn writes, and the several layers of hardware that will cheerfully lie to you about all of it.

CoreHard12 min

Transactions, Isolation & MVCC

What ACID actually guarantees, the anomalies each isolation level permits, how MVCC gives readers a consistent view without locks, and why write skew catches everyone.

CoreHard12 min

How a Query Actually Runs

Parser to plan to execution — join algorithms, cost models, why the optimizer picks the wrong plan, and what "vectorized execution" buys you.

HLDMedium10 min

Change Data Capture & the Outbox Pattern

How to reliably propagate database changes to search indexes, caches, and other services — without dual writes, and without losing events.

HLDHard13 min

Stream Processing

Event time versus processing time, watermarks, windowing, and what "exactly-once" actually means — the machinery for computing over data that never stops arriving.

HLDMedium10 min

OLTP vs OLAP & Columnar Storage

Why analytical queries need a different database, how column orientation changes everything, and the modern pipeline from operational data to insight.

HLDMedium13 min

Data Lakes, Lakehouses & Batch Processing

Parquet, table formats like Iceberg, partitioning that actually helps, and why the industry converged on "object storage plus metadata" for everything analytical.

HLDHard11 min

Databases on Object Storage

Why a new generation of databases, queues and search engines keeps no data on local disk at all — what made it possible, how a write survives 50 ms object-store latency, and how compare-and-swap on a file replaces a consensus cluster.