Boss lesson · Unit 03
Plan the capacity
From requests per second to a fleet that survives its peak
What you practise
- From requests per second and tokens per request to tokens per second, replicas, p50 against p99 latency, headroom, autoscaling and cold starts
Try a question from this lesson
Pick one
A support assistant gets 20 requests per second at peak. A typical request has a 1,500-token prompt and a 300-token answer. What decode demand must the fleet meet?
Correct answer
6,000 output tokens per second
Why
20 requests × 300 answer tokens is 6,000 output tokens per second. Decode is the slow, sequential phase, so output tokens are the number to plan around. Prompts matter too, but mostly for time to first token and memory.
The idea
Concept cards are short on purpose. In the app they appear between questions, after you have met the idea.
Concept
Headroom
A server running at 100% has no slack. Any burst becomes a queue, and a queue only drains when traffic falls below capacity again.
So plan for the peak, not the average, and aim to run each replica well below its limit, for example at 70%. The spare 30% is what absorbs surprises.
11 more exercises in the app
- 4× type the answer
- 3× multiple choice
- 1× true or false
- 1× fill the blanks
- 1× match the pairs
- 1× order the lines
Bitpath is an iOS app in development. Join the waitlist and you get one email when it is ready to try.