Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
A support copilot drafts replies for human agents. It handles 1,296,000 tickets per month (treat a month as 30 days) and makes exactly 2 LLM calls per ticket. Traffic peaks at 10x the average during business hours. Estimate (a) the average LLM calls per second and (b) the peak QPS you should capacity-plan for.
1,296,000 tickets times 2 calls is 2,592,000 calls; a 30 day month is 2,592,000 seconds, so the average is exactly 1 call per second, and the 10x peak factor makes 10 QPS the planning number.
A bakery brags that it sells two and a half million buns a month. Sounds enormous, until you notice a month has about two and a half million seconds. The bakery sells one bun per second. One oven could nearly keep up. But customers do not arrive evenly. At lunch rush, ten people line up every second, and at 3 a.m. nobody comes. If the bakery built its kitchen for the average, the lunch line would stretch around the block every single day. So the rule is: divide the big monthly number into a per-second number to see how small it really is, then size the kitchen for the rush, not for the quiet average.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
5 min: rehearse the seconds-in-a-month constant, redo the division, then practice the follow-on conversion from peak QPS to tokens per second against a real rate card.
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Dividing tickets instead of calls, or capacity planning on the average. The system must survive business-hour peaks, so the 10x peak number is the one you provision for.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.