Management asks: "How many users can our platform handle?" How do you answer properly?
AdvancedScenarioScaling and performance
Answer
Situation read → "Users" is not a capacity unit. Translate it into request rate and resource usage, then measure.
What I'd do →
- Convert users to load: concurrent users × requests per user per minute, from analytics and access logs.
- Find the per-request cost of each tier (CPU per request, DB queries per request) from production metrics.
- Load test to find the first bottleneck and its limit at the SLO.
- Report as: "at current architecture we can serve N RPS at p99 < 300ms; that's about X concurrent users at today's behaviour. The DB primary is the first limit; next step costs Y."
- Add a capacity dashboard tracking headroom per tier so this answer stays current.
Why → A number with assumptions and the first bottleneck is useful; a single number is not.
Interview tip → Always name the first bottleneck and what it costs to move it.
More on Scaling and performance
Traffic is expected to 10x for a sale next week. How do you prepare the platform?IntermediateThe HPA is configured but pods don't scale even though the app is slow. Why?BeginnerPods are Pending during a traffic spike because the cluster is out of capacity. What do you do now and long term?IntermediateThe database CPU is at 95% and the API is timing out. What's your approach?Intermediate"Too many connections" errors from Postgres after scaling the app out. How do you fix it?IntermediateLatency is fine on average but p99 is terrible. Where do you look?Advanced