SDSystem DesignConcepts to case studies
System DesignDSA
x
0/311
Part 1: Foundations
Part 2: APIs and Communication
Part 3: Caching
Part 4: Data and Storage
Part 5: Architecture
Part 6: Distributed Systems
Part 7: Advanced Data Topics
Part 8: Operations and Security
Part 9: Estimation and Interview Method
  • The 7-Step Interview Framework
  • Talking About Trade-offs and Bottlenecks
Part 10: Case Studies
System Design/Estimation and Interview Method/Interview Method

The 7-Step Interview Framework

A steady path through any design question: clarify, estimate, sketch, detail, scale, check failures, and sum up.

⏱ 14 min readBeginnerMust KnowInterview FavouriteHas visualizer
SummaryConceptReal-Life ExampleWhy?Where?How It WorksStepsKey TermsPros & ConsMistakesReal WorldRead NextInterview Q&ACheat-Sheet

01Quick Summary

A design interview is open-ended, so a fixed method is your best friend. The 7-step framework gives you a path, a time budget and something to say when your mind goes blank.

  • 1 Clarify, 2 Estimate, 3 API and data, 4 High-level design, 5 Deep dive, 6 Scale and harden, 7 Wrap up.
  • Spend your time where the points are: the deep dive and the trade-offs, not the first sketch.
  • Say your thinking out loud, check in often, and take hints as gifts.

02Concept: What is it?

The question is usually one line: "Design a news feed." There is no single right answer, and about 45 minutes. Interviewers are not checking whether you remember one famous design. They are watching how you think: do you ask before you build, do you use numbers, can you go deep, and can you explain a choice?

A framework makes sure you cover everything in a sensible order. It also keeps you in the driver's seat, so the interview feels like a design discussion with a colleague, not a quiz. The What is System Design? topic lists the steps in short. This page is about how to run them under time pressure.

The seven steps and a time guide
  1. 1️⃣
    Clarify (about 5 min)
    Scope, users, what matters most
  2. 2️⃣
    Estimate (about 5 min)
    Requests, storage, bandwidth
  3. 3️⃣
    API and data (about 5 min)
    Core endpoints and entities
  4. 4️⃣
    High-level design (about 10 min)
    Main read and write paths
  5. 5️⃣
    Deep dive (about 12 min)
    One or two key components
  6. 6️⃣
    Scale and harden (about 6 min)
    Bottlenecks, failures, security
  7. 7️⃣
    Wrap up (about 2 min)
    Recap, trade-offs, next steps
A guide for 45 minutes. Move the numbers to suit the question and the interviewer.
🧠You lead, the interviewer steers
Announce the plan at the start ("I will clarify, estimate, sketch, then go deep where you prefer"). Then the interviewer can say "skip estimates" or "let us go straight to the database", and you adjust.

03Real-Life Example

🍵Planning a Road Trip
Before a long drive you do not just start the car. You decide where you are going and what matters (fast or scenic), work out how far it is and how much fuel you need, pick the main roads, then plan the tricky part (the mountain pass), think about what could go wrong (a closed road, a flat tyre), and finally check the plan with your passengers. The seven steps are the same flow, for software.
Road trip
Design interview
Where are we going, and what matters?
Step 1: clarify requirements
How far, how much fuel?
Step 2: estimate scale
The list of stops and what we carry
Step 3: API and data model
The main roads on a map
Step 4: high-level design
Planning the mountain pass in detail
Step 5: deep dive
Spare tyre, a backup route
Step 6: scale and harden
Check the plan with everyone
Step 7: wrap up

04Why Do We Need It?

🧭You never get lost
Always know what comes next, even when the question is new and strange.
⏱️Time under control
A rough budget stops you spending 25 minutes on one box diagram.
🎯Points in the right place
Most of the signal is in the deep dive and the trade-offs. The method saves time for both.
🗣️Easy to follow
A steady order lets the interviewer follow your thinking and give useful hints.
🧘Calmer nerves
A checklist replaces panic. If you freeze, you only need the next step.
🧱Real work too
The same flow helps in design docs and team reviews, not only in interviews.
A framework does not make the design for you. It makes sure nothing important is forgotten and that your best thinking gets the time it needs.

05Where Do We Use It?

🎤Design interviews
The main use: a 45 to 60 minute open question at a whiteboard or in a shared document.
📝Design documents
The same order works well in an RFC: goals, scale, API, design, risks, open questions.
🧑‍🤝‍🧑Architecture reviews
Walking a team through a proposal is easier with a clear structure.
🎓Practice with a friend
Take turns being interviewer. Time each step and note where you ran over.
🛠️Project kick-offs
Before building, run steps 1 to 4 on a whiteboard to find gaps early.
🧪Incident follow-ups
Step 6 (what fails, what to monitor) is the heart of a good review.

06Types / Parts / How It Works

What to do and what to say in each step

StepWhat you doA good opening line
1 ClarifyAsk about users, features, scale and what matters most. Agree what is out of scope.“Before I draw anything, let me check the scope.”
2 EstimateDaily users to requests per second, storage per year, bandwidth. Round hard.“Let me do a quick estimate so the design fits the size.”
3 API and dataName the core entities and 3 to 5 endpoints. Pick a database style.“The main objects are... and the main calls are...”
4 High-levelDraw clients, load balancer, services, database, cache. Walk one read and one write.“Let me trace a write first, then a read.”
5 Deep diveTake the hardest 1 or 2 parts and design them well: schema, sharding, caching, a queue.“Where would you like me to go deeper?”
6 Scale and hardenFind bottlenecks, single points of failure, failure cases, monitoring and security.“Now let me ask what breaks first at 10 times the load.”
7 Wrap upRecap the design in one minute, name trade-offs, and list what you would do next.“To summarise... the main trade-off was... next I would...”

What the interviewer is judging

SignalWhat it looks like
StructureYou have a plan, and you keep to it without being rigid
Requirements senseYou ask before you build, and the questions are the right ones
DepthYou can go several layers down on one part and know why
Trade-offsYou compare options and say what you give up
NumbersYour choices are backed by rough estimates
CommunicationYou think aloud, check in, and explain simply
CoachabilityYou take hints well and change course without drama
How the middle of the interview flows
❓Requirementswhat and how well
→↓sets scale
🔢Estimatesnumbers
→↓shapes
🧩Designboxes and data
→↓tested by
🔥Bottleneckswhat breaks first
Each step feeds the next. A change in step 1 changes everything after it.
Ask Measure Build Stress
VisualizerPlan your 45 minutes, then read a sample scriptDrag the sliders to split the 45 minutes across the seven steps. Skip the wrap-up or squeeze the deep dive and read the feedback. Then pick a prompt and a step to see what you might say.
Part 1: plan your 45 minutes
5
5
5
10
12
6
2
1. Clarify2. Estimate3. API and data4. High-level5. Deep dive6. Scale and harden7. Wrap up
Planned
45 / 45
minutes
Score
100
Balanced
Every step has a sensible share of the time. This is close to the guide of 5 / 5 / 5 / 10 / 12 / 6 / 2.
Part 2: what you might say at each step
Pick a prompt
Pick a step
Interviewer: “Design a rate limiter for a public API.”
Step 1: Clarify (about 5 min)
“Is this for one service or a shared gateway? Per user, per API key or per IP? What happens when the limit is hit: a clear 429 error? I will assume a shared gateway, per API key, and that being a little loose is fine, but being down is not.”

The minute ranges and the score are a teaching guide, not a rule from any company. The numbers in the sample scripts are illustrative assumptions, not real statistics.

07How to Use It / Steps / Implementation

Running the interview

  1. 1
    State your plan in the first minute
    Say the seven steps in one sentence, and ask if the interviewer wants a different focus.
  2. 2
    Clarify before you draw
    Four to six good questions. Write the answers in a corner of the board and refer back to them.
  3. 3
    Estimate out loud, and round hard
    Use powers of ten. State your assumptions. See the Back-of-the-Envelope Estimation topic.
  4. 4
    Keep step 3 short
    Three to five endpoints and the main entities are enough. You can add more later.
  5. 5
    Build the simplest design first
    One path that works end to end. Do not add a cache or a queue until you can say why.
  6. 6
    Ask where to go deep
    If the interviewer has no preference, pick the part that is hardest or most unusual.
  7. 7
    Attack your own design
    Ask: what if traffic grows 10 times, a server dies, or one key is very hot? Fix what you find.
  8. 8
    Save two minutes for the wrap-up
    Recap the design, say the main trade-offs, and list what you would add with more time.

An outline for one prompt: "Design a news feed"

  1. Clarify: follow model, newest first or ranked, text and images, a few seconds of staleness is fine.
  2. Estimate: 100 million daily users, 10 feed opens each, about 10,000 reads per second, read-heavy.
  3. API and data: POST post, GET feed with a cursor. Users, follows, posts.
  4. High-level: post service, queue, feed workers, feed cache, posts database.
  5. Deep dive: fan-out on write for most users, on read for celebrities, merged at read time.
  6. Harden: hot celebrity posts, a replicated feed cache, queue lag, and monitoring.
  7. Wrap up: hybrid fan-out. Trade-off is extra read work for celebrity posts. Next: ranking and media on a CDN.
💡When you get stuck
Say it: "I am stuck on X. Let me think about the simplest version." Then go back to the requirement it serves, and try a smaller question. Silence is worse than a thinking-aloud sentence.

08Key Terms to Know

TermMeaning in easy words
FrameworkA fixed order of steps you follow for any design question
ScopeWhat is in the design and what is out
Functional requirementSomething the system must do
Non-functional requirementHow well it must do it: speed, uptime, scale
Back-of-the-envelopeA quick rough calculation with round numbers
High-level designThe big boxes and the main paths between them
Deep diveA detailed design of one or two key components
BottleneckThe part that limits the whole system first
Single point of failureOne part that stops everything if it breaks
Trade-offWhat you give up to get something else
Think aloudSaying your reasoning as you go, so others can follow and help
HintA nudge from the interviewer about where to go next

09Pros, Cons and Trade-offs

✅ Pros
  • You always know the next step
  • Time is spread over what matters
  • Easier for the interviewer to follow and help
  • Reduces panic and blank moments
  • Carries over into real design documents
⚠️ Cons
  • Can sound robotic if you recite it
  • Tempts you to finish every step, even when depth is better
  • Does not give you the knowledge to design well
  • Different interviewers expect different emphasis
  • Hard to keep to under stress without practice

Trade-offs

ChoiceWe gainWe lose
Follow the steps strictlyComplete coverageLess time to go deep where it counts
Skip estimatesMore time for designNo numbers to justify choices
Long clarificationRight problemLess time for design
Deep dive on one partStrong depth signalOther parts stay shallow
Ask before every decisionStays aligned with the interviewerCan look unsure and slow things down

10Common Problems and Mistakes

Common mistakes

  1. Starting with the database. You pick tools before you know what the system must do.
  2. No questions. You design for a guess, and the interviewer sees it.
  3. Over-engineering. Fifty boxes before one request works end to end.
  4. No estimates. You cannot say why one box is enough or ten are needed.
  5. Silence. A quiet candidate cannot be helped or graded fairly.
  6. Ignoring failure. A design with no failure cases feels unfinished.
  7. Name-dropping tools. Saying "Kafka" is not a reason. Say what problem it solves here.
  8. No wrap-up. You end mid-sentence, and the trade-offs are never said.

Things to watch

⏰Running over on early steps
Glance at the clock after step 3. If you are past 15 minutes, speed up.
🙈Ignoring hints
A hint such as 'what about writes?' usually points to a gap. Follow it.
🧱Defending a mistake
If you see a flaw, say so and fix it. That is a good signal, not a bad one.
📚Unknown technology
Say you have not used it, describe the idea you need, and design with a general tool.

11Real-World Examples

🏢Big-tech interviews
Many companies use an open design round. Exact formats and timing differ by company and level.
📄Design docs and RFCs
Engineering teams write goals, scale, API, design and risks before building.
🧑‍🏫Mock interviews
Practice with a peer and a timer is the fastest way to improve.
🏛️Architecture review boards
Reviewers ask the same questions: scale, failure, trade-offs, next steps.
📝Note
The time split here is a teaching guide. Always adapt to the interviewer: some want more clarification, some want to start at the deep dive.
Mini case: a good recovery
✏️Minute 28notices one cache for all users
→↓says it out loud
🔧Fixreplicate and split by key
→↓adds to wrap-up
✅Trade-off namedmore cost, fewer outages
The candidate finds a flaw late and says so. That helps, not hurts.

12Related Topics to Read Next

What is System Design?→

The short version of the steps, and the building blocks you will use.

Requirements Gathering→

Step 1 in depth: the questions to ask.

Back-of-the-Envelope Math in Practice→

Step 2 in depth: worked estimates.

Talking About Trade-offs and Bottlenecks→

Steps 5 to 7: how to explain your choices.

Functional vs Non-Functional Requirements→

How to sort the answers from step 1.

What are Load Balancers?→

A building block you will draw in step 4.

Caching Strategies→

A common deep-dive and bottleneck fix.

Sharding→

The usual answer when one database is not enough.

Message Queues→

How to smooth bursts and decouple parts.

13Interview Questions with Short Answers

14Quick Revision Cheat-Sheet

  • ✔Seven steps: clarify, estimate, API and data, high-level, deep dive, scale and harden, wrap up.
  • ✔Time guide (45 min): 5 / 5 / 5 / 10 / 12 / 6 / 2.
  • ✔Start: say the plan, then ask questions before you draw.
  • ✔Simple first: one working path, then improve it.
  • ✔Think aloud: silence cannot be graded or helped.
  • ✔Attack your design: 10 times the load, a dead server, a hot key.
  • ✔Wrap up: recap, trade-offs, next steps. Always keep two minutes.
  • ✔One line: “Ask, measure, build the simple version, go deep, break it, and say what you gave up.”
← Previous
Back-of-the-Envelope Math in Practice
Next →
Talking About Trade-offs and Bottlenecks