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.

Requirements for the chat app
GroupWhat we write down
The requestDesign a chat app like WhatsApp.
Messages a second, on average
not shown yet
  1. A one-line request. The interviewer says only this: design a chat app like WhatsApp.
  2. What it must do. First, what it must do: send messages, show who is online, and search old messages.
  3. How well it must work. Then, how well it must work: deliver within 1 second, stay up 99.99%, and never lose a message.
  4. Put numbers on it. 50 million users sending 40 messages a day is about 23,000 messages a second on average.
  5. Say what is out. Say what you will not build, such as video calls, so the time goes to the core.
  6. How well drives design. The how-well row drives the design: 1 second, 99.99% uptime and no lost messages shape every choice.
  7. 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

  1. Functional requirements say what users can do, such as send a message.
  2. Non-functional requirements say how well it must work, with numbers such as 1 second.
  3. Turn sizes into a rate: 50 million users sending 40 messages a day is about 23,000 a second.
  4. Saying what is out of scope saves time for the parts that matter most.

Go deeper in the Capacity estimation lab →

In plain words

The interviewer says: "Design a chat app like WhatsApp." That one line hides two kinds of requirement. A says what users can do: send a message, see who is online. A 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 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

Lab · Start here

Requirements and SLO worksheet

Turn an interview prompt into requirements, then into numbers. First sort what the system must do from how well it must do it. Then set users and targets to get the peak load, the downtime allowed and the error budget.

Try it

Interview prompt

Design a link shortener. People paste a long link and get a short one. Anyone who opens the short link lands on the long page.

Step 1: sort each statement

  • Functional: Something the prompt asks the system to do, that a user can see.
  • Non-functional: How well it must do it: speed, uptime, scale, or keeping data safe.
  • Out of scope: A feature the prompt does not ask for, so we agree not to build it now.
  1. A user pastes a long link and gets a short link back.
  2. Opening a short link sends the visitor to the long page.
  3. 99% of redirects finish within 100 ms.
  4. Short links keep working 99.9% of the time.
  5. A saved link is never lost, even if a server dies.
  6. Show each link owner a live map of where visitors are.

6 of 6 statements still to sort.

Redirects a day
100,000,000
Average a second
1,157
Peak a second
3,472
Downtime allowed
43 min 12 s
each 30-day month
Error budget
3,000,000
failed redirects allowed a month
Latency target,
100 ms
99 in 100 finish within this

Controls

Step 2: how many users
Daily users
10
Peak hour, compared with the average
Step 3: how good it must be

An SLO (service level objective) is the target you promise users, such as 99.9% of redirects succeeding. The error budget is the failures it still allows.

Availability
Latency target for 99% of requests

Written down

Sort all six statements and press "Check my sorting" to see the requirements written down with your numbers.

What this model simplifies
  • In a real interview you find the requirements by asking questions. Here the statements are given, so you only sort them.
  • Traffic is the daily average times one peak factor. Real traffic rises and falls through each day and week.
  • Each user action counts as one request. A real screen often makes several requests.
  • A month is 30 days, and downtime is the whole failure share counted as time with no service.

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.

  1. 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.

  2. 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.

  3. Set latency targets

    Pick a case to follow below

    With this case: With the database nearby, sending took 75 ms, inside the 100 ms target.

    Phone, sends a messagePhonesends a messageChat server, checks and stores, NOWChat serverchecks and storesmessage arrivedNOWDatabase, same data centreDatabasesame data centre
    • 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 4

    Step 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 far
    30ms
    Target
    100ms
    p99, send a message
    Left in the budget
    70ms
    still inside

    Step 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 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.

  4. Set availability and durability

    Pick a case to follow below

    With 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 messageChat serversaves each messageDatabase, disk A, NOWDatabasedisk Ahas message 501NOW
    • Chat server — saves each message — healthy
    • Database — disk A — healthy — NOW — has message 501
    • Write
    Step 1 of 2

    Step 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 saved
    1
    After disk A fails, message 501
    –
    not yet

    Step 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.

    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

Which of these is a non-functional requirement?

Judgement

Trade-offs and how it fails

What you give up

Performance
A tight 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 , 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

A team asks for strong consistency, 50 ms answers anywhere in the world, and 99.999% availability. What is the best response?

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"?

A service promises 99.99% availability ("four nines"). About how much downtime does that allow in a year?

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

A product manager says the search page "should be fast". How do you turn that into a requirement?

Apply it

A photo service may be down for a few minutes a year. But no uploaded photo may ever be lost. Which kind of requirement is "never lose a photo"?

Judge a design

Users said a news feed a few seconds old is fine. The team still makes every feed read strictly up to date, with a call to the main database each time. What is wrong?

Next: latency, throughput and availability, the three numbers that most non-functional requirements are written in.

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.