System design concepts · Think Like a Designer

How to Answer Any System Design Interview Question: The 5S Method

A design interview is 45 minutes of controlled ambiguity. The 5S method gives you a path through it: Scope, Size, Sketch, Stress, Summarize.

What you'll be able to explain
  • Run a full design interview with a clear timeline
  • Ask the clarifying questions that change the design
  • Produce a working end-to-end sketch in 10 minutes
  • Pick deep dives that show seniority
  • Close strongly instead of running out of time

The method on one page

1 · Scope (5 min)Clarify features, users, constraints. Write requirements down.2 · Size (5 min)Rough numbers: QPS, storage, bandwidth, read:write ratio.3 · Sketch (10 min)APIs, data model and an end-to-end diagram that works.4 · Stress (20 min)Deep dives: bottlenecks, scale, failure, consistency.5 · Summarize (5 min)Recap, trade-offs, what you'd do next.
The 5S method with a suggested time budget for a 45-minute round.

The order matters. Each step feeds the next: scope decides what to size, size decides which architecture is even reasonable, the sketch gives you something concrete to stress, and the summary shows that you can see the whole picture.

Step 1 — Scope: shrink the problem

"Design Instagram" is a product with thousands of engineers behind it. Your job in the first five minutes is to cut it down to something you can design well in forty.

The four kinds of questions

Ask about Example questions Why it matters
Features Which 3–4 features are core? Do we need search? DMs? Each feature can add a whole subsystem
Users & scale How many daily users? Global or one country? Growth? Decides single box vs distributed
Behaviour Read-heavy or write-heavy? Real-time? How big is a typical item? Shapes caching, storage, protocols
Quality bar Can a post appear 5 s late? Can we ever lose data? Latency target? Sets consistency, durability, SLOs

Write the answers on the board as two short lists:

Functional (what it does)          Non-functional (how well)
- post photo + caption             - 500M DAU, global
- follow users                     - feed p99 < 300 ms
- home feed (followed users)       - eventual consistency OK for feed
- like / comment                   - uploads must never be lost
Out of scope: stories, DMs, ads, search
Tip

Saying out loud what is out of scope is a strong signal. It shows you can prioritise, and it protects you from being judged on features you never meant to design.

Step 2 — Size: just enough math

You are not doing accounting. You want orders of magnitude that decide the architecture. Back-of-the-Envelope Estimation for System Design Interviews covers the techniques; here is the minimum:

  1. Traffic: daily actions ÷ 100,000 s ≈ average QPS (a day is ~86,400 s; round up). Peak ≈ 2–3× average.
  2. Storage: items per day × size × retention.
  3. Read:write ratio: tells you whether to optimise reads (caches, replicas) or writes (logs, sharding).
  4. The one number that scares you: for a chat app it's concurrent connections; for video it's egress bandwidth; for a URL shortener it's read QPS. Find it and say it.
Say it in the interview

"Roughly 50,000 reads per second at peak against 500 writes: this is read-heavy by 100×, so I'll put caching and read replicas front and centre, and a single write primary is fine for a while."

Step 3 — Sketch: make it work end to end

In this order:

  1. APIs — 3–5 endpoints that cover the core features (verb, path, key params, response).
  2. Data model — main entities, their keys, and which store each lives in.
  3. Diagram — the simplest architecture that satisfies the functional requirements. Then walk one request through it out loud.
CLIENTClientNETWORKLoad balancerSERVICEAPI serviceDATABASEDatabaseOBJECT STOREObject storemedia
A good first sketch is boring on purpose. You'll add sophistication in Stress.
Common trap

Drawing the "final" architecture with 15 boxes first. You won't be able to explain it, and the interviewer can't tell which boxes you actually understand. Start simple, then evolve it because of a number or a requirement.