Quick revision
The short answer
For a food-ordering service we ask who the users are (customers, restaurants, couriers), which two or three flows to design (placing and paying for an order, the restaurant accepting it, tracking its status), and at what scale (orders per day and at the dinner peak, cities, read-to-write ratio). We write non-functional targets with numbers, such as order placement p99 under 500 ms, 99.95 percent availability for ordering, no lost or duplicated paid orders, and status updates within a few seconds. We put onboarding, reviews, recommendations and courier payroll out of scope and write down every assumption we made ourselves.
What to remember
In this answer, we turned an open prompt into requirements we can design against. We named the actors and agreed on two or three core flows, asked for the scale that drives caching and partitioning, wrote non-functional targets with numbers for latency, availability, payment correctness and freshness, put the rest out of scope, and recorded our own assumptions so the design can be checked against them later.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
For a food-ordering service we ask who the users are (customers, restaurants, couriers), which two or three flows to design (placing and paying for an order, the restaurant accepting it, tracking its status), and at what scale (orders per day and at the dinner peak, cities, read-to-write ratio). We write non-functional targets with numbers, such as order placement p99 under 500 ms, 99.95 percent availability for ordering, no lost or duplicated paid orders, and status updates within a few seconds. We put onboarding, reviews, recommendations and courier payroll out of scope and write down every assumption we made ourselves.
Why this question is asked
The first five minutes of a design discussion decide what the remaining forty are about. 'Design a food-ordering service' could mean a single restaurant's website or a platform across hundreds of cities, and the right designs for those have almost nothing in common. Interviewers watch whether we narrow the problem with good questions and turn the answers into requirements we can design against. In this answer, we will separate functional and non-functional requirements, go through the clarifying questions for this prompt, write down targets with numbers, decide what is out of scope, and see why recording assumptions pays off later.
1A Quick Recap: Functional and Non-Functional Requirements
Functional requirements say what the system does for its users: a customer can place an order, a restaurant can accept it. Non-functional requirements say how well it must do those things: how fast (latency), how often it may be unavailable (availability), whether data may ever be lost (durability), how up to date every view must be (consistency), plus security and cost. A design that meets every functional requirement can still fail if it is too slow at dinner time or occasionally charges a customer twice.
The functional side tells us which components we need. The non-functional side tells us how to build them: whether we need replicas across zones, idempotency keys, caches or queues. That is why we need both, and why the non-functional ones need numbers.
2Clarifying the Functional Scope
We start with the actors. A food-ordering platform has at least three: customers who browse restaurants and menus, place and pay for orders and track them; restaurants that accept, prepare and update orders; and couriers who receive assignments and deliver. Each actor brings several flows, far too many for 45 minutes.
So we ask the interviewer to agree on two or three core flows. A sensible choice is: a customer places and pays for an order, the restaurant accepts it, and the customer tracks its status until delivery. Courier assignment is a deep topic of its own; we can include it as a simple step or agree to treat it as a black box.
3Clarifying Scale
Next we ask about numbers, because they decide caching and partitioning. How many daily active users? How many orders a day, and how sharp is the dinner peak? How many cities and restaurants? If the interviewer says 'you decide', we propose numbers and write them down: say 5 million orders a day across 200 cities and 300,000 restaurants, with 30 percent of orders in a two-hour dinner window.
That last assumption is worth a quick calculation: 1.5 million orders in 7,200 seconds is about 200 orders per second on average in the window, and perhaps 600 at the busiest minute. Browsing is far heavier, perhaps 50 menu views per order, so reads outnumber writes by roughly 50 to 1. Already we know that menus should be cached and served from read replicas or a CDN, while the order write path is modest in rate but must be correct.
4Writing Non-Functional Targets With Numbers
Vague words like 'fast' and 'reliable' cannot be designed against or tested. We turn them into targets that would fail a test if they were missed. The table shows what we would write on the board for this prompt.
| Need | Target | Why it matters |
|---|---|---|
| Order placement latency | p99 under 500 ms at dinner peak | Slow checkout loses orders |
| Ordering availability | 99.95 percent per month | About 22 minutes of failure a month |
| Payment correctness | No lost or duplicated paid orders | Drives idempotency and durable writes |
| Status freshness | Visible to customer within 5 seconds | Allows async events, not strict sync |
| Menu browsing | p99 under 200 ms, may be minutes stale | Allows caching and replicas |
| Data | Payment data handled by a PCI-compliant provider | Keeps card data out of our systems |
Notice that each row also tells us about consistency. Menus can be minutes stale, so heavy caching is fine. Order status can lag a few seconds, so updates can flow through events. Payment cannot be wrong at all, which points to idempotency keys on the payment call and a durable order record written before the customer sees 'order placed'.
5Deciding What Is Out of Scope
We then say what we will not design today: restaurant onboarding, ratings and reviews, recommendations and search ranking, promotions, and courier payroll. Saying this aloud does two things. It keeps the 45 minutes on the core flows, and it gives the interviewer a chance to object if one of those items is exactly what they wanted to discuss. Out of scope does not mean ignored forever; it means 'not in this session'.
6Recording Assumptions
Whenever the interviewer says 'you decide', we decide and write it down: '5 million orders a day', 'single country, one currency', 'card payments through a provider such as Stripe or Adyen', 'courier assignment is a separate service we call'. The written list becomes the basis we check our design against later. If at minute 30 the interviewer says 'what about cash on delivery?', we can point to the assumption, say what would change, and adjust deliberately rather than discovering a contradiction in our own design.
- Name the actorsCustomer, restaurant, courier
- Agree on two or three core flowsPlace and pay, accept, track
- Ask for scaleOrders per day, dinner peak, cities
- Interviewer gives numbers?If not, propose themYesWrite them downNoPropose and write them as assumptions
- Turn qualities into numeric targetsLatency, availability, correctness, freshness
- State what is out of scopeOnboarding, reviews, recommendations, payroll
6 steps in order. Play them, or step through them one at a time.
7Follow-up questions
Which requirement here most changes the design if it turns out to be wrong?
Payment correctness and the consistency of order state. If the business actually allows a small rate of duplicated charges to be refunded later, the design can be much simpler; if instead it requires strict exactly-once order creation across payment, restaurant and courier, we need idempotency keys everywhere, a durable outbox for events and careful handling of unknown payment outcomes. The dinner peak is a close second: if it is ten times sharper than assumed, the order write path needs queueing and partitioning we would otherwise skip.
Should we ask about mobile versus web clients?
Briefly. It affects the API style and whether we need push notifications for status updates, but it rarely changes the core design, so one question is enough.
How many non-functional requirements should we write?
Four to six with numbers is plenty. More than that and we cannot design against all of them in the time; fewer and we usually forget correctness or freshness.
8Conclusion
In this answer, we turned an open prompt into requirements we can design against. We named the actors and agreed on two or three core flows, asked for the scale that drives caching and partitioning, wrote non-functional targets with numbers for latency, availability, payment correctness and freshness, put the rest out of scope, and recorded our own assumptions so the design can be checked against them later.
Open with
I would start with the actors: customers, restaurants and couriers. Then I would agree on the two or three flows to design, which I would suggest are placing and paying for an order, the restaurant accepting it, and the customer tracking it.
Then, if they want more
Next I ask about scale: daily users, orders per day and how sharp the dinner peak is, the number of cities and restaurants, and the read-to-write ratio.
If I am told to decide, I would say something like five million orders a day with thirty percent in a two-hour window, which is a few hundred orders a second at peak, while menu browsing is maybe fifty times heavier.
Then I write non-functional targets with numbers: order placement p99 under 500 milliseconds at peak, 99.95 percent availability for ordering, no lost or duplicated paid orders, status visible within about five seconds, and menus that can be a few minutes stale.
Those tell me menus can be cached heavily, status can flow through events, and payment needs idempotency and a durable order record. I would say out loud that onboarding, reviews, recommendations and courier payroll are out of scope today, and I write down every assumption I made, so I can check the design against them later.
The requirement that would change the design most if wrong is the payment and order correctness one.
About this answer
- Last updated
- 13 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the official documentation for the version you use. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "Which clarifying questions would you ask, which functional and non-functional...": https://scrivio-interview-library.netlify.app/architecture/sd-fundamentals/8fe3e88c1a/