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.

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.

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

You need to vertically scale a production stateful database (increase CPU and memory on the primary instance) while minimizing downtime and preserving data consistency. Walk through the runbook you would execute: pre-checks, rolling steps, fallback options, and monitoring to verify success. Assume cloud-managed instances and the ability to create a temporary read replica to help with the cutover.

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?

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.