Given a TPM rate limit, how do you compute supportable concurrent users for a feature?
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Explain how to convert a tokens-per-minute (TPM) rate limit into supportable steady-state concurrent users for a feature. State the formula and discuss what knobs change the answer.
Divide TPM by tokens per request for a sustainable request rate, then apply Little's law (concurrency equals arrival rate times response duration) to get supportable concurrent users.
Imagine a kitchen allowed to use only 200 ingredients per minute, total. Each dish needs about 5 ingredients, so the kitchen can start 40 dishes a minute. But a dish also sits on the counter while it finishes cooking. If each one takes 10 seconds to plate, several dishes are always mid-cook at any instant. Count how many are simultaneously in progress and that is how many customers you serve at once. Two things help. Smaller dishes use fewer ingredients each. Faster cooking frees the counter sooner. Smaller dishes win twice, because they use fewer ingredients AND finish sooner, so even more customers can be served at the same moment.
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.
4 min: TPM to requests per minute, then Little's law to concurrency, a worked example, the output-length double lever, RPM as a separate ceiling, and tail-aware planning.
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.
Reporting requests per minute as the concurrent-user count. Throughput is a rate; concurrency is a level. You must multiply the rate by response duration via Little's law to bridge them.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.