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.

EasyTechnical
24 practiced

Explain backpressure in a distributed system and why it matters for reliability. What mechanisms would you use to implement it between services, such as request quotas, flow control in a messaging system, or reactive streams, and how do they prevent cascading failure?

HardTechnical
32 practiced

At scale, a centralized lock can become a bottleneck for high-throughput, write-heavy workloads. What architectural alternatives would you reach for instead? Discuss optimistic concurrency, partitioned ownership, sequence-based approaches, and application-level conflict resolution, and explain how each preserves correctness without a central lock.

HardTechnical
52 practiced

For a read-heavy product catalog service, weigh the trade-offs between replicating a full cache to every region versus partitioning (sharding) cache entries by product or region. Consider read latency, cache-miss patterns, memory and network cost, consistency, and rebalancing complexity, then recommend an approach for a global retailer that sees traffic bursts from multiple regions.

MediumTechnical
34 practiced

A product has 200,000 monthly active users growing 10% month over month. Show how you'd project traffic over the next 12 months and calculate when capacity, measured in RPS, will double. How would a seasonal spike (say, +50% in November) and a marketing campaign that doubles traffic for two weeks change your planning?

HardTechnical
32 practiced

A user request traverses six microservices. How would you measure and attribute its P95/P99 tail latency, and what would you do to reduce it? Cover your instrumentation and sampling/tracing strategy, how you'd detect a spike, and mitigation techniques such as hedged requests, request prioritization, resource partitioning, and admission control.

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.