System Design
228 boards, 115 lessons, 1121 review questions, 19 labs you can run and 186 narrated videos, in 13 modules and 19 case studies. Read them in order. Each module builds on the one before. Lesson one is free, no account needed.
Preparing for interviews? The ten-week plan sets these chapters beside DSA, and the low-level design round, the classes inside one box, starts at Low-level design: classes, properly.
The whole track, with a plan
115 lessons, 19 labs and 186 videos, all of it open, with every review card and every board. One plan opens every track on chalk.
A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.
read, every lesson
You finished
LinkedIn shares the link. Attach the downloaded image to the post to show it.
Start here → The chai stall that got famous (load balancing)Know some already? Find your levelPlay it as a journey: short bites
Contents
Part one · Foundations
1The stall gets famousshow6 lessons
One chai stall, and everything that breaks as it gets famous: more stalls, a slate by the stove, a rail of order slips, copy clerks, and a ledger cut in two.
- 01The chai stall that got famous (load balancing)10 Qshowplay it as a journey
- 02The slate next to the stove (caching)9 Qshowplay it as a journey
- 03The order slip rail (queues & the utilization cliff)10 QshowFree with an accountplay it as a journey
- 04The copy clerks (database replication)14 QWith a planplay it as a journey
- 05Splitting the ledger (sharding)14 QshowWith a planplay it as a journey
- 06Who is alive, and where does it go: gossip, detectors and hash variants8 QWith a planplay it as a journey
2When the stalls must agree5 lessons
Two books that should say the same thing and a wire that gets cut: CAP, who holds the pen, one transfer across two ledgers, the double charge, and the log everyone reads.
- 01The cut phone line (CAP, done properly)14 QWith a planplay it as a journey
- 02Who holds the pen (consensus & Raft)13 QWith a planplay it as a journey
- 03The Two Ledgers Must Agree (Distributed Transactions)9 QWith a planplay it as a journey
- 04Charged Twice (idempotency & exactly-once)11 QWith a planplay it as a journey
- 05The Ledger Everyone Reads (event-driven & the log)11 QWith a planplay it as a journey
3Holding up under load5 lessons
What one wala does while the chai brews, then rate limits, turning people away on purpose, and the arithmetic of the nines when thirty servers answer one request.
- 01One wala, many kettles (concurrency vs parallelism)7 QWith a planplay it as a journey
- 02Rate limiting: the token bucket10 QWith a planplay it as a journey
- 03The stall that turns people away (load shedding and admission control)7 QWith a planplay it as a journey
- 04When the neighbour is slow: timeouts, retries, breakers8 QWith a planplay it as a journey
- 05Thirty stalls on one order (availability, the nines, and the tail at scale)7 QWith a planplay it as a journey
4The parts, properly9 lessons
The pieces again at real depth: the map of all five, then choosing a database and guarding the last item, caching and the branch near your house, counting a crowd, the contract an API makes, keeping a line open, and a lock on every door.
- 01Why Data Is the Hard Part (the five building blocks)8 QWith a planplay it as a journey
- 02The Right Book for the Job (databases, deeply)11 QWith a planplay it as a journey
- 03The last vada (inventory contention and locking)8 QWith a planplay it as a journey
- 04The Slate, Properly (caching to real depth)11 QWith a planplay it as a journey
- 05The branch near your house (CDNs and object storage)7 QWith a planplay it as a journey
- 06Counting the crowd without a register (HyperLogLog, count-min, top-k)7 QWith a planplay it as a journey
- 07The Contract at the Counter (API design)10 QWith a planplay it as a journey
- 08The customer who won't hang up (polling, SSE and WebSockets)8 QWith a planplay it as a journey
- 09A lock on every door of the stall (security inside a design)8 QWith a planplay it as a journey
5Deeper than the interview12 lessons
A second city and the clocks that disagree, what a database actually promises, the change that must reach two systems, moving data while it is live, following one request through forty services, and the log as the source of truth.
- 01Two kitchens, two cities (multi-region and active-active)7 QWith a planplay it as a journey
- 02Size for the zone you lose: capacity, headroom and cost8 QWith a planplay it as a journey
- 03The stall with no stove: serverless and edge8 QWith a planplay it as a journey
- 04Compute on borrowed disks: disaggregated storage8 QWith a planplay it as a journey
- 05What did the database promise? (consistency models)7 QWith a planplay it as a journey
- 06The write that has to happen twice (CDC and the outbox)7 QWith a planplay it as a journey
- 07Changing the engine in flight (live schema and data migrations)7 QWith a planplay it as a journey
- 08One building or many: monolith, microservices and the strangler8 QWith a planplay it as a journey
- 09One request, forty services (distributed tracing)7 QWith a planplay it as a journey
- 10The log is the truth (event sourcing and CQRS)7 QWith a planplay it as a journey
- 11Everyone edits offline: CRDTs and local-first sync8 QWith a planplay it as a journey
- 12How you know it holds: Jepsen, simulation and models8 QWith a planplay it as a journey
Part two · Build
6The interview, assembled3 lessons
The six steps every design question runs through, then four whole systems designed end to end in one night.
7The stall, built3 lessons
The spine as running Go: a gate, a slate and a rail, then copies and shards with a stale read on purpose, then a load generator that finds the knee.
- 01The stall, built: one counter in code (load balancing, health checks and caching in Go)7 QGoWith a planplay it as a journey
- 02The stall, built: copies and shards (replication and sharding in Go)6 QGoWith a planplay it as a journey
- 03The stall, built: rush hour (load testing, p99 and the knee in Go)7 QGoWith a planplay it as a journey
8Low-level design: classes, properly6 lessons
The classes inside one box: from a spoken requirement to a class list, an object that guards its own rules, holding a part over inheriting one, the five SOLID rules on one shop, Strategy and Factory, Observer and State.
- 01Nouns and verbs (from requirements to classes)7 QWith a planplay it as a journey
- 02The object that keeps its own rules (encapsulation and invariants)7 QWith a planplay it as a journey
- 03Has-a beats is-a (composition over inheritance)7 QWith a planplay it as a journey
- 04Five letters, one shop (SOLID)7 QWith a planplay it as a journey
- 05Swap the rule, keep the class (Strategy and Factory)7 QWith a planplay it as a journey
- 06Tell everyone who cares (Observer and State)7 QWith a planplay it as a journey
9The low-level design round4 lessons
Four whole interview rounds, run end to end: a parking lot, an elevator and its scheduler, two people booking one seat at once, and Splitwise with its debt simplification.
- 01Design a parking lot (the first whole round)7 QWith a planplay it as a journey
- 02Design an elevator (a state machine with a scheduler)7 QWith a planplay it as a journey
- 03Two people, one seat (thread-safe booking)7 QWith a planplay it as a journey
- 04Who owes whom (design Splitwise)7 QWith a planplay it as a journey
10Six more low-level rounds6 lessons
An LRU cache in O(1), a vending machine that refuses, the rate limiter inside one process, a logger with levels and handlers, chess pieces that know their own moves, and snake and ladder you can test.
- 01Design an LRU cache (a map and a list that keep each other honest)7 QWith a planplay it as a journey
- 02Design a vending machine (states that refuse)7 QWith a planplay it as a journey
- 03Design a rate limiter7 QWith a planplay it as a journey
- 04Design a logger (levels, handlers and the one instance)7 QWith a planplay it as a journey
- 05Design chess (pieces that know their own moves)7 QWith a planplay it as a journey
- 06Design snake and ladder (a game you can test)7 QWith a planplay it as a journey
11Five more whole designs6 lessons
The classic questions worked end to end: a polite crawler fetching a billion pages a month, clicks counted live and billed exactly, a ten o'clock booking rush, a scheduler that runs a job once, and knowing whether it is up.
- 01Design a web crawler (a billion pages a month, politely)7 QWith a planplay it as a journey
- 02Counting clicks in real time (ad click aggregation and top-k)7 QWith a planplay it as a journey
- 03The ten o'clock rush (ticket booking under a flash sale)7 QWith a planplay it as a journey
- 04Run this at nine (a distributed job scheduler)7 QWith a planplay it as a journey
- 05Is it up? (metrics and monitoring)7 QWith a planplay it as a journey
- 06How much failure can you afford: SLOs and error budgets8 QWith a planplay it as a journey
12The questions that keep coming up10 lessons
Ten more whole designs, each a question an interviewer actually asks: a short link, a notification, the top ten right now, what is near me, the backup nobody tested, a delete that must reach every copy, one building with many tenants, an object store, an id nobody else has, and an image service.
- 01Design a URL shortener (a coat check for web addresses, on one machine and then for the world)8 QWith a planplay it as a journey
- 02Design a notification system (a tap on the shoulder, 250 million times a day)7 QWith a planplay it as a journey
- 03The top ten right now (a sketch that is small and wrong by a known amount)7 QWith a planplay it as a journey
- 04What is near me (geohash cells, and fences by ray casting)7 QWith a planplay it as a journey
- 05Backups and the day you need them (RPO, RTO, and the restore nobody tested)8 QWith a planplay it as a journey
- 06Delete means delete (a user asks to be forgotten, and the data is in six places)7 QWith a planplay it as a journey
- 07One building, many tenants (design for customers who must not see or slow each other)7 QWith a planplay it as a journey
- 08Design an object store (a million-million files, and none of them lost)8 QWith a planplay it as a journey
- 09A number nobody else has (UUIDs, Snowflake ids, and a clock you cannot trust)7 QWith a planplay it as a journey
- 10Design an image service (upload, resize, serve)8 QWith a planplay it as a journey
Part three · Depth
13Amazon2 lessons
From a memo that became a one-click cart, through blast radius and eleven-nines reliability, to the typo that took down half the internet, then the same system as an interview round.
14Claude2 lessons
The request path through an orchestrator and context window, RAG and the agent loop, the inference fleet, and the training and eval pipeline behind it, then the same system as an interview round.
15Cloudflare2 lessons
One IP serving 330 cities, isolates instead of containers, an unpatchable Spectre, and 434 years of TLS handshakes saved by session resumption, then the same system as an interview round.
16Cursor2 lessons
How an AI editor finds your code: a hash tree that knows what changed, a teammate's index copied in seconds, search trained on its own misses, and grep that opens only the files that could match, then the same system as an interview round.
17Discord2 lessons
The gateway that holds millions of sockets open, the message-store rewrite, voice and video, and fan-out at the limit of a single channel, then the same system as an interview round.
18Dropbox2 lessons
Why sync is not copying: three trees and a merge base, the rewrite that worked, a fuzzer that found what code review didn't, and disks that lie, then the same system as an interview round.
19Figma2 lessons
A browser inside a browser, a way of merging two people's edits that is neither of the two textbook answers (OT, CRDT), one process per document, and undo when someone else already moved it, then the same system as an interview round.
20Google Maps2 lessons
The road graph and routing algorithm underneath the blue line, traffic-aware alternates, tile serving, and the geospatial index that finds nearby places, then the same system as an interview round.
21Google Search2 lessons
The crawler, the inverted index it feeds, query serving and ranking, and how freshness and tiered serving keep an index of the whole web current, then the same system as an interview round.
22Instagram2 lessons
How three engineers shipped it, then sharding and IDs, the celebrity problem in a feed, and Python holding at three billion requests a day, then the same system as an interview round.
23Netflix2 lessons
A read-heavy streaming giant, end to end: encode, cache, recommend, then the same system as an interview round.
24OpenRouter2 lessons
One API in front of every model: routing, wiretapping traffic it has to bill for, counting tokens it doesn't own, and the one thing a reseller can't copy, then the same system as an interview round.
25Slack2 lessons
The monolith that never died, the thundering herd on reconnect, a shard key that lied, and a queue that could not drain itself, then the same system as an interview round.
26Stripe2 lessons
Idempotency as the API's first principle, a state machine for moving money, a double-entry ledger, and the card-network rails underneath all of it, then the same system as an interview round.
27Twitter (X)2 lessons
Timeline fan-out on write versus read, posting and reading at the same instant for millions, and the social graph that decides who sees what, then the same system as an interview round.
28Uber2 lessons
A location firehose feeding a geo-index, dispatch and matching, and surge pricing as a live market clearing supply against demand, then the same system as an interview round.
29WhatsApp2 lessons
The persistent connection every phone holds open, a message's trip from Mumbai to Virginia, and end-to-end encryption that keeps the server from reading it, then the same system as an interview round.
30YouTube2 lessons
A nine-engineer beginning, Vitess sharding MySQL underneath it, the transcode factory behind a billion hours watched a day, and Content ID fingerprinting at that scale, then the same system as an interview round.
31Zomato2 lessons
Search and discovery, the order lifecycle, assignment and batching of delivery partners, live tracking, and a three-sided payment system underneath it, then the same system as an interview round.
32Designs on a map2 lessons
Two whole interview rounds where location is the hard part: a run recorded offline and timed on every segment it crossed, and the friends within a few kilometres of you right now.
Go deeper (14)
Where this track's ideas are taken further, in other tracks: the internals, the theory and the builds.
- Names into addressesNetworking
- Think Like an AttackerSecurity
- Data on one machineData Systems
- One Database, to the BoltDatabase Internals
- CI/CD, IaC & OperationsDevOps
- KafkaFrom Scratch
- The toolboxDSA
- Faster, private, everywhereNetworking
- Sharded KV storeFrom Scratch
- Regions, networks and doorsDevOps
- Neurons to a language modelAI
- AI/ML OpsDevOps
- Bits and switchesHow Computers Work
- The Math of StrategyGame Theory
Borrowed from other tracks (22)
You don’t need to take those tracks. These are the only lessons this track uses from them, and each is linked where it is needed.
- How a parcel finds any house on earthNetworking · needed for The Contract at the Counter (API design)
- The Memory Hierarchy (cache, locality, the memory wall)How Computers Work · needed for Claude, the case study
- HashingDSA · needed for Counting the crowd without a register (HyperLogLog, count-min, top-k)
- Trees (BST, balancing, heaps, tries)DSA · needed for Counting the crowd without a register (HyperLogLog, count-min, top-k)
- TransactionsData Systems · needed for The last vada (inventory contention and locking)
- One address, a thousand doorsNetworking · needed for The branch near your house (CDNs and object storage)
- Object Storage and the CDNDevOps · needed for The branch near your house (CDNs and object storage)
- TCP vs UDP, and the 3-way handshakeNetworking · needed for The customer who won't hang up (polling, SSE and WebSockets)
- HTTP Keep-AliveFrom Scratch · needed for The customer who won't hang up (polling, SSE and WebSockets)
- HTTP 07: Chunked EncodingFrom Scratch · needed for The customer who won't hang up (polling, SSE and WebSockets)
- AuthenticationSecurity · needed for A lock on every door of the stall (security inside a design)
- Authorization & IdentitySecurity · needed for A lock on every door of the stall (security inside a design)
- Transport & Network SecuritySecurity · needed for A lock on every door of the stall (security inside a design)
- Reading Go in twenty minutesFrom Scratch · needed for The stall, built: one counter in code (load balancing, health checks and caching in Go)
- The Restore Nobody TestedDevOps · needed for Backups and the day you need them (RPO, RTO, and the restore nobody tested)
- Data About PeopleData Systems · needed for Delete means delete (a user asks to be forgotten, and the data is in six places)
- Regions, AZs & the BackboneDevOps · needed for Size for the zone you lose: capacity, headroom and cost
- The bill nobody readsDevOps · needed for Size for the zone you lose: capacity, headroom and cost
- The rooms AWS runs for youDevOps · needed for The stall with no stove: serverless and edge
- Consistency and ConsensusData Systems · needed for Everyone edits offline: CRDTs and local-first sync
- WAL & RecoveryDatabase Internals · needed for Compute on borrowed disks: disaggregated storage
- Raft 01: Leader ElectionFrom Scratch · needed for Who is alive, and where does it go: gossip, detectors and hash variants