← Back to Index

11. Interview Blueprint

A repeatable 4-step framework for approaching any system design interview question. Practice this until it becomes automatic.

System design pillars and trade-offs diagram

Step 1: Understand the Problem & Set Scope (5—7 min)

Before designing anything, clarify what you are building. Ask questions:

Pro tip: Write down the requirements explicitly. Confirm scope with the interviewer. Example: "So to clarify, we are designing a URL shortener that handles 100M URLs per month, with redirect latency under 100ms. Is that right?"

Step 2: Estimate Scale (3—5 min)

Do back-of-the-envelope calculations to size the system:

# Example: Twitter-like news feed
MAU: 500 million
Daily active users (DAU): 200 million (40% of MAU)
Tweets per day: 500 million
Reads per day: 20 billion (each user reads ~100 tweets/day)

Storage per tweet: ~1 KB (text + metadata)
Daily storage: 500M × 1KB = 500 GB
Yearly storage: 500 GB × 365 ≈ 182 TB

Bandwidth (writes): 500M tweets × 1KB / 86400s ≈ 5.8 MB/s
Bandwidth (reads): 20B reads × 1KB / 86400s ≈ 230 MB/s

Know common numbers: 1M requests/day ≈ 12 req/s, 1 PB = 1000 TB, typical DB row size, SSD vs HDD latency, network round trips.

Step 3: High-Level Design (10—15 min)

Draw the system architecture with major components. Focus on breadth, not depth:

Explain why you chose each component. "I'm putting a cache here because the read-to-write ratio is 40:1 and we need sub-10ms response times."

Step 4: Deep Dive & Infrastructure Decisions (10—15 min)

Now go deeper into the most interesting or critical parts. The interviewer will guide you here. Common deep dives:

# Deep dive: DB schema for URL shortener
Table: urls
  id          BIGINT (auto-increment, primary key)
  short_key   VARCHAR(7) UNIQUE INDEX
  long_url    TEXT
  created_at  DATETIME
  user_id     INT (FK to users table)
  click_count BIGINT DEFAULT 0

Final Step: Summarize & Identify Trade-offs (2—3 min)

End with a concise summary and acknowledge the trade-offs you made:

Common Pitfalls

Exercise: Practice the 4-step blueprint on a new problem: "Design a real-time leaderboard for a mobile game with 50 million players." Go through steps 1—4 verbally (record yourself or practice with a friend).