A system design interview gives you a vague one-line prompt ("design a chat app") and 45 minutes. Nobody expects a finished product. The interviewer wants to see how you think: whether you ask good questions, size the problem with numbers, build a simple design first, and then improve it where it is weakest. Candidates fail this interview far more often from having no structure than from lacking knowledge.
This lesson gives you an 8-step framework and a time budget you can follow in every interview in this course. Each later design lesson (URL shortener, news feed, and so on) is organized around the same steps, so you will practice it repeatedly.
Detailed Notes
What Is It?
A system design interview is a conversation, usually at a whiteboard or shared document, where you design the architecture of a large software system. A system here means a set of cooperating programs and databases that together deliver a product, such as a photo-sharing app. Architecture means which components exist, what each one is responsible for, and how they talk to each other.
A framework is simply a fixed order of steps that you follow every time. It does not make the design for you. It stops you from forgetting something important and from spending 30 minutes on a detail while the interviewer is still waiting to hear the basic idea.
The interview is open-ended on purpose. There is no single correct answer. The interviewer is scoring signals such as:
Do you clarify the problem before solving it?
Can you reason with numbers (how many users, how much data)?
Can you produce a working design and explain it clearly?
Do you notice weaknesses in your own design and fix them?
Do you discuss trade-offs (a trade-off is a choice where improving one property makes another worse, for example faster reads but slower writes)?
Why Do We Need It?
Without a framework, three failure patterns appear again and again.
Jumping to the solution. "I'd use Kafka and Cassandra." The interviewer has no idea whether those tools fit, because nobody agreed on what is being built.
Going too deep too early. You spend 20 minutes on database indexing and never draw the overall picture.
Staying shallow. You draw boxes (client, server, database) and stop. Every candidate can do that, so it earns no credit.
A framework fixes all three: the first steps force scope, the middle steps build breadth, and the last steps force depth. It also helps with nerves. When your mind goes blank, you only need to remember what step comes next.
How Does It Work?
Here are the eight steps. Terms that appear for the first time are defined right where they are used, and later lessons cover them in detail.
Clarify requirements. Ask questions until you can list what the system must do (functional requirements) and how well it must do it (non-functional requirements, such as speed, availability and scale). Also state what is out of scope.
Estimate scale. Do back-of-the-envelope estimation: rough, rounded arithmetic that tells you the number of requests per second, the amount of storage and whether the system is read-heavy or write-heavy. The estimation lesson teaches this.
Define the APIs. An API (application programming interface) is the list of operations the system offers to its users, for example "create a post" or "get my feed". Write them with their inputs and outputs.
Define the data model. Decide what you store (users, posts, links), which fields each record has, and what kind of database fits the access pattern.
Draw the high-level design. Sketch the main components and the path a request takes through them. Keep it simple: a design that works for the basic case.
Deep dive. Pick the two or three hardest parts (often chosen together with the interviewer) and design them properly: how to split data, how to cache, how to keep results correct.
Find bottlenecks and handle failures. A bottleneck is the one part that limits the speed of the whole system. A failure is a component that stops working. Ask "what breaks first?" and "what happens when X dies?"
Wrap up. Walk through the final design once, restate the key decisions and the trade-offs, and mention what you would improve with more time (monitoring, security, new features).
A time budget for 45 minutes
The numbers below assume a 45-minute slot. About 40 minutes remain for actual design after introductions and your questions at the end.
Step
Minutes
What "done" looks like
1. Requirements
5
Written list of features, numeric targets, out-of-scope items
2. Estimation
4
QPS, storage, and one "so what" per number
3. APIs
4
3-5 endpoints with inputs and outputs
4. Data model
4
Main tables or collections, keys, database choice
5. High-level design
8
Diagram with the read path and write path
6. Deep dive
12
Two or three hard problems solved with reasoning
7. Bottlenecks, failures
5
Failure list with a fix for each
8. Wrap-up
3
Summary and next improvements
The 45-Minute Budget in Three PhasesComparison
Understand
13 minutes
1
1. Requirements
5 min
2
2. Estimation
4 min
3
3. APIs
4 min
Agrees scope with the interviewer
Numbers justify later choices
Skipping it leads to designing the wrong system
Ask questions, then commit to assumptions.
Build
12 minutes
1
4. Data model
4 min
2
5. High-level design
8 min
Produces a design that works
Shows read and write paths
Too much detail here steals time from the deep dive
Simple first, correct for the basic case.
Deepen
20 minutes
1
6. Deep dive
12 min
2
7. Bottlenecks, failures
5 min
3
8. Wrap-up
3 min
Where senior signal is earned
Shows trade-off thinking
Skipping failures looks naive
Go deep where it is hardest.
Key point. Nearly half the time (17 of 40 minutes) goes to deep dive and failures. Breadth alone is not enough.
Understand the problem first, build the simple design second, and spend the longest block on the hard parts.
The framework is not a script to run silently. Say each step name aloud ("I'll move on to estimation now") so the interviewer can follow, interrupt, or steer you. If the interviewer wants to spend more time on something, follow them. Their interest is a hint about what they score.
A sample opening
The first five minutes set the tone. Below is how a strong opening sounds for the prompt "Design a URL shortener".
A Strong Opening: Prompt to Agreed ScopeRequest flow
Plan, two or three sharp questions, then a one-sentence summary of the scope.
Notice three things. The candidate states the plan, asks about scale instead of assuming it, and confirms the scope back in one sentence. That sentence ("so I am designing X, for Y users, ignoring Z") is a cheap and powerful habit.
Interview tip. Common mistakes: (1) drawing a diagram in the first two minutes; (2) asking twelve questions and never committing, so ask the 4-6 that change the design and then state assumptions for the rest; (3) giving numbers without a conclusion; (4) listing technologies with no reason; (5) never mentioning failure.
Interview discussion. Say: "Let me spend a few minutes clarifying scope, then I'll estimate scale, define the APIs and data, sketch a high-level design, and then we can pick the most interesting part to go deep on. Does that work for you?" It takes ten seconds and gives the interviewer control.
Handling questions you cannot answer
You will meet topics you do not know. Do not bluff. Say what you do know, name the properties you need ("I need a store that can look up by key very fast and scale horizontally"), and propose a solution built from basic ideas. Interviewers reward honest reasoning over memorized buzzwords.
Real-World Example
Think of an architect asked to design a hospital. A good architect does not start with the color of the walls. They ask how many patients per day, how many emergency cases, what budget and what regulations apply (requirements). They estimate beds, parking and power demand (estimation). They define what each department offers (APIs between departments), plan the layout (high-level design), spend extra time on the operating theatre (deep dive), and finally ask what happens during a power cut (failure handling). The software version is identical in shape.
System Design Example
Take "Design a chat app" and apply each step in one line:
Requirements: one-to-one and group messages, online status, message history; 50 million daily users; messages delivered in under 1 second; messages never lost.
Estimation: 50M users x 40 messages = 2 billion messages a day, about 20,000 per second on average.
APIs: send message, fetch conversation history, mark as read.
Data model: messages keyed by conversation and time; users table.
High-level design: clients keep a persistent connection to chat servers, which store messages and forward them to the recipient.
Deep dive: how to deliver to an offline user, how to order messages, how to split storage.
Bottlenecks and failures: a chat server dies (clients reconnect elsewhere), a celebrity group with 100,000 members.
Wrap-up: summarize and mention push notifications and end-to-end encryption as extensions.
None of these lines is deep, but each one shows the interviewer that the structure exists. The depth comes from the later lessons.
Trade-off thinking. A framework costs flexibility: following the steps rigidly can make you ask pointless questions. Adapt it. If the interviewer says "assume 10 million users and skip estimation", skip it. Use the framework as a checklist, not a cage.
Key Interview Takeaway
Use the eight steps in order: requirements, estimation, APIs, data model, high-level design, deep dive, bottlenecks and failures, wrap-up. Budget your time (5, 4, 4, 4, 8, 12, 5, 3 minutes). Think aloud, tie every number to a decision, and spend your depth where the problem is hardest.