Handle traffic spikes and estimate server capacity

Quick Overview

This question evaluates a candidate's competency in performance troubleshooting, capacity planning, and scalable system architecture, focusing on diagnosing overload causes and quantifying infrastructure needs.

Handle traffic spikes and estimate server capacity

Company: Headway

Role: Software Engineer

Category: System Design

Difficulty: medium

Interview Round: Technical Screen

## Scenario You are designing and operating a backend service that receives API requests from clients. Recently, the service becomes slow or times out when request volume spikes. ## Questions 1. **Too many requests cause the server to slow down. What would you do to diagnose and mitigate the issue?** - Assume you can change both infrastructure and application code. - Discuss both immediate mitigations and longer-term architectural changes. 2. **Given a set of assumptions (users, request rates, data volume), how would you estimate required server capacity?** - Explain what inputs you need (traffic, latency/SLO, CPU/memory per request, storage growth, peak-to-average factor, etc.). - Provide a method to translate those assumptions into numbers of instances, database capacity, and network/storage needs.

Overview: This question evaluates a candidate's competency in performance troubleshooting, capacity planning, and scalable system architecture, focusing on diagnosing overload causes and quantifying infrastructure needs.

|Home/System Design/Headway
Headway logo
Headway
Feb 11, 2026
mediumSoftware EngineerTechnical ScreenSystem Design
14
0

Scenario

You are designing and operating a backend service that receives API requests from clients. Recently, the service becomes slow or times out when request volume spikes.

Questions

  1. Too many requests cause the server to slow down. What would you do to diagnose and mitigate the issue?
    • Assume you can change both infrastructure and application code.
    • Discuss both immediate mitigations and longer-term architectural changes.
  2. Given a set of assumptions (users, request rates, data volume), how would you estimate required server capacity?
    • Explain what inputs you need (traffic, latency/SLO, CPU/memory per request, storage growth, peak-to-average factor, etc.).
    • Provide a method to translate those assumptions into numbers of instances, database capacity, and network/storage needs.

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...