How to run a system design interview
A repeatable way to spend 45 minutes: scope the problem, size it, sketch a design, go deep where it is hard, and state your trade-offs.
The problem
A candidate is asked to design a ride-sharing service. They know the building blocks well, so they start drawing: clients, a load balancer, an API tier, Kafka, a sharded database, a cache. Fifteen minutes in, the board is full. Then the interviewer asks what happens when two drivers accept the same ride, and whether riders need to see the car moving on a map. The candidate has thought about neither, because nobody agreed what the product does. The boxes on the board are generic. They would fit a food delivery app or a photo site equally well, which is a sign that they answer no question in particular.
The obvious repairs do not work. Drawing faster produces more generic boxes. Memorising a reference architecture for each popular question fails the moment the interviewer changes one requirement. Asking twenty clarifying questions uses up the time needed for the design.
A system design interview is not a test of whether you can recall an architecture. It is a 45-minute simulation of leading a design discussion at work: find out what is needed, size it, propose something simple, find the hard parts, and reason about trade-offs aloud. A fixed order of work makes that repeatable under pressure. This lesson gives you one.
The shape of 45 minutes
| Phase | Minutes | What you produce |
|---|---|---|
| Requirements | 5 | A written list of what is in scope, what is out, and target numbers |
| Estimates | 4 | Requests per second, storage, and one conclusion that shapes the design |
| API | 4 | Three to five endpoints or messages |
| Data model | 4 | The main entities, their keys and the queries they must serve |
| High-level design | 8 | A diagram that serves the main read and the main write end to end |
| Deep dives | 14 | Two hard parts worked through properly |
| Failure modes and trade-offs | 4 | What breaks, and what you gave up |
| Wrap-up | 2 | A short summary and next steps |
Two checkpoints matter more than the exact minutes. A complete, simple design should be on the board by about minute 25. And the deep dives should get the largest single share of the time, because that is where seniority shows. If introductions and your own questions come out of the same 45 minutes, shrink every phase and protect those two checkpoints.
The case studies on this site, starting with the URL shortener, follow this script.
Requirements
Split them in two.
Functional requirements are what the system does. Name the two to four core use cases, and say out loud what you are leaving out: “Riders request a ride, drivers accept, and both see the trip. I will leave out payments and ratings unless you want them.”
Non-functional requirements are how well it must do it. Ask the questions whose answers change the design:
- Scale. How many daily active users? Is the load mostly reads or mostly writes?
- Latency. What is acceptable for the main action, and is that a median or a tail figure such as p99?
- Availability. What does an hour of downtime cost? See availability and reliability.
- Consistency. Is it acceptable for a user to see slightly stale data? See consistency models.
- Durability. Which data can never be lost, and which could be rebuilt?
Write the answers on the board as numbers. If the interviewer says “you decide”, then decide: state an assumption (“I will assume 10 million daily users, mostly in one region”) and move on. Five questions that change the design are worth more than fifteen that do not.
Estimates, API and data model
Estimates turn the requirements into a few figures: average and peak requests per second, storage per year, and sometimes bandwidth or memory. What matters is the conclusion, for example “reads outnumber writes by about 100 to 1 and the data fits on one machine for years, so I will optimise the read path and not shard yet”. Back-of-envelope estimation covers the method.
The API is the contract. List the handful of calls that implement the core use cases, with their key parameters and what they return. Mention pagination for lists and idempotency keys for writes that a client may retry. API styles covers the choice between REST, gRPC and a persistent connection.
The data model names the main entities, their keys and, most importantly, the queries they must serve. Choose a store from the access patterns, not from habit. SQL vs NoSQL covers that choice.
These three phases are short on purpose. Their job is to make the architecture easy to justify.
High-level design
Draw the path of the most important request from the client to the data and back, then the second most important. Narrate as you draw: “A ride request reaches the gateway, the trip service writes a pending trip, then the matching service looks for nearby drivers.”
Most first-pass designs are a variation on this skeleton. Start from it, remove what the requirements do not call for, and add only what they demand. Keep it simple at this stage. One database with the note “we will come back to scaling this” is better than a sharded cluster you cannot yet justify.
Deep dives
This is where the interview is decided. Pick the two parts that are hardest or riskiest for this product: where the load lands, where correctness matters most, or what is unique to the problem. For ride sharing, that might be finding nearby drivers quickly and making sure one ride goes to exactly one driver.
Propose the topics yourself: “The two hard parts I see are the location index and the double-accept race. I will start with the race unless you would prefer the other.” Then work each one properly: the options, the one you choose, why, and what it costs.
Failure modes, trade-offs and wrap-up
Walk across the diagram and ask what happens when each box dies or slows down. Name the single points of failure and the first thing that breaks at ten times the load. Then state your main trade-offs plainly: “I chose asynchronous replication to keep writes fast, and I accept that a failover can lose the last second of location updates.”
Close with three sentences: what the design is, the main trade-off, and what you would build or measure next.
What interviewers look for
At senior level the interviewer is mostly asking one question: could this person be trusted to lead a design at work?
- You drive. The interviewer should never have to ask “what next?”.
- You scope. You cut the problem down to something that can be designed in the time.
- You find the hard parts without being pointed at them.
- You justify decisions with a requirement or a number, and you can say when you would choose the alternative.
- You plan for failure, not only the happy path.
- You adapt when the interviewer changes a requirement or disagrees.
| Level | What is expected |
|---|---|
| Mid | A working design with some prompting, and sound knowledge of the building blocks |
| Senior | Leads the session, goes deep in two areas, weighs trade-offs and handles failure cases |
| Staff | All of that, and raises what the interviewer has not: cost, migration, operations, how the design evolves and which teams would own it |
When to bend the framework
The order is a default, not a rule. Use it as written when you are given a product to design and no other steer. Bend it when:
- The interviewer steers. If they ask about the database in minute five, answer, then return to your place.
- The problem is a component, not a product. For “design a rate limiter” or “design a distributed cache”, the API and data model are small, and the algorithm and its failure behaviour deserve most of the time.
- The interviewer asks you to skip a phase. Give a one-sentence version and move on.
Do not bend it by skipping requirements. That is the one phase every interviewer expects, and the one whose absence does the most damage.
In the interview
Say the plan in the first minute: “I will start with requirements, do a quick estimate, sketch the API and data model, draw a high-level design, and then go deep on the one or two hardest parts. Stop me if you would like to steer.” Then watch the clock, write as you talk, and at each decision say what you chose, why, and what it costs.
When the interviewer pushes back, treat it as new information, not as an attack. Restate their concern, check it against the requirements, and either defend the choice with a reason or change it without fuss. Both are good outcomes. Ignoring the concern is the only bad one.
Key takeaways
- Spend the first five minutes agreeing what to build and how big it is. A design is only right or wrong against stated requirements.
- Follow the same order every time: requirements, estimates, API, data model, high-level design, deep dives, then failure modes, trade-offs and wrap-up.
- Have a simple end-to-end design on the board by about the halfway point, and spend the second half on depth.
- At senior level you are expected to drive, to pick the hard parts yourself, and to justify each choice with a requirement or a number.
- Every decision has a cost. Say what you gave up and when you would choose differently.
- The framework is a default. Bend it when the interviewer steers or when the problem is a component with almost no API or data model.
Check yourself
0 of 5 answered
Flashcards
These 6 cards are in your review deck. Tap a card to see the answer.
The phases of a 45-minute design interview, in order
Requirements, estimates, API, data model, high-level design, deep dives, then failure modes and trade-offs, and a short wrap-up.
Functional and non-functional requirements
Functional: what the system does (post a message, fetch a feed). Non-functional: how well it must do it (scale, latency, availability, consistency, durability, cost).
By when should a complete end-to-end design be on the board?
By about minute 20 to 25 of 45. Going deep before then leaves no time for the whole picture.
What do interviewers look for at senior level?
Driving the conversation, scoping the problem, finding the hard parts unprompted, justifying trade-offs with requirements and numbers, and planning for failure.
How do you choose a deep dive?
Pick the part that is hardest or riskiest for this product: where the load lands, where correctness matters most, or what is unique to the problem. Offer two and let the interviewer choose.
What goes in the wrap-up?
A three-sentence summary of the design, the main trade-off you made, and what you would build or measure next.
Interview questions on this
- Design a photo-sharing app like Instagram. Where do you start, and what do you ask me?
- Halfway through your design the interviewer says "I don't think that will work." How do you respond?
- You have a high-level design on the board and 15 minutes left. I am not going to tell you where to go deep. What do you pick, and why?