🧭 System Design Interview Study Guide & Practice Framework
A battle-tested preparation blueprint, structured study tracks, and a 45-minute timed interview execution framework for senior engineering roles at FAANG / Tier-1 tech companies.
Use the book-to-course reading map to find exercises for each chapter of Kleppmann and Xu.
Start with one of these routes. The reading and paper exercises are free and need only a browser.
- First pass on the course site · Follow one fictional website through networking, DNS, and load balancing. Finish by tracing a request through a server failure. Then draw a URL shortener and estimate its traffic.
- Interview prep · Review the estimation cheat sheet and decision flowcharts, then try the timed mock interviews.
- Production reliability · Read about queues and idempotency, run the order lab, and work through regional recovery and tenant authorization.
- Open source community · Found a gap, typo, or want to share your team's production war stories? Read our contributing guide, code of conduct, and Reddit community discussions.
🎯 The 3 Study Tracks
Choose the track that fits your preparation timeline:
flowchart TD
Start(["📅 Choose Your Prep Timeline"]) --> A{"Available Time?"}
A -->|"1 Week (Urgent Interview)"| T1["🚀 1-Week Crash Course<br/>10 High-Frequency Patterns"]
A -->|"4 Weeks (Targeted Prep)"| T2["⏱️ 4-Week Core Track<br/>25 Core System Modules"]
A -->|"8-12 Weeks (Comprehensive)"| T3["🎓 Full Mastery Track<br/>All 45 Modules + Runnable Labs"]
T1 --> Finish(["🏆 Senior Interview Ready"])
T2 --> Finish
T3 --> FinishTrack 1: 🚀 1-Week Crash Course (10 Highest-Yield Modules)
Best for: Candidates with an interview scheduled this week.
Focus strictly on the concepts tested in 80%+ of senior system design interviews:
| Day | Focus Topic | Core Modules | Key Interview Question |
|---|---|---|---|
| Day 1 | Estimation & Traffic | 27 - Estimation · 03 - Load Balancing | "How many servers do you need for 100k QPS?" |
| Day 2 | Databases & Sharding | 06 - SQL vs NoSQL · 08 - Partitioning | "How would you shard user data when 1 node runs out of disk?" |
| Day 3 | Replication & Consensus | 07 - Replication · 13 - CAP/PACELC | "Why can't a distributed database guarantee both strong consistency and 100% availability?" |
| Day 4 | Caching & Rate Limiting | 10 - Caching · 05 - Rate Limiting | "How do you prevent a cache stampede during a hot-key write spike?" |
| Day 5 | Async & Queues | 17 - Message Queues · 20 - Resilience | "How does Kafka guarantee message ordering across consumer instances?" |
| Day 6 | Full System Design #1 | 34 - News Feed · 21 - URL Shortener | Fanout-on-write vs Fanout-on-read trade-offs. |
| Day 7 | Full System Design #2 | 40 - Payment System · 39 - Proximity Service | Double-entry bookkeeping, idempotency keys, and spatial indexing. |
Track 2: ⏱️ 4-Week Core Track (25 Core Modules)
Best for: Systematic preparation with balanced theory and architecture.
- Week 1 · Foundations & Networking:
- Modules 26, 27, 28, 01, 02, 03, 04, 05
- Learn capacity estimation formulas, L4 vs L7 load balancing, Anycast DNS, and distributed unique ID generation.
- Week 2 · Storage, Replication & Caching:
- Modules 06, 07, 08, 09, 29, 10, 11, 12
- Deep-dive into B-Trees vs LSM-Trees, multi-region replication lag, cache-aside vs write-through, and CDN edge PoPs.
- Week 3 · Distributed Consistency & Resilience:
- Modules 13, 14, 15, 16, 31, 17, 18, 19, 20
- Master PACELC, linearizability vs eventual consistency, Raft leader election, Snowflake IDs, and 2PC vs Saga transactions.
- Week 4 · End-to-End System Designs:
- Modules 21, 23, 24, 34, 39, 40, 41, 42
- Practice designing real-time chat, video streaming, nearby driver matching, and hotel reservation systems under timed conditions.
Track 3: 🎓 8-Week Complete Mastery (All 45 Modules)
Best for: Staff / Principal engineer candidates aiming for top-band offers.
- Complete every module in sequential order from
01to45. - Execute all 45 runnable
demo.pyscripts to verify internal state machines and failure handling. - Study both Google and Netflix production case studies in every module's
REAL_WORLD_EXAMPLES.md. - Run the Event-Driven Order Processing Lab in Docker Compose to master the Transactional Outbox pattern.
⏱️ The 45-Minute Timed Interview Framework
In senior system design interviews, pacing determines whether you pass or fail. Use this structured 5-phase framework:
timeline
title 45-Minute Interview Time Allocation
00-05 min : Phase 1 - Requirements & Estimation
05-15 min : Phase 2 - High-Level Architecture & APIs
15-30 min : Phase 3 - Deep Dive into Core Bottlenecks
30-40 min : Phase 4 - Fault Tolerance & Edge Cases
40-45 min : Phase 5 - Wrap-Up & Trade-off ReviewPhase 1: Clarify Requirements & Scope (00:00 – 05:00)
- Functional Requirements: Pick the top 2–3 core features. Explicitly state what is out of scope.
- Non-Functional Requirements:
- Latency SLA (e.g. p99 < 100ms)
- Availability target (e.g. 99.99% = 52.6 minutes downtime/year)
- Read-to-Write ratio and consistency needs (Strong Linearizable vs Eventual)
- Back-of-the-Envelope Math:
- QPS (Average & Peak): DAU × Ops/Day / 86,400
- Ingress/Egress Bandwidth: Peak QPS × Payload Size
- 5-Year Storage Capacity: Daily Storage × 365 × 5 × 3 (rep factor)
- Use the repository Master Cheat Sheet formulas.
Phase 2: High-Level Architecture & API Design (05:00 – 15:00)
- Draft clean REST/gRPC endpoints with request/response payloads.
- Draw the end-to-end data flow: Client → DNS → CDN/LB → API Gateway → Stateless Services → Caches → DBs.
- Identify read and write paths clearly on the whiteboard or diagram.
Phase 3: Deep Dive into Core Bottlenecks (15:00 – 30:00)
- The interviewer will pivot here. Focus on the hard distributed systems challenges:
- Data Model & Partitioning: Choose partition keys (
user_id,geohash,time_bucket) to avoid hot spots. - Caching Strategy: Cache-Aside vs Write-Through; invalidation rules; TTL jitter to prevent thundering herd.
- Concurrency Control: Optimistic locking (
versioncolumn) vs Distributed Locks (Redis/ZooKeeper).
- Data Model & Partitioning: Choose partition keys (
Phase 4: Fault Tolerance, Failure Modes & Edge Cases (30:00 – 40:00)
- What happens when a primary database crashes? (Leader election, replica promotion, split-brain mitigation).
- What happens when network partitions isolate a region? (PACELC trade-off, multi-region active-active vs active-passive).
- How do you handle cascade failures? (Circuit breakers, exponential backoff with full jitter, bulkheads).
Phase 5: Wrap-Up & Trade-off Review (40:00 – 45:00)
- Summarize the top 3 architectural trade-offs made (e.g., opted for eventual consistency in timeline feeds to maximize write availability).
- Propose monitoring metrics (p99 latency, error rates, queue consumer lag).
- Answer any remaining interviewer questions.
📋 Senior Interview Readiness Checklist
Before your on-site interview, ensure you can confidently answer and draw diagrams for:
- [ ] Quant sizing: Can you convert 100M daily requests to average QPS in 30 seconds without a calculator?
- [ ] Database choice: Can you articulate why MongoDB or Cassandra fits high write-throughput, but Postgres fits transactional billing?
- [ ] Replication: Can you explain why async replica lag can lead to stale reads and how to implement "Read-Your-Own-Writes"?
- [ ] Consensus: Can you explain why Raft requires a minimum of 3 nodes for single failure tolerance (2F+1 quorum)?
- [ ] Sharding: Can you explain why resharding a hash-modulo (N ±od M) database requires moving 90%+ of keys, and how Consistent Hashing fixes it?
- [ ] Idempotency: Can you draw how Stripe or payment systems prevent double-charges using an idempotency key and a durable record of the operation?
- [ ] Flashcards: Can you explain the cards you marked for review in the Interactive Flashcard Web App?
Timed mock interviews
For each prompt, spend five minutes clarifying requirements and five estimating load. Divide the remaining time between drawing the design and explaining its failure modes. Give yourself one point per rubric item you address concretely.
URL shortener · 25 minutes
Design for 100 million redirects and 2 million new links per day. Links must work during a cache outage. Explain custom aliases and how a link owner can disable a link.
Rubric and walkthrough
- Estimate read and write rates separately and state a peak assumption.
- Define create and redirect APIs and explain identifier collisions.
- Trace cache hits, misses, and an outage.
- Explain how disabling a link reaches caches and how long a stale redirect could survive.
- Choose a latency or availability objective and justify one trade-off.
Notifications · 35 minutes
Design email and push notifications for five million recipients. Users can opt out of promotions. A provider begins timing out during a campaign. Explain how alerts and promotions share capacity.
Rubric and walkthrough
- Separate transactional and promotional requirements and size a burst.
- Draw the producer, queue, workers, and delivery state.
- Explain when preferences are enforced and how updates affect queued work.
- Bound retries and describe how duplicate deliveries and provider outages are handled.
- Explain priority or isolation and name a metric that reveals backlog.
Hotel reservation · 40 minutes
Two people try to book the last suitable room over three nights. A payment succeeds, but the response times out. Design inventory, holds, and payment confirmation.
Rubric and walkthrough
- Clarify room type versus specific room assignment and model the full stay.
- Choose a transaction rule that prevents partial holds and overbooking.
- Describe expiry and what happens when confirmation races with it.
- Use a stable payment idempotency key and explain how an unknown outcome is reconciled.
- Draw the reservation states and show what support can inspect after a failure.
🤝 Community Contributions
Have an alternative solution, post-mortem war story, or interview question? We welcome community contributions! Check out CONTRIBUTING.md to see how you can add your own knowledge to this guide.