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.

MediumTechnical
26 practiced

Design an operational plan and technical implementation to reshard a live sharded database with minimal downtime. Cover choosing the new shard key or shard count, the data-migration strategy (online migration, dual writes, change-data-capture), routing updates, throttling the migration, validation steps, and your rollback procedure.

EasyTechnical
29 practiced

Explain vertical scaling (scale up) versus horizontal scaling (scale out). List three advantages and three disadvantages of each. Then describe the concrete signals or thresholds (CPU, memory, disk, latency) you would monitor to decide that vertical scaling is no longer sufficient and horizontal scaling is needed for a service.

EasyTechnical
26 practiced

Walk through the core steps of capacity planning for a service that currently sees 20,000 requests per second and is expected to grow 4x over the next 12 months. What metrics would you collect, what forecasting approach would you use, and how would you build in safety buffers?

EasyTechnical
27 practiced

Describe stateless versus stateful service designs, and explain why statelessness enables easier horizontal scaling. Include strategies to externalize state (databases, caches, session stores), and discuss scenarios where a stateful service is genuinely necessary, for example leader election or long-lived sticky connections.

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.