Learn Labs

Start reading

Study notes on Designing Data-Intensive Applications and Kafka: The Definitive Guide, and hands-on modules for the infrastructure they describe.

Two kinds of book live here. Study notes on Designing Data-Intensive Applications and Kafka: The Definitive Guide, read closely chapter by chapter. And hands-on modules (PostgreSQL, ClickHouse, Prometheus & Grafana, Redis, Kafka, RabbitMQ, SeaweedFS, Nginx, Kubernetes), each a production-shaped stack in this repository with labs whose measured results the lessons report.

Each study-notes chapter follows the same shape: the argument in order, diagrams redrawn from the figures, technology deep dives, a production failure catalog, a decision cheat sheet, worked arithmetic, and a self-test.

Kleppmann & Petrov · 2nd edition

Designing Data-Intensive Applications

Chapter-by-chapter notes on Designing Data-Intensive Applications, 2nd edition — concepts, diagrams, technology deep dives, failure catalogs, and self-tests.

14 ch171 sections205 figures

Shapira, Palino, Sivaram & Petty · 2nd edition

Kafka: The Definitive Guide

Chapter-by-chapter notes on Kafka: The Definitive Guide — producers, consumers, internals, exactly-once semantics, operations, and stream processing.

15 ch175 sections402 figures

Row-oriented OLTP database

PostgreSQL

PostgreSQL from zero to production on a three-node cluster: MVCC and VACUUM, isolation anomalies, indexes and the planner, WAL and point-in-time recovery with pgBackRest, streaming replication and automatic failover with Patroni and etcd, PgBouncer, security, load testing, failure drills, upgrades, and monitoring, all measured in labs.

12 ch43 sections18 figures

Column-oriented OLAP database

ClickHouse

ClickHouse from zero to production on a 2 shard x 2 replica cluster with ClickHouse Keeper: MergeTree parts and merges, schema design, materialized views and projections, async inserts, replication and Distributed tables, security, backup and restore to S3, load testing, failure drills, rolling upgrades and monitoring, all measured in labs.

11 ch55 sections17 figures

Metrics, dashboards & alerting

Prometheus & Grafana

Prometheus and Grafana from zero to production: the scrape model, metric types, PromQL, instrumentation and exporters, dashboards as code, alerting and SLOs, TSDB internals, scaling, and running it all safely.

11 ch34 sections0 figures

In-memory data structure server

Redis

Redis from zero to production: the event loop, every data structure and its encoding, expiration and eviction, caching, rate limiting, locks, transactions and Lua, Pub/Sub and Streams, persistence, replication with Sentinel, Redis Cluster, and operations.

12 ch34 sections0 figures

Hands-on with a 3-broker KRaft cluster

Kafka in Practice

The hands-on companion to the Kafka book notes: a 3-node KRaft cluster, producers and consumer groups, delivery semantics, share groups, replication and broker failures, transactions, Schema Registry, Debezium CDC, and operations, each tested against a live cluster.

11 ch22 sections0 figures

Message broker with routing

RabbitMQ

RabbitMQ from zero to production on a 3-node cluster: the AMQP model, exchange routing, consumer acks and publisher confirms, quorum queues and streams, dead-lettering and retries, flow control, clustering, security, and monitoring.

8 ch17 sections0 figures

S3-compatible object storage

SeaweedFS (Object Storage)

Self-hosted S3-compatible object storage from zero to production on a SeaweedFS cluster: the S3 API, scoped credentials, masters, volume servers and the filer, replication placement and a failure drill, erasure coding, versioning and lifecycle, backups, monitoring, and failure scenarios.

8 ch15 sections0 figures

Reverse proxy and load balancer

Nginx

Nginx from zero to production as the edge of a real stack: the process model and configuration, static files and reverse proxying, load balancing and backend failures, caching and rate limiting, TLS and hardening, logging, monitoring, and failure scenarios, all measured in labs.

8 ch16 sections0 figures

Running applications on a cluster

Kubernetes

Kubernetes from zero to production on a real multi-node kind cluster: the control plane and reconciliation, workloads and configuration, probes and zero-downtime rollouts, resources and autoscaling, scheduling, drains and node failure, Services and the Gateway API, NetworkPolicies, StatefulSets, security, monitoring, and failure scenarios, all measured in labs.

9 ch18 sections0 figures

How each chapter is laid out

SectionWhat's in it
ConceptsThe chapter's argument, in order, with key sentences preserved verbatim where the exact wording matters
DiagramsRedrawn from the book's figures, plus extra diagrams for mechanisms described only in prose
Technology deep divesPer system: what problem it solves · why the alternative wasn't enough · how it works internally · deployment · monitoring · scaling · backup · what breaks in production
Production failure catalogSymptom → underlying mechanism, filterable
Decision cheat sheetThe choices you'll actually have to make, with the criteria
Worked examplesThe arithmetic behind the trade-offs
Self-test20–49 questions per chapter, ending in an open design question, with progress tracked
Terminology · Forward linksChapter vocabulary, and where each idea gets developed next

The books supply the concepts and the failure modes; the deployment/monitoring/backup material is the practitioner layer they deliberately leave to you.

On this page