Interview Prep/Real-World Interview/Scaling and performance

How would you load test a service before launch, and what do you report?

BeginnerScenarioScaling and performance
Answer

Situation read → A load test answers: at what throughput do we break, and what breaks first?

What I'd do →

  1. Define realistic scenarios from production traffic (the mix of endpoints, think time, payload sizes), not a single endpoint hammered.
  2. Run against a prod-like environment with prod-like data size, using k6:
k6 run --vus 200 --duration 15m checkout.js
  1. Ramp in stages and watch p95/p99, error rate, and saturation of each tier (pods, DB, cache, queue).
  2. Find the knee: the point where latency rises sharply. That is real capacity, not the point where errors start.
  3. Report: max sustainable RPS at the SLO, first bottleneck, cost per tier, and recommended pre-scale settings.

Why → Teams that test one endpoint at full speed get numbers that never match real traffic.

Interview tip → "Find the knee, not the crash" sounds senior and is correct.

All Real-World Interview questions Roadmap: Interview readiness

More on Scaling and performance