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
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.

EasyTechnical
36 practiced

Describe a practical approach to capacity planning for a brand-new cloud service that has no historical traffic data. How would you make an initial workload estimate, decide on safety margins and headroom, plan for elastic capacity, and define the metrics and experiments you'd run to validate your assumptions after launch?

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.

EasyTechnical
31 practiced

Explain the difference between horizontal partitioning (sharding) and vertical partitioning for scaling a dataset. What criteria would you use to choose a shard key, how would you plan and execute a resharding or rehashing operation in a cloud environment, and what operational challenges (rebalancing, hotspots, migration windows) should you anticipate?

MediumTechnical
44 practiced

Design connection-pool management for a microservice that serves 500 concurrent request handlers and makes both database and upstream HTTP calls. How would you size the DB connection pool versus the HTTP client pool, choose timeouts and max lifetimes, integrate with circuit breakers, and test pool behavior under a simulated production spike?

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.