System Design
115 lessons and 637 connections between them, based on the cross-references in each lesson. Point at a lesson to see its own links. For reading order, seethe System Design track page.
TrackAllFrom ScratchSystem DesignDSAAIMind BlownDevOpsFinanceNetworkingHow Computers WorkSecurityPsychologyDatabase InternalsPhilosophyGame TheoryHow Things WorkData SystemsPersonal DevelopmentPortfolio Projects
- The chai stall that got famous (load balancing)13 lessons link here
- The slate next to the stove (caching)10 lessons link here
- The order slip rail (queues & the utilization cliff)18 lessons link here
- The copy clerks (database replication)18 lessons link here
- Splitting the ledger (sharding)46 lessons link here
- The cut phone line (CAP, done properly)18 lessons link here
- Rate limiting: the token bucket16 lessons link here
- Who holds the pen (consensus & Raft)13 lessons link here
- The Two Ledgers Must Agree (Distributed Transactions)13 lessons link here
- Charged Twice (idempotency & exactly-once)33 lessons link here
- The Ledger Everyone Reads (event-driven & the log)28 lessons link here
- Design the Whole Thing (the interview, assembled)44 lessons link here
- The Right Book for the Job (databases, deeply)16 lessons link here
- The Slate, Properly (caching to real depth)24 lessons link here
- The Contract at the Counter (API design)9 lessons link here
- Four Systems in One Night (worked designs)27 lessons link here
- Discord, the case study16 lessons link here
- Instagram, the case study21 lessons link here
- YouTube, the case study16 lessons link here
- Slack, the case study14 lessons link here
- Figma, the case study7 lessons link here
- Cloudflare, the case study13 lessons link here
- Dropbox, the case study9 lessons link here
- Amazon, the case study9 lessons link here
- OpenRouter, the case study6 lessons link here
- Claude, the case study1 lesson links here
- Netflix, the case study11 lessons link here
- Uber, the case study5 lessons link here
- WhatsApp, the case study7 lessons link here
- Twitter (X), the case study8 lessons link here
- Stripe, the case study1 lesson links here
- Zomato, the case study4 lessons link here
- Google Maps, the case study2 lessons link here
- Google Search, the case study9 lessons link here
- Why Data Is the Hard Part (the five building blocks)2 lessons link here
- One wala, many kettles (concurrency vs parallelism)3 lessons link here
- Thirty stalls on one order (availability, the nines, and the tail at scale)5 lessons link here
- The stall that turns people away (load shedding and admission control)3 lessons link here
- Counting the crowd without a register (HyperLogLog, count-min, top-k)3 lessons link here
- The last vada (inventory contention and locking)0 lessons link here
- The branch near your house (CDNs and object storage)1 lesson links here
- The customer who won't hang up (polling, SSE and WebSockets)0 lessons link here
- A lock on every door of the stall (security inside a design)0 lessons link here
- The stall, built: one counter in code (load balancing, health checks and caching in Go)2 lessons link here
- The stall, built: copies and shards (replication and sharding in Go)2 lessons link here
- The stall, built: rush hour (load testing, p99 and the knee in Go)1 lesson links here
- Two kitchens, two cities (multi-region and active-active)3 lessons link here
- What did the database promise? (consistency models)1 lesson links here
- The write that has to happen twice (CDC and the outbox)1 lesson links here
- Changing the engine in flight (live schema and data migrations)2 lessons link here
- One request, forty services (distributed tracing)2 lessons link here
- The log is the truth (event sourcing and CQRS)3 lessons link here
- Nouns and verbs (from requirements to classes)3 lessons link here
- The object that keeps its own rules (encapsulation and invariants)7 lessons link here
- Has-a beats is-a (composition over inheritance)5 lessons link here
- Five letters, one shop (SOLID)4 lessons link here
- Swap the rule, keep the class (Strategy and Factory)11 lessons link here
- Tell everyone who cares (Observer and State)4 lessons link here
- Design a parking lot (the first whole round)7 lessons link here
- Design an elevator (a state machine with a scheduler)2 lessons link here
- Two people, one seat (thread-safe booking)15 lessons link here
- Who owes whom (design Splitwise)1 lesson links here
- Design an LRU cache (a map and a list that keep each other honest)1 lesson links here
- Design a vending machine (states that refuse)0 lessons link here
- Design a rate limiter3 lessons link here
- Design a logger (levels, handlers and the one instance)0 lessons link here
- Design chess (pieces that know their own moves)0 lessons link here
- Design snake and ladder (a game you can test)0 lessons link here
- Design a web crawler (a billion pages a month, politely)1 lesson links here
- Counting clicks in real time (ad click aggregation and top-k)1 lesson links here
- The ten o'clock rush (ticket booking under a flash sale)10 lessons link here
- Run this at nine (a distributed job scheduler)0 lessons link here
- Is it up? (metrics and monitoring)1 lesson links here
- Design Uber, in the interview5 lessons link here
- Design a food delivery app, in the interview0 lessons link here
- Design Google Maps, in the interview2 lessons link here
- Design WhatsApp, in the interview0 lessons link here
- Design YouTube, in the interview1 lesson links here
- Design Twitter, in the interview2 lessons link here
- Design Dropbox, in the interview0 lessons link here
- Design Discord, in the interview0 lessons link here
- Design Slack, in the interview0 lessons link here
- Design Instagram, in the interview0 lessons link here
- Design Netflix, in the interview0 lessons link here
- Design Stripe, in the interview0 lessons link here
- Design Amazon, in the interview0 lessons link here
- Design Google Search, in the interview0 lessons link here
- Design Cloudflare, in the interview2 lessons link here
- Design Figma, in the interview1 lesson links here
- Design Claude, in the interview0 lessons link here
- Design OpenRouter, in the interview0 lessons link here
- Design a URL shortener (a coat check for web addresses, on one machine and then for the world)0 lessons link here
- Design a notification system (a tap on the shoulder, 250 million times a day)0 lessons link here
- The top ten right now (a sketch that is small and wrong by a known amount)0 lessons link here
- What is near me (geohash cells, and fences by ray casting)2 lessons link here
- Backups and the day you need them (RPO, RTO, and the restore nobody tested)2 lessons link here
- Delete means delete (a user asks to be forgotten, and the data is in six places)0 lessons link here
- One building, many tenants (design for customers who must not see or slow each other)0 lessons link here
- Design an object store (a million-million files, and none of them lost)1 lesson links here
- A number nobody else has (UUIDs, Snowflake ids, and a clock you cannot trust)0 lessons link here
- Design an image service (upload, resize, serve)0 lessons link here
- Cursor, the case study1 lesson links here
- Design Cursor, in the interview1 lesson links here
- Design Strava, in the interview0 lessons link here
- Design Nearby Friends, in the interview0 lessons link here
- When the neighbour is slow: timeouts, retries, breakers1 lesson links here
- How much failure can you afford: SLOs and error budgets1 lesson links here
- Size for the zone you lose: capacity, headroom and cost0 lessons link here
- One building or many: monolith, microservices and the strangler0 lessons link here
- The stall with no stove: serverless and edge0 lessons link here
- Everyone edits offline: CRDTs and local-first sync0 lessons link here
- Numbers to carry in your head0 lessons link here
- How you know it holds: Jepsen, simulation and models0 lessons link here
- Compute on borrowed disks: disaggregated storage0 lessons link here
- Who is alive, and where does it go: gossip, detectors and hash variants0 lessons link here