Part 6 · Scaling · data · consistency · interview framework · AI drills D1–D4
System design
Turning requirements into architectures you can defend, first for classic web systems and then for AI systems with models, retrieval and human review.
L2 · Mid-level engineerL3 · Senior engineerL4 · Applied AI engineer
System design is where Parts 3–5 come together, and where seniority shows most in interviews. There's rarely a single right answer; there are trade-offs made explicit and failure modes named before anyone asks.
Lessons 6.1–6.3 cover the classic material. Lesson 6.4 holds the four AI design drills (D1–D4) used throughout the rest of the guide.
Lessons in this part
- 6.1System design fundamentalsScaling reads and writes, caching, replication, partitioning, consistency, queues and the back-of-the-envelope estimates that ground a design.L2 · Mid-level engineer5 min
- 6.2The system design interview frameworkA repeatable structure for design interviews: clarify, sketch the main path, data and auth, failure modes, evaluation and trade-offs.L3 · Senior engineer5 min
- 6.3Classic design drillsWorked outlines for the most common non-AI design questions: URL shortener, rate limiter, notifications, file uploads and a news feed.L3 · Senior engineer5 min
- 6.4AI system design drills (D1–D4)Four worked designs for AI systems (document intake, an LLM gateway, a permissioned RAG assistant, and taking an MVP to production), each with failure modes and metrics.L4 · Applied AI engineer5 min