Data-intensive systems, visualized

    The ideas behind every database and data pipeline you will use, in the order they build on each other: how one machine stores data, how many machines share it, and how data flows between systems.

    Each topic is a short story you can step through and pause. It follows the outline of Kleppmann's Designing Data-Intensive Applications, so it works as a companion to the book.

    One machine: storage and encoding

    How a database lays out data on disk, and how data changes shape over time.

    1. Latency Percentiles & Tail LatencySort real response times to read p50, p95 and p99, see why the mean misleads, and watch fan-out and queueing turn a rare slow request into a common slow pageBeginner, 10 min
    2. Relational Algebra & JoinsVisualize the mathematical foundations of SQL: Projections, Selections, and different types of JoinsBeginner, 15 min
    3. Query Languages & Data ModelsCompare a loop with a declarative query, a document with a shared row, a graph pattern, Datalog rules and a SPARQL triple query, each run step by step on a tiny data setIntermediate, 20 min
    4. NoSQL Database ModelsSee one e-commerce order reshaped as a document, a key-value pair, and a wide-column rowIntermediate, 16 min
    5. Hash Indexes & Append-Only LogsWatch writes append to a log, a hash map point at the newest record, segments compact, and the map rebuild after a crashIntermediate, 15 min
    6. B-Tree IndexesAn interactive visualization showing how databases use B-Trees to retrieve data in O(log n) time without scanning the full tableIntermediate, 20 min
    7. LSM-Trees & SSTablesWatch writes land in a memtable and a log, flush into sorted SSTables, get read newest-first with bloom filters, and merge during compactionIntermediate, 15 min
    8. Bloom FiltersInteractive visualizer for the Bloom Filter, a space-efficient probabilistic data structure used to save expensive disk readsAdvanced, 15 min
    9. Star Schemas & Data CubesJoin a fact table to its dimensions, see what snowflaking costs, and watch a data cube turn a scan into a lookupIntermediate, 15 min
    10. Column-Oriented StorageAnswer one analytics query from a row store and a column store, count the cells each reads, then compress a sorted column with run-length encodingIntermediate, 12 min

    Many machines: replication and partitioning

    Copies for safety and speed, slices for scale, and the bugs that live in between.

    Transactions

    What isolation levels promise, and the anomalies each one lets through.

    When the network and clocks lie

    Partial failure, pauses, clock skew, and how to stay correct anyway.

    1. CAP TheoremVisualize the trade-offs between Consistency and Availability when a Network Partition occurs in a distributed systemIntermediate, 15 min
    2. Failure Detectors: Timeouts & Phi AccrualSee why a crashed node and a slow node look alike, how a short or long timeout fails, and how a phi accrual detector turns silence into a suspicion levelAdvanced, 15 min
    3. Unreliable Clocks & Fencing TokensSee a paused process wake up on an expired lease and corrupt data, how fencing tokens stop it, and how clock skew makes last-write-wins drop newer writesAdvanced, 15 min
    4. LinearizabilityWatch a replicated register return a value, then an older one, and see how quorum reads with read repair and compare-and-set make it act like a single copyAdvanced, 15 min
    5. Lamport & Vector ClocksStep through messages between three processes as Lamport and vector clocks tick, see which events are concurrent, and watch total order broadcast keep nodes in stepIntermediate, 15 min
    6. Leader Election (Raft)Visualize how distributed databases elect a Leader and recover from crashes using the Raft Consensus AlgorithmAdvanced, 20 min
    7. Raft Log ReplicationFollow a client write through the leader to a majority and commit, repair a follower that fell behind, and see an old leader’s uncommitted entries overwrittenAdvanced, 15 min
    8. Byzantine FaultsCompare a node that crashes with one that liesAdvanced, 12 min
    9. Distributed Transactions (Saga vs 2PC)Learn how microservices maintain data consistency across multiple databases using Two-Phase Commit and Saga patternsAdvanced, 20 min

    Derived data: batch and streams

    Turning one source of truth into indexes, caches and views that stay in sync.

    Doing the right thing

    Collecting less, asking consent and deleting on request, as simple flows.

    Learn it as part of a path

    Related topics