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.
- A user pastes a long link and gets a short link back.
- Opening a short link sends the visitor to the long page.
- 99% of redirects finish within 100 ms.
- Short links keep working 99.9% of the time.
- A saved link is never lost, even if a server dies.
- 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, (The time within which 99 out of 100 requests finish. The slowest 1% take longer.)
100 ms
99 in 100 finish within this
Controls
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.