System Design
Interview framework, chapters, case studies, depth guides, and adaptive quizzes.
Design loop · not a glossary
Draw the system like the room is watching
Interview framework, estimation craft, chapter depth, full case walkthroughs, and FAQs by topic — wired into the same mastery graph as your coding track.
6
Chapters
40
Lessons
20
Case studies
83
Detailed FAQs
108
Adaptive quizzes
The 45-Minute Design Interview Framework
- 1
Clarify requirements (5–8 min)
Separate functional (features) from non-functional (latency, availability, consistency, durability). Confirm MVP vs nice-to-haves, mobile/web, auth, and geographic scope.
- 2
Back-of-envelope estimation (3–5 min)
Estimate DAU/MAU, QPS (avg + peak), storage, and bandwidth. State assumptions loudly. Round to powers of 10 — interviewers want reasoning, not precision.
- 3
API & data model sketch (5 min)
List core endpoints (REST or RPC). Define primary entities and relationships. Pick read vs write patterns before choosing SQL/NoSQL.
- 4
High-level design (10 min)
Draw clients → CDN → LB → services → cache/DB/queue. Walk through the hottest user flow end-to-end before adding boxes.
- 5
Deep dives (15–20 min)
Interviewer picks 2–3 areas: sharding, caching, fan-out, consistency, bottlenecks. Explain tradeoffs and why you chose X over Y.
- 6
Wrap-up (3–5 min)
Failure modes, monitoring/SLOs, security basics, and what breaks at 10× traffic. Mention phased rollout if time allows.
Estimation cheat sheet
Common pitfalls
- Jumping to microservices before clarifying scale
- Picking Kafka/Redis/Cassandra by name without justification
- Ignoring read/write ratio and access patterns
- Forgetting failure modes and single points of failure
- No numbers — estimation anchors every decision
Study chapters
40 lessons from scalability through cloud — each links to adaptive quizzes.
System Design Fundamentals
Scalability, load balancing, caching, and CDNs — the building blocks every design starts with.
7 lessons
Data Storage & Scaling
Choosing stores, modeling for access patterns, sharding, replication, and indexing.
7 lessons
Distributed Systems
CAP, consistency models, messaging, idempotency, and protecting services under failure.
8 lessons
Cloud System Design
Cloud primitives, autoscaling, serverless, observability, and cost control.
8 lessons
Design Interview Skills
How to drive a full interview from requirements through scaled architecture.
5 lessons
Core Building Blocks Reference
Quick-reference deep dives on DNS, API gateways, storage types, search, and ID generation.
5 lessons
Staff-level depth
6 chapter depth packs — anti-patterns, worked numbers, interviewer traps.
Fundamentals — Staff Depth
Treat fundamentals as a decision framework, not a vocabulary quiz. Staff answers name the bottleneck resource (CPU, memory, disk, network), pick the scaling lever that attacks it, and quantify latency/throughput/availability tradeoffs before drawing boxes. Caching, CDNs, and load balancers are tools with failure modes — you score by saying when not to use them.
Data Storage — Staff Depth
Storage interviews reward modeling access patterns, not listing databases. Staff answers pick primary keys and sharding keys from query shapes, separate OLTP from analytics, and speak consistency (strong vs eventual) as a product requirement. Indexes, replication, and partitioning are capacity and correctness tools — you name the failure when the wrong key or engine is chosen.
Distributed Systems — Staff Depth
Distributed systems answers are about failure and coordination cost. Staff candidates invoke CAP/PACELC as constraints on a specific failure (network partition), design for idempotency and exactly-once effects via at-least-once + dedupe, and treat consensus, leader election, and consistent hashing as tools with operational load — not buzzwords.
Cloud Architecture — Staff Depth
Cloud design is about blast radius, tenancy, and operability — not logo bingo. Staff answers place workloads in multi-AZ (and optionally multi-region) with clear data residency, IAM least privilege, and cost/latency tradeoffs. Managed services are fine when you own failure modes: throttles, regional outages, and vendor lock-in escape hatches.
Interview Skills — Staff Depth
System design interviews score communication and judgment under time pressure. Staff candidates clarify scope, state assumptions with numbers, drive a structured agenda (requirements → estimate → HLD → deep dive → risks), and invite collaboration. Depth beats breadth: one sharp deep dive outperforms a shallow tour of every buzzword.
Building Blocks — Staff Depth
Building blocks (rate limiters, unique IDs, queues, search, notifications) are reusable patterns you compose. Staff answers know the algorithm options (token bucket vs sliding window, snowflake vs UUID), their failure modes, and how to place them in a larger design without over-fitting. Precision on APIs and data structures beats vague 'we'll use Redis'.
Design case studies
20 full walkthroughs — requirements, estimation, API, data model, architecture, deep dives, and failure modes.
Beginner — Start here
Design a URL Shortener
Shorten long URLs into compact codes and redirect billions of clicks with sub-100ms latency.
8 sections
Design Pastebin
Store and share text snippets via unique URLs with optional expiration and syntax highlighting.
8 sections
Design a Unique ID Generator
Generate globally unique, roughly sortable 64-bit IDs at 10K+/sec without coordination per ID.
8 sections
Intermediate — Core interview prompts
Design a Distributed Rate Limiter
Enforce per-user and per-IP request limits globally across thousands of API gateway nodes.
8 sections
Design a News Feed (Twitter/X)
Deliver personalized home timelines to 300M DAU with hybrid fan-out and celebrity handling.
8 sections
Design a Notification System
Deliver push, email, and SMS notifications at scale with user preferences and provider failover.
8 sections
Design a Chat System (WhatsApp-style)
Real-time 1:1 and group messaging for 50M DAU with delivery receipts and offline sync.
8 sections
Design Typeahead / Autocomplete
Return top-5 query suggestions within 50ms as users type on a search box with 10M+ terms.
8 sections
Design Instagram Photo Feed
Upload, store, and deliver photos in a social feed to 500M users with global CDN delivery.
8 sections
Design a Metrics & Monitoring System
Ingest billions of time-series data points daily and power dashboards, alerts, and SLO tracking.
8 sections
Design a Distributed Cache (Redis Cluster)
Build a horizontally scalable in-memory cache with partitioning, replication, and cache-aside patterns.
8 sections
Advanced — Staff-level depth
Design Dropbox File Sync
Sync files and folders across devices with block-level deduplication and offline conflict handling.
8 sections
Design YouTube-style Video Streaming
Upload, transcode, and stream video globally with adaptive bitrate and CDN edge delivery.
8 sections
Design a Web Crawler
Crawl billions of web pages with politeness, deduplication, and distributed worker coordination.
8 sections
Design Uber-style Ride Matching
Match riders to nearby drivers in seconds using geospatial indexes and real-time location streams.
8 sections
Design Ticketmaster Event Booking
Sell concert tickets fairly under extreme flash-sale load without overselling or double-booking seats.
8 sections
Design Yelp Nearby Places
Search and rank nearby businesses by location, category, and reviews for 200M monthly users.
8 sections
Design a Payment Processing System
Process card and wallet payments with exactly-once semantics, audit trails, and PCI-compliant isolation.
8 sections
Design Google Docs Collaborative Editing
Enable real-time multi-user document editing with conflict-free merging and version history.
8 sections
Design a Web Search Engine
Index billions of web pages and return ranked search results in under 200ms.
8 sections
Frequently asked
System Design Q&A by topic
83 detailed answers across 8 topics.
Progress syncs with your curriculum mastery, study plan, and CS pathway dashboard.