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
34 practiced

For a system that must support high write throughput, heavy reads, and analytical queries all at once, how would you choose between replication, partitioning (sharding), and CQRS? Discuss read/write separation, the latency and consistency trade-offs, isolating the analytical workload, and the operational complexity each approach adds.

HardTechnical
36 practiced

Explain the basic queueing-theory concepts behind capacity planning: arrival rate, service rate, utilization, and the M/M/1 queue. Walk through a simple numeric example showing how a small increase in utilization can produce a disproportionate increase in average latency.

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.

HardTechnical
51 practiced

As the lead backend engineer, you must choose between three short-term options to cut P95 latency by 30% within a fixed budget: a vertical database upgrade, adding read replicas, or introducing a caching layer. What metrics and profiling steps would you use to evaluate each option? Describe your experimental rollout (A/B or canary), rollback plan, and the long-term maintainability implications of each choice.

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.