Interview Prep/Real-World Interview/Scaling and performance

Traffic is expected to 10x for a sale next week. How do you prepare the platform?

IntermediateScenarioScaling and performance
Answer

Situation read → You know it's coming, so this is capacity planning plus load testing, not firefighting.

What I'd do →

  1. Get a number: expected peak RPS, and which flows (browse, checkout) carry it.
  2. Load test the whole path at 1.5x the expected peak with k6 or Locust against a prod-like environment. Find the first bottleneck; it's usually the database, not the pods.
  3. Pre-scale: raise HPA minReplicas, raise node group minimums or Karpenter limits, and pre-warm anything that scales slowly (ALBs can be pre-warmed via AWS support, RDS read replicas take time to create).
  4. Check quotas: EC2 vCPU limits, Lambda concurrency, IP addresses in subnets, NAT gateway throughput.
  5. Freeze risky changes, prepare runbooks for degradation (disable recommendations, queue orders), and put the right people on call.

Why → Autoscaling reacts in minutes; a flash sale spikes in seconds. Pre-scaling covers the gap.

Interview tip → Mention service quotas and subnet IP exhaustion; most candidates forget them.

All Real-World Interview questions Roadmap: Interview readiness

More on Scaling and performance