System Design Interview: Concepts, Patterns & Real Designs
A complete path from the fundamentals to staff-level answers. Learn estimation, APIs, caching, databases, replication, sharding, consistency, queues and streams, then the six patterns behind most interview questions: real-time updates, large files, long-running jobs, contention, and scaling reads and writes. Apply them to eleven designs from URL shorteners to payments and ride sharing, each with requirements, estimates, APIs, an architecture you can step through, deep dives, operations and cost, and what a mid-level, senior and staff answer would add. Finish with timed mock interviews and a self-grading rubric.
What you'll learn
- Run a 45–60 minute system design interview with a repeatable delivery framework
- Estimate traffic, storage and bandwidth quickly and use the numbers to drive decisions
- Choose and justify databases, caches, queues, streams and search for a given workload
- Reason about replication, sharding, consistency, transactions and failure with clear trade-offs
- Apply six common patterns: real-time updates, large blobs, long-running tasks, contention, scaling reads and scaling writes
- Design eleven classic systems end to end, including operations, cost and security
- Add an AI or RAG capability to an existing system and reason about its latency and cost
- Grade your own answers against mid-level, senior and staff expectations
Prerequisites: Comfort building web services and using a relational database. No prior distributed systems experience needed; the foundations module covers it.
Curriculum
1. Start · How System Design Interviews Work
What interviewers grade at each level, and the delivery framework that keeps your answer on track.
- How System Design Interviews Work (7 min)
- The Delivery Framework (7 min)
2. Foundations
Back-of-envelope estimation, APIs, the request path from DNS to database, caching and choosing a database.
- Back-of-Envelope Estimation (7 min)
- APIs and Protocols (6 min)
- The Request Path: DNS, CDN, Load Balancers and Stateless Services (7 min)
- Caching (6 min)
- Choosing and Modelling a Database (6 min)
- Foundations Quiz (7 min)
3. Data at Scale
Replication and quorums, sharding and consistent hashing, consistency models, transactions across services, and specialised stores.
4. Async, Messaging & Streams
Queues vs logs, event-driven architecture, stream and batch processing, and rate limiting.
5. Reliability, Operations & Cost
Resilience techniques, observability and SLOs, multi-region and deployments, security, and cost.
6. The Six Core Patterns
Real-time updates, large blobs, long-running tasks, contention, scaling reads and scaling writes.
- Pattern: Real-Time Updates (6 min)
- Pattern: Large Blobs (5 min)
- Pattern: Long-Running Tasks (5 min)
- Pattern: Contention (6 min)
- Pattern: Scaling Reads (5 min)
- Pattern: Scaling Writes (5 min)
- The Six Core Patterns Quiz (8 min)
7. Real Designs I · Social & Messaging
URL shortener, news feed, chat, notifications and search typeahead, worked end to end.
- Design a URL Shortener (8 min)
- Design a News Feed (7 min)
- Design a Chat Application (6 min)
- Design a Notification System (6 min)
- Design Search Typeahead (Autocomplete) (6 min)
- Real Designs I Quiz (7 min)
8. Real Designs II · Media, Location & Money
Video streaming, file sync, ride sharing, ticket booking, a web crawler and payments.
- Design a Video Streaming Platform (6 min)
- Design a File Sync Service (6 min)
- Design a Ride-Sharing Service (6 min)
- Design a Ticket Booking System (6 min)
- Design a Web Crawler (6 min)
- Design a Payment System (6 min)
- Real Designs II Quiz (8 min)
9. AI in System Design
Adding LLMs, RAG and vector search to a system, and a worked AI support assistant design.
10. Mock Interviews & Review
A self-grading rubric by level, timed mock plans, a one-page cheat sheet and a 25-question final quiz.
- Mock Interviews and a Self-Grading Rubric (7 min)
- Cheat Sheet (5 min)
- Final Mock-Interview Quiz (15 min)