System Design Interview Prep Cheat Sheet

Master the system design interview — estimation, requirements gathering, API design, data modeling, and the 6-step framework for any design question.

Last Updated: July 15, 2025

The 6-Step Framework

1. Requirements (3-5 min)
Functional: what does it do? Non-functional: scale, latency, durability
2. Estimation (3-5 min)
DAU, QPS, storage — 1M DAU × 10 req/day = ~115 QPS avg
3. API Design (3-5 min)
REST endpoints, request/response shapes, error codes
4. Data Model (5 min)
Tables, schemas, indexes, SQL vs NoSQL choice
5. High-Level Design (10-15 min)
Boxes and arrows — services, DBs, caches, queues, CDN
6. Deep Dive (10-15 min)
Critical component — scaling, failover, consistency

Estimation Cheat Sheet

MetricFormula
QPSDAU × avg_req_per_day ÷ 86400
Peak QPSQPS × 2-3x peak-to-average ratio
Storage/dayQPS × 86400 × avg_request_size
Storage/yearStorage/day × 365
Cache sizeDaily data × 0.2 (Pareto: 20% gets 80% traffic)
BandwidthPeak QPS × avg_response_size

Common Questions & Patterns

QuestionKey Pattern
Design a URL shortenerHash function, Base62, KV store, cache
Design a chat systemWebSocket, message queue, pub/sub
Design a news feedFan-out on write vs read, ranking, cache
Design a rate limiterToken bucket, sliding window, Redis
Design a distributed key-value storeConsistent hashing, replication, quorum

What Interviewers Look For

SignalGoodBad
CommunicationThink out loud, ask clarifying questionsSilent for 5 minutes, then present solution
Tradeoffs"Here are 3 options, I'd pick X because...""This is the right way"
BreadthTouch all layers: client, API, data, infraOnly talk about database schema
PragmatismStart simple, iterate based on bottlenecksOver-engineered from minute one
Pro Tip: Always start with requirements — 80% of failed system design interviews are because the candidate started designing before clarifying what to build. Ask: users, features, scale.
Part of the Empire Builder Network