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

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.

EasyTechnical
36 practiced

Why does connection pooling matter for a service running at scale? Describe best practices for managing both database and HTTP connection pools: pool size, max open connections, idle timeouts, connection lifetime, and behavior under a spike in load. How would you test and tune these settings before production?

MediumSystem Design
24 practiced

An OLTP application is running at 20,000 requests per second and beginning to suffer from write contention. Propose a database-scaling roadmap: a short-term move (read replicas), a medium-term move (partitioning strategies), and a long-term move (sharding). Describe your rebalancing approach, migration steps, and how you'd maintain consistency and monitor progress along the way.

EasyTechnical
34 practiced

Describe the cache-aside, read-through, write-through, and write-behind cache topologies, and when you'd reach for each. For every topology, explain the read/write flow and the latency and consistency trade-offs, and give a concrete example use case such as session storage, a product catalog, or a leaderboard.

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.