InterviewStack.io LogoInterviewStack.io

Scalability Patterns and Techniques Questions

Scaling a system to handle growth in traffic and data: horizontal versus vertical scaling, statelessness, sharding and partitioning strategies, read replicas, and connection pooling. Covers capacity estimation, identifying bottlenecks, and the tradeoffs each scaling axis introduces. The general toolkit for taking a design from thousands to millions of users.

HardTechnical
27 practiced

A single incoming request fans out to 50 parallel downstream calls. Each downstream call has a P95 latency of about 100ms, and the downstream system caps out at 1,000 RPS. If your service needs to handle 200 incoming RPS, is the downstream a bottleneck? Show your calculations, then propose architectural changes such as batching, caching, or queueing to reduce the downstream load, and explain the trade-offs.

MediumTechnical
29 practiced

You need to shard a user-profile service that is projected to grow from 10 million to 1 billion users. Walk through your shard-key selection criteria, the migration approach from a single shard to many, and how you would rebalance shards with minimal downtime. Compare the trade-offs of consistent-hashing and range-based sharding for this workload.

MediumTechnical
51 practiced

You have 20 application servers, each rated at 1,000 RPS capacity. Observed P95 load across the fleet is 12,000 RPS. Calculate the current headroom percentage, and compute how many additional instances you'd need to reach a target of 40% headroom. Show your steps and assumptions.

HardTechnical
31 practiced

A critical stateless service must scale to 1M RPS. Focusing on the application/service layer rather than database optimization, what bottlenecks would you expect from the network, thread model, connection handling, TLS termination, serialization, and GC pauses? For each, describe a mitigation and how you'd profile the service to quantify its impact.

HardTechnical
24 practiced

During a large traffic spike, your cloud autoscaler hit a quota limit and the service breached its SLOs. As the incident commander, what immediate mitigations would you take (manual scaling, throttling), how would you communicate with your cloud provider and stakeholders, and what medium-term fixes (quota monitoring, predictive scaling) would you put in place? How would you update runbooks and alerts to prevent a repeat?

Unlock Full Question Bank

Get access to all Scalability Patterns and Techniques interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.