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
  • Requirements Gathering
  • Back-of-the-Envelope Math in Practice
Part 10: Case Studies
System Design/Estimation and Interview Method/Requirements and Estimation

Requirements Gathering

The questions to ask first, how to set the scope, and how to turn a vague prompt into a short list you can design for.

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

01Quick Summary

Requirements gathering is the first five minutes of a design: you ask questions until the vague prompt turns into a short, agreed list of what to build, how big it is and what is left out.

  • The prompt is vague on purpose. “Design a chat app” has no numbers. Finding them is part of the test.
  • Ask about 7 areas: features, scale, speed, availability, consistency, data and security.
  • Write it down and confirm it. Then state your assumptions out loud, and design only for what is on the list.

02Concept: What is it?

Real projects start with unclear wishes, not a full specification. A good engineer does not draw boxes straight away. They first find out what problem is being solved, for whom, and how big it will get. A design for 1,000 users and a design for 100 million users look nothing alike, so the numbers decide the design.

The earlier page on Functional vs Non-Functional Requirements explains what the two kinds of requirement are. This page is about the conversation: which questions to ask, in what order, how many, and how to turn the answers into a sheet you can design from.

From a vague prompt to a design
❓Vague promptDesign a chat app
→↓ask
🗣️Answersfeatures, scale, speed
→↓write down
📋Requirements sheetagreed with the interviewer
→↓drives
🏗️Design choicescache, shard, queue...
Every step to the right depends on the step before it.

Why the prompt is vague

The interviewer is not hiding the answer. They want to see how you handle missing information, because that is what real work looks like. People who start drawing at once often solve the wrong problem. People who ask 30 questions never get to the design. The skill is to ask a few sharp questions, then commit.

🧠Two outputs, always
A good requirements step ends with two things: a short list (features, targets, numbers, out of scope) and a list of assumptions for anything the interviewer left open.

03Real-Life Example

🍵Hiring an Architect for a House
You tell an architect, “Build me a house.” A weak architect starts drawing. A good one asks: how many people will live there, how much land and money do you have, do you need a garage, is a lift required for an older relative? Ten minutes of questions save months of rework. They also write down what is not included, such as the garden.
Building a house
Requirements gathering
How many people will live here?
How many users? How many are active each day?
Garage, garden, lift?
Which features are in, and which are out of scope?
How much money and time?
Cost and team limits
Do you want it to last 100 years?
How long must the data be kept?
Are guests coming for a party?
Peak traffic, and spikes
Do you need a safe room?
Security and compliance needs
Sign the plan before building
Confirm the sheet with the interviewer

Weak and good openings for a URL shortener

What you sayWhat it shows
Weak“OK. I will use a load balancer, a database and a cache...”You started drawing before you know the problem.
Weak“What about the programming language? Which cloud? Which colour?”Low-value questions that do not change the design.
Good“Core features: create a short link, and redirect. Is analytics in scope?”You pin down the scope in one sentence.
Good“How many new links and redirects a day? Is it read-heavy?”You ask for the numbers that drive the design.
Good“I will assume redirects must be very fast and highly available. Creation can lag a little. Does that sound right?”You state an assumption and invite a correction.

04Why Do We Need It?

🎯Solve the right problem
A clear scope stops you building a feature nobody asked for.
📏Get the numbers
Scale and speed targets are the input to estimation and to every later choice.
⏱️Save design time
Five focused minutes now prevent a redesign at minute 30.
🤝Agree early
A sheet you both nodded at is a fair way to be judged on the design.
🧭A way to choose
When two options look equal, the requirements say which one wins.
🗣️Shows judgement
Interviewers watch for how you scope, not only what you draw.
Requirements are the map. Without them every design choice is a guess.

05Where Do We Use It?

🎤System design interviews
The first 5 to 8 minutes of a 45 minute round.
📝Design documents
Goals, non-goals and targets sit at the top of a design doc.
🧑‍💼Talking to product managers
Turning “make it fast” into a number you can test.
🏁Project kick-offs
A shared list of scope and risks before work starts.
🔁Architecture reviews
A reviewer asks, “What problem does this solve, and for how many users?”
🚦Deciding what to cut
A clear out-of-scope list helps you say no politely.

06Types / Parts / How It Works

The seven areas to ask about

AreaTypical questionWhat the answer changes
FeaturesWhat are the 2 or 3 core actions? What is out of scope?The API and the data model
ScaleHow many users, how many requests, what read:write ratio?Caching, replicas, sharding
SpeedHow fast must the main action feel?Cache, CDN, precomputing
AvailabilityHow bad is an outage? What may degrade?Replication, failover, regions
ConsistencyMust everyone see the same data at once?Strong or eventual consistency, the database type
DataHow big is each record? How long is it kept?Storage type, tiers, retention
SecurityWho can see what? Any legal rules?Authentication, encryption, audit
The same questions, grouped
What to build
🧩Featuresin scope and out
👥Users and clientsweb, mobile, API
How big
📈Scaleusers, QPS, ratio
🗄️Datasize, retention
How well
⚡Speed
🟢Availability
🔁Consistency
🔐Security
Features first. The rest turns into numbers and targets.
What to build How big How well

How requirements drive later choices

If the requirement says...Then you probably...
Read-heavy (100 reads per write)Add a cache and read replicas
Write-heavy, large volumePartition the data, and buffer writes with a queue
Must never show stale data (money)Pick strong consistency, accept more latency
Always available, stale is finePick eventual consistency, replicate widely
Users around the worldUse a CDN and several regions
Data kept foreverPlan storage tiers and archiving
Strict privacy rulesPlan encryption, access control and data residency early
VisualizerAsk the right questions and fill in the sheetPick a prompt, then click the questions you would ask. Watch the requirements sheet, the area coverage and the design hints. Try asking all the low-value ones, or asking too many.
The prompt you are given
Questions you could ask (click to ask, click again to take back)
Questions asked
0
aim for 6 to 8
Areas covered
0 / 7
features to security
Low-value questions
0
would not change the design
Requirements sheet for: Design a URL shortener.
🧩 Functional
Nothing yet. Ask a question to fill this in.
📏 Non-functional
Nothing yet. Ask a question to fill this in.
🔢 Scale numbers
Nothing yet. Ask a question to fill this in.
🚧 Out of scope
Nothing yet. Ask a question to fill this in.
Coverage by area
· Features· Scale· Speed· Availability· Consistency· Data· Security
What the answers suggest for the design
No hints yet. They appear as you learn the scale, speed and consistency needs.
The prompt is only “Design a URL shortener.”. That is on purpose. Pick a few questions to ask, and watch the sheet fill in.

The answers are fixed so the page stays the same every time. A real interviewer may answer differently, or say “you decide, and tell me your assumption”. Both are fine.

07How to Use It / Steps / Implementation

A five minute routine

  1. 1
    Repeat the prompt in your own words
    “So we are building a service that shortens links and redirects them.” This checks you heard it right.
  2. 2
    Ask for the core features (1 minute)
    Get 2 or 3 actions. Say what you will leave out: “I will skip analytics and custom aliases for now.”
  3. 3
    Ask for scale (1 minute)
    Daily users, requests per day, and the read:write ratio. If the interviewer says “you decide”, pick a number and say it out loud.
  4. 4
    Ask for targets (1 minute)
    Latency, availability and consistency. Ask what may be slow or stale, and what must never be.
  5. 5
    Ask about data and security (1 minute)
    Size of a record, how long it is kept, who may see it, and any legal rules.
  6. 6
    Write the sheet
    Four small lists: functional, non-functional, scale numbers, out of scope. Keep it on screen.
  7. 7
    Confirm and move on
    “Does that sound right?” Then list your assumptions and go to estimation.
💡Rank the qualities
Ask, “If I must choose, what matters most: speed, availability, consistency or cost?” One answer to this question settles many later trade-offs.
💡Scope with an MVP
Choose 2 or 3 core features and say what you defer. “First version: create and redirect. Later: analytics, expiry, custom aliases.” A small scope you can design well beats a big one you can only sketch.

A short script

  • You: “Core flow is: paste a long URL, get a short one, and the short one redirects. Is that the full scope?”
  • Interviewer: “Yes. Skip analytics.”
  • You: “How many new links per day, and how many redirects?”
  • Interviewer: “5 million new, and redirects are far more common.”
  • You: “I will assume 100 redirects per link. So it is very read-heavy, and redirects need to be fast and always up. Creating can lag a little. OK?”

08Key Terms to Know

TermMeaning in easy words
RequirementSomething the system must do or must be
Functional requirementA feature: what the system does
Non-functional requirementA quality: how fast, safe, big or available it must be
ScopeThe list of things that are in the project
Out of scopeThings you decide not to build now, and say so
MVPMinimum viable product: the smallest version that is useful
AssumptionA guess you state out loud, so it can be corrected
Clarifying questionA question that changes the design if the answer changes
Read:write ratioHow many reads happen for each write
DAUDaily active users: people who use it in a day
Goal and non-goalWhat you aim for, and what you are choosing not to do

09Pros, Cons and Trade-offs

✅ Pros
  • You design the right thing
  • Targets become numbers you can check
  • Less rework later
  • Shows structure and judgement
  • Gives you a reason for each later choice
⚠️ Cons
  • Takes time before drawing starts
  • Early numbers are guesses
  • A question can annoy a busy interviewer if it is not needed
  • Easy to over-scope
  • Requirements change as the product grows

Trade-offs

ChoiceWe gainWe lose
Ask many questionsFewer wrong guessesLess time to design
Ask few questionsMore time to designMore assumptions to defend
Wide scopeA fuller productA shallow design
Narrow scope (MVP)A deep, clear designSome features left for later
State assumptionsSpeed, and a chance to be correctedA wrong one can cost you if it is not caught

10Common Problems and Mistakes

Common mistakes

  1. Jumping to boxes. Drawing a load balancer before you know the scale.
  2. Asking 30 questions. You run out of time. Stop at 6 to 8 that change the design.
  3. Never stating assumptions. A silent guess is a hidden risk. Say it out loud.
  4. Over-scoping. Trying to design every feature of a big product in 45 minutes.
  5. Ignoring non-functional needs. Features alone do not tell you whether to cache or shard.
  6. Low-value questions. Language, brand names, colours and app names rarely change the architecture.
  7. Not writing it down. You forget a target and break it later in the design.
  8. Treating answers as fixed. If new facts appear later, update the sheet and say so.

Things to watch

🤷“You decide”
This is an invitation. Pick a sensible value, say it, and carry on.
🔢No numbers given
Make them up from a known product size, and label them as assumptions.
🧲Scope creep
When the interviewer adds a feature later, say how it fits and what it costs.
🔁Hidden requirements
Ask about failure and growth: “What happens if this part is down? What if traffic doubles?”

11Real-World Examples

📄Design docs
Many engineering teams open a design doc with goals, non-goals and success numbers.
🧑‍💼Product requirement docs
A product manager writes the features. Engineers add the quality targets.
🎤Interview loops
Companies score scoping and assumptions as a separate skill from drawing boxes.
📜SLOs
Availability and latency targets agreed with the business are written as SLOs.
🧪Acceptance criteria
Each feature is paired with a test that proves it is done.
🧯Post-incident reviews
A common finding: “we never agreed what scale this had to handle.”
Mini case: the same prompt, two answers
💬A chat appIs it one-to-one only?
→↓Yes, small scale
🖥️One server + databasesimple, cheap
→↓No: 50 M daily users
🌐Connections over many serverspartitioned storage, queues
One clarifying question changes the whole design.

12Related Topics to Read Next

Functional vs Non-Functional Requirements→

What the two kinds of requirement are.

Back-of-the-Envelope Estimation→

The next step: turn the scale answers into numbers.

Back-of-the-Envelope Math in Practice→

Worked examples that start from a requirements sheet.

The 7-Step Interview Framework→

Where requirements fit in the whole interview.

SLA, SLO and SLI→

How speed and availability targets are written and measured.

What is System Design?→

The big picture of what you are about to design.

Talking About Trade-offs and Bottlenecks→

How to defend the choices your requirements led to.

13Interview Questions with Short Answers

14Quick Revision Cheat-Sheet

  • ✔Prompt is vague on purpose. Find the scope, scale and targets first.
  • ✔Seven areas: features, scale, speed, availability, consistency, data, security.
  • ✔Ask 6 to 8 questions that would change the design. Skip language, colours and names.
  • ✔Scope an MVP: 2 or 3 core features, and name what you defer.
  • ✔Write four lists: functional, non-functional, scale numbers, out of scope.
  • ✔State assumptions out loud, and ask “does that sound right?”
  • ✔Requirements drive choices: read-heavy means cache, strong consistency means a CP store.
  • ✔One line: “Ask a few sharp questions, write the answers down, then design only for them.”
← Previous
Data Privacy and GDPR Basics
Next →
Back-of-the-Envelope Math in Practice