Interviewers rarely have one right design in mind. They're watching whether you clarify the problem, put numbers on it, make reasonable choices, and explain the trade-offs. A fixed sequence keeps you from drawing boxes too early or running out of time in a deep dive.
The 45-minute clock
| Minutes | Step | What you produce |
|---|---|---|
| 0–5 | Requirements | 3–5 functional requirements, the non-functional ones (latency, availability, consistency), and what's out of scope |
| 5–10 | Estimates | Users, read and write QPS, storage, bandwidth. See estimation |
| 10–15 | API and data model | The main endpoints, and the key tables or collections with their keys |
| 15–25 | High-level design | One diagram covering the whole read path and write path |
| 25–40 | Deep dives | Two or three hard parts: scaling the bottleneck, consistency, failure handling |
| 40–45 | Wrap-up | Trade-offs, bottlenecks left, what you'd build next |
Each step, in practice
Requirements
Ask, then write down what you agreed. "Do we need custom aliases? Analytics? How long do links live?" Then say which requirement dominates: "Redirects must be fast and almost never fail; creation can be slower."
Estimates
Round aggressively and say so. The aim is to learn which component is stressed. Finish with a conclusion: "So reads are 100 times writes, and the database can't serve 12,000 lookups a second alone. That means a cache."
API and data model
Two or three endpoints with their inputs and outputs, and the main entities with their primary keys. Choose the database here and say why (see SQL vs NoSQL).
High-level design
Draw the simplest design that meets the requirements, then walk one request through it end to end, once for a read and once for a write. Don't add Kafka, sharding or microservices until the numbers ask for them.
Deep dives
Pick the parts that are actually hard for this problem: key generation for a shortener, fan-out for a feed, connection state for chat. Interviewers often steer here, so follow their lead. For each part, give two options, choose one, and say what it costs.
Wrap-up
Name the next bottleneck and the failure you'd worry about most. That shows you know the design isn't finished.
Saying trade-offs well
Example: "I chose fan-out on write for most users because feed reads outnumber posts ten to one. It costs us heavy write amplification for big accounts, so I pull those at read time. I'd revisit the threshold if the celebrity share of reads grows."
Your own project as a design answer
A system you built and can draw from memory is your strongest answer. Prepare it at two lengths:
- Two minutes: the problem, the architecture in one sentence, the one hard thing you solved, and one number that shows scale or impact.
- Ten minutes: the diagram, the request paths, three trade-offs you can defend, and three things you'd do differently now.
Rehearse both aloud, timed, at least twice. Recording yourself once is uncomfortable and very effective.
Common ways to lose points
- Drawing boxes before agreeing on requirements and numbers.
- Naming technologies without saying what they do for this design ("we'll use Kafka").
- Designing for a scale that the estimates don't support.
- Spending 20 minutes on one component and never covering the write path.
- Never mentioning failure: what happens when this box dies?
Interview checklist
- Write down requirements and what's out of scope.
- State estimates and the conclusion they lead to.
- Walk a read and a write through the diagram.
- Deep-dive two hard parts, with options and costs.
- End with trade-offs, bottlenecks and next steps.
Model it in the sandbox
Set the traffic from your estimate, then build the read and write paths and see which component turns red first.
Open the sandboxFurther reading
- Alex Xu, System Design Interview: An Insider's Guide, volumes 1 and 2. Worked case studies in interview format.
- Martin Kleppmann, Designing Data-Intensive Applications (O'Reilly). The standard book on replication, partitioning and consistency.
- Site Reliability Engineering, Google's free book on running reliable systems.
- The Amazon Builders' Library: practical articles on timeouts, retries, caching and load shedding.
- The System Design Primer: a broad, community-maintained overview.