Watch systems scale
in front of you.
Every concept from the notes, from load balancers and token buckets to Raft, sagas and matching engines. Each one comes with an interactive lab you can poke at, and the full notes and diagrams sit right underneath.
Foundations / How systems grow, how to estimate, how to interview
Scale from Zero to Millions of Users
From one box to millions of users, step by step.
Back-of-the-Envelope Estimation
Powers of two, latency numbers and quick math.
A Framework for System Design Interviews
A four-step plan for a 45-minute interview.
Building Blocks / The primitives every large system is made of
Rate Limiter
Five algorithms that say no to excess traffic.
Consistent Hashing
A ring that keeps keys still when servers move.
Key-Value Store
CAP, quorums, vector clocks and gossip.
Unique ID Generator in Distributed Systems
64-bit IDs that sort by time, with no coordination.
Classic Designs / The everyday products everyone has used
URL Shortener
Base62, hash collisions and 301 vs 302.
Web Crawler
BFS over the web, politely.
Notification System
Push, SMS and email, delivered reliably.
News Feed System
Fanout on write vs fanout on read.
Chat System
WebSockets, presence and message sync.
Search Autocomplete System
Tries with top-k cached at every node.
YouTube
Upload, transcode as a DAG, stream from the CDN.
Google Drive
Block-level sync, dedup and conflicts.
Distributed Email Service
SMTP, IMAP, search and deliverability.
Location & Maps / Space, distance and moving people
Data Infrastructure / Queues, metrics, streams and storage at scale
Distributed Message Queue
Partitions, consumer groups and ISR.
Metrics Monitoring and Alerting System
Time-series data, pull vs push, and alerts.
Ad Click Event Aggregation
Windows, watermarks and exactly-once.
S3-like Object Storage
Buckets, erasure coding and multipart uploads.
Real-time Gaming Leaderboard
Redis sorted sets and skip lists.
Money & Correctness / Where a lost message costs real money
Hotel Reservation System
Concurrency and stopping double bookings.
Payment System
PSPs, ledgers, reconciliation, idempotency.
Digital Wallet
2PC, TC/C, Saga and event sourcing.
Stock Exchange
Order books, matching engines, microseconds.