A complete, self-paced curriculum in system design, written as a durable archive. Every module is a standalone deep-dive with theory, worked numbers, diagrams, a quiz, and a Q&A section.
Audience: engineers who can code but have never been taught distributed systems formally. Starts at absolute zero (what is a server?) and ends at designing planet-scale and AI/ML inference systems.
Method: classical (non-AI) examples are used to teach fundamentals, because
they are the cleanest teaching vehicles. Where a concept maps onto ML/LLM
infrastructure, a 🤖 AI/ML Callout section makes the connection explicit.
Part VII is dedicated entirely to AI systems.
| If you want to... | Do this |
|---|---|
| Learn from scratch | Read modules in order. Do not skip Part I. |
| Revise before an interview | Read the TL;DR + Cheat Sheet at the top/bottom of each module |
| Self-test | Each module ends with a quiz; answers are in <details> blocks |
| Look up a term | See glossary.md |
| Estimate capacity | See cheatsheets/numbers.md |
| Read real-world engineering write-ups alongside a module | See cheatsheets/further-reading.md |
Progress tracker: PROGRESS.md
| # | Module | Status |
|---|---|---|
| 00 | Mental Models, Vocabulary & Back-of-the-Envelope Math | ✅ |
| # | Module | Status |
|---|---|---|
| 19 | Observability: Metrics, Logs, Traces, SLI/SLO/Error Budgets | ✅ |
| 20 | Deployment & Infrastructure: Containers, K8s, Canary, Multi-Region, DR | ✅ |
| 21 | Security: AuthN/AuthZ, OAuth/OIDC, Encoding vs Encryption vs Tokenization, Password Storage, Multi-Tenancy | ⬜ |
| # | Module | Status |
|---|---|---|
| 22 | Monoliths, Microservices, DDD, Gateways & Service Mesh | ⬜ |
| 23 | Data Architecture: OLTP vs OLAP, Warehouses, Lakes, Lakehouses | ⬜ |
| # | Module | Status |
|---|---|---|
| 24 | ML Systems Foundations: Training/Serving Split, Feature Stores, Skew | ⬜ |
| 25 | Inference at Scale: Batching, KV Cache, GPU Scheduling, Autoscaling | ⬜ |
| 26 | Vector Search & RAG Systems: HNSW/IVF, Hybrid Search, Freshness | ⬜ |
| 27 | LLM Application Architecture: Agents, Guardrails, Evals, Cost Control | ⬜ |
| # | Module | Status |
|---|---|---|
| 28 | The Interview Framework: A Repeatable 45-Minute Structure | ⬜ |
| 29 | Case Study: URL Shortener + Distributed ID Generation | ⬜ |
| 30 | Case Study: Chat System (WhatsApp/Slack) | ⬜ |
| 31 | Case Study: News Feed / Timeline (Twitter, Instagram) | ⬜ |
| 32 | Case Study: Video Platform (YouTube/Netflix) | ⬜ |
| 33 | Case Study: Geospatial & Ride Hailing (Uber) | ⬜ |
| 34 | Case Study: Search, Typeahead & Web Crawler | ⬜ |
| 35 | Case Study: Payments & Double-Entry Ledger | ⬜ |
| 36 | Case Study: Object Store (S3) & Distributed File Systems | ⬜ |
| 37 | Case Study: Collaborative Editing (OT vs CRDT) | ⬜ |
| 38 | Case Study: Ad Click Aggregation & Real-Time Analytics | ⬜ |
| 39 | Case Study: Recommendation System at Scale | ⬜ |
| 40 | Case Study: LLM Serving Platform (ChatGPT-scale) | ⬜ |
| 41 | Case Study: Enterprise RAG over 100M Documents | ⬜ |
| 42 | Bonus Case Study: Proximity Service & Geospatial Indexing (Quadtree/Geohash) | ⬜ |
| 43 | Bonus Case Study: Design Gmail (Email at Scale) | ⬜ |
Not standalone modules — these are real engineering blog write-ups mapped to the module they reinforce, to read after that module so the theory has somewhere concrete to land. Tracked in cheatsheets/further-reading.md.
⚠️ Trap— a common misconception or interview failure mode.🤖 AI/ML Callout— how the concept maps to ML/LLM infrastructure.📐 Numbers— quantitative reasoning you should be able to reproduce.🎤 Interview Angle— how this is probed in an interview.
Maintained as a personal learning archive. Feel free to fork.