Stage 0 · Interview method · Easy · 10 min
Functional and non-functional requirements
Split a one-line prompt into what the system must do and how well it must do it, with numbers for speed, size and uptime.
What each interview level is expected to know
Learn first: How system design interviews work
After this lesson you can:
- Turn a one-line prompt into the three main user actions and what is out of scope.
- Put a number on each need: users, latency, availability and durability.
- Convert an availability target such as 99.99% into allowed downtime per year.
Start here
See it in 60 seconds
From one line to requirements
Before drawing boxes, turn a one-line request into what the system must do, how well, at what size, and what is left out.
Scene 1 of 6 · A one-line request
The interviewer says only this: design a chat app like WhatsApp.
| Group | What we write down |
|---|---|
| The request | Design a chat app like WhatsApp. |
- Messages a second, on average
- not shown yet
- A one-line request. The interviewer says only this: design a chat app like WhatsApp.
- What it must do. First, what it must do: send messages, show who is online, and search old messages.
- How well it must work. Then, how well it must work: deliver within 1 second, stay up 99.99%, and never lose a message.
- Put numbers on it. 50 million users sending 40 messages a day is about 23,000 messages a second on average.
- Say what is out. Say what you will not build, such as video calls, so the time goes to the core.
- How well drives design. The how-well row drives the design: 1 second, 99.99% uptime and no lost messages shape every choice.
- Now you try. Tap every statement about how well the app works, not what it does. For example, tapping "A message reaches the friend within 1 second", "The app is up 99.99% of the time" and "No sent message is ever lost" gives this: You picked 3 of the 3 how-well statements. Each one is a promise with a number or a rule that the design must meet.
Scene 1 of 6: A one-line request. The interviewer says only this: design a chat app like WhatsApp.
Key points
- Functional requirements say what users can do, such as send a message.
- Non-functional requirements say how well it must work, with numbers such as 1 second.
- Turn sizes into a rate: 50 million users sending 40 messages a day is about 23,000 a second.
- Saying what is out of scope saves time for the parts that matter most.
In plain words
The interviewer says: "Design a chat app like WhatsApp." That one line hides two kinds of requirement. A (Something a system must let users do, such as send a message or search old messages.) says what users can do: send a message, see who is online. A (A promise about how well a system works, such as answering within 1 second or staying up 99.9% of the time.) says how well the system must do it. Each message arrives within 1 second, the service stays available 99.99% of the time, and nothing that was sent goes missing.
The two kinds lead to different designs, which is why you keep them apart. A feed that must open fast points to a (A small, fast store that keeps copies of popular data, so most reads skip the slower database.). A chat that must never lose a message points to saving it on more than one machine before saying it was sent. So you list the few features that matter, then put a number on each how-well goal. Skipping this step often means designing the wrong thing well.
The problem it solves
A prompt names features, but not how many users, how fast, or what may fail. A design built only from the features works in a demo. It can then fail under real traffic, or cost far more than the job needed. Asking first also shows what you can leave out.
Why it matters
Two systems with the same features can need very different designs. A feed that may show a post a few seconds late can use caches and copies freely. A bank ledger that must never show a wrong balance cannot. The "how well" requirements decide this, so ask for them before you draw.
A worked example
Take a URL shortener: "users can shorten a link" is functional — it names a feature. "Redirects answer in under 100 ms for 99% of requests, at 10,000 requests per second" is non-functional — it sets numbers you can test against.
Think of it like…
Think of ordering a car. That it has four seats and a large boot is a functional requirement. That it reaches 100 km/h in under 8 seconds, and runs 100,000 km without a breakdown, is non-functional.
Where this analogy stops working
The split between what it does and how well is the useful part. But a car's targets are fixed on the day you buy it. A system's targets move. Real traffic shows which numbers matter, and the team changes them over the years.
Try it
See it working
Also try: Capacity estimation
Mechanics
How it works
Requirements turn a vague prompt into targets you can design for. The pictures follow this page's chat app and its main action: sending a message.
Pick the 3 main user actions
Ask what users must be able to do, then keep the three actions that matter most. For a chat app: send a message, read messages, see who is online. Say out loud what you are leaving out.
Size the system
Ask how many people use it each day. This number is called daily active users (DAU). Then ask how many reads happen for each write. Also ask how much busier the peak hour is than an average hour.
Set latency targets
Pick a case to follow belowWith this case: With the database nearby, sending took 75 ms, inside the 100 ms target.
- Phone — sends a message — healthy
- Chat server — checks and stores — healthy — NOW — message arrived
- Database — same data centre — healthy
- Request
- Write
- Answer
Step 1 of 4Step 1 of 4 · Chat server
Done: The message travels to the server
- What happens
- A slow phone network takes about 30 ms each way.
- Why
- A p99 target is about the slow cases, so use the slow times for each part.
- What changes
- 30 ms of the 100 ms is gone.
- Next
- The server checks the message: 10 ms
Time so far30msTarget100msp99, send a messageLeft in the budget70msstill insideStep 1 of 4: Chat server. The message travels to the server. A slow phone network takes about 30 ms each way.
Say how fast an answer must be. A (The time within which 99 out of 100 requests finish. The slowest 1% take longer.) target of 100 ms means 99 of every 100 requests finish within 100 ms. Pick a target for each main action.
A target is a budget that each part of the trip spends. In the picture, the phone network takes 60 ms there and back, and the server's own work takes 10 ms.
With the database nearby, the send takes 75 ms and fits the target. With the database in another region, it takes 150 ms. So a target is not only a number to write down. It decides where the parts can run.
Set availability and durability
Pick a case to follow belowWith this case: With one copy, message 501 was lost when disk A failed. Being back up later does not bring it back.
Chat server, saves each message Chat server saves each message Database, disk A, NOW Database disk A has message 501 NOW - Chat server — saves each message — healthy
- Database — disk A — healthy — NOW — has message 501
- Write
Step 1 of 2Step 1 of 2 · Database
Done: The server saves message 501 on disk A
- What happens
- The database writes the message to its disk.
- Why
- Durability asks whether a saved message can ever be lost.
- What changes
- This is the only copy.
- Next
- Disk A fails
Copies saved1After disk A fails, message 501–not yetStep 1 of 2: Database. The server saves message 501 on disk A. The database writes the message to its disk.
What these pictures simplify. The times are round examples. Adding up the slow time of each part gives a safe guess at the p99, not an exact one. The slow cases of different parts rarely line up. Real databases decide how many copies to wait for with settings, not by default.
(The share of time a service answers requests correctly, such as 99.9% of a year.) is the share of time the system answers. 99.9% allows about 8.8 hours of downtime a year, and 99.99% allows about 53 minutes. Durability asks a different question: may any saved data ever be lost?
In the picture, message 501 is saved and then the disk fails. With one copy, the message is gone for good, even after the system is back up. That is a durability failure, not only an availability one.
With three copies on separate disks, the message survives. The cost is a few milliseconds per message, because the server waits for the copies before it says sent.
Use it when
- The start of any design, in an interview or at work: the answers decide which parts you need.
- A prompt that is one vague line, such as "design a chat app": questions turn it into a list you can design against.
Skip it when
- A small tool for one user, such as a script on your laptop: there is no scale or uptime target to agree.
- Once the main actions and targets are agreed: more questions use up time you need for the design. State an assumption and move on.
Check yourself
Judgement
Trade-offs and how it fails
What you give up
- Performance
- A tight (How long one request takes, from sending it to getting the answer.) target, such as a p99 of 10 ms, usually means answering from memory. That adds caches to pay for and to keep fresh.
- Cost
- Each extra nine of availability cuts the allowed downtime to a tenth: 99.9% allows about 8.8 hours a year, and 99.99% about 53 minutes. Reaching it usually takes spare copies and automatic (Switching to a backup, such as promoting a replica to primary, after the original one fails.), so the cost rises with each nine.
Failure modes
- Building for a target nobody asked for. For example, making every read strictly up to date when a feed a few seconds old was fine. The design gets slower and costs more for no gain.
- A requirement with no number: "it should be fast" cannot be tested, so nobody can say when the design is done.
- Not saying what is out of scope, then spending the interview on a feature that did not matter.
In the real world
- Amazon S3's documentation states its targets as numbers: the standard class is designed for 99.999999999% durability and 99.99% availability. Source: Amazon S3 storage classes (checked 14 October 2026)
- Stripe's public API accepts an Idempotency-Key header, so a retried payment request is not charged twice.
Trade-offs to be ready to discuss: Consistency vs availability
Check yourself
Interview
What interviewers look for
- Write three functional and three non-functional points on the board before you draw any box.
- Give each non-functional point a number: "p99 under 200 ms", "99.9% available", "10 million daily users".
- Say out loud what is out of scope, and ask the interviewer to confirm it.
Say it out loud: Which of these is a non-functional requirement: "User can upload photos" or "Photo upload completes within 200 ms at p99"?
Expected depth by interview level
Levels describe the depth interviewers probe, not years of experience. Choose a level on the learning path to highlight it.
- JuniorCore
- Ask what users do and roughly how many there are.
- MidCore
- Separate functional from non-functional requirements and agree scope.
- SeniorCore
- Turn vague goals into numbers: latency, availability, consistency.
- StaffCore
- Challenge the requirements and tie them to business constraints.
Practice
Apply it
Three harder questions
The first two use the idea on a new case. The last asks you to judge a design.
Apply it
Apply it
Judge a design
Go deeper
Sources and further reading
First-hand sources to check this page against and to go further. They are standards, official docs, original papers, and guides from engineering and security teams. Each link was opened on 8 November 2026.
- Engineering guideService Level ObjectivesGoogle SRE bookHow Google picks what to measure, sets targets for it, and why 100% is the wrong target.
- Engineering guideAWS Well-Architected FrameworkAmazon Web ServicesA checklist of non-functional needs in six groups, such as reliability, security, speed and cost.