Two lists, always
Functional requirements describe behaviour: what a user or system can do. "Users can send a message to a group." "Drivers receive ride requests within 30 km."
Non-functional requirements describe qualities: how well the system must behave. "Messages are delivered within 1 s at p99." "No acknowledged payment is ever lost."
The functional list decides which components exist. The non-functional list decides how those components are built — replicated or not, cached or not, synchronous or not.
Functional requirements say "the car must seat five and have a boot". Non-functional requirements say "0–100 km/h in 8 seconds, 5-star crash rating, 18 km per litre". Same car shape, very different engineering.
Turning adjectives into numbers
Interviewers love vague words. Your job is to replace each one with a number or a crisp statement.
| Vague | Ask | Crisp version |
|---|---|---|
| "Fast" | Fast for whom, at which percentile? | Feed loads in < 200 ms p50, < 500 ms p99 |
| "Scalable" | How many users now and in 2 years? | 20M DAU today, 100M in 2 years |
| "Highly available" | How much downtime is acceptable? | 99.95% monthly (≈ 22 min/month) |
| "Consistent" | Who must see what, and when? | A user always sees their own posts; others within 5 s |
| "Reliable" | What must never be lost? | Zero loss of acknowledged orders; analytics may drop 0.1% |
| "Secure" | Which data is sensitive? Which regulations? | PII encrypted at rest; data for Indian users stays in India |
Why percentiles, not averages
Averages hide pain. If 99 requests take 10 ms and one takes 5 s, the average is ~60 ms and looks fine, while one in a hundred users is furious. p99 means "99% of requests are faster than this". For pages that make dozens of backend calls, a bad p99 on any one service shows up for almost every page load. This is called tail latency amplification.
SLI, SLO, SLA and error budgets
These four terms are often mixed up:
- SLI (indicator) — a measured number. "Fraction of checkout requests that succeed in < 1 s."
- SLO (objective) — the internal target for that SLI. "99.9% over 30 days."
- SLA (agreement) — a contract with customers, with penalties. Usually looser than the SLO so you have a safety margin.
- Error budget — 100% minus the SLO. With 99.9%, you may "spend" 0.1% of requests (≈ 43 minutes of full downtime per month) on failures, risky deploys and experiments.
Error budgets turn reliability arguments into arithmetic. If the budget is healthy, ship faster. If it's exhausted, freeze risky launches and fix reliability. Product and engineering stop arguing about feelings.
| Availability | Downtime per year | Per month | Typical for |
|---|---|---|---|
| 99% | 3.65 days | 7.3 hours | Internal tools |
| 99.9% | 8.8 hours | 43.8 minutes | Most B2C apps |
| 99.95% | 4.4 hours | 21.9 minutes | Commerce, SaaS |
| 99.99% | 52.6 minutes | 4.4 minutes | Payments, core infra |
| 99.999% | 5.3 minutes | 26 seconds | Telecom, very few systems honestly |