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

You're investigating data corruption in an order service that turns out to be caused by cache-invalidation races: concurrent writes and cache updates left stale or missing order state. Walk through the likely race conditions behind this, propose a fix, and explain how you'd roll it out safely without risking a repeat of the corruption.

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?

HardTechnical
34 practiced

You need to scale a write-heavy service while keeping reads low-latency. Propose a design that combines caching, read replicas, and CQRS. Walk through the data flow, how you'd keep the read models eventually consistent, how you'd handle write conflicts, and how you'd monitor divergence between the write store and the read store.

HardTechnical
36 practiced

A cost-conscious SaaS customer has highly spiky traffic, roughly a 10x daily swing. How would you pick instance types and an autoscaling policy that keeps P95 latency on target while minimizing cost? Discuss reserved versus spot instances, burstable instances, predictive versus reactive scaling, and container versus VM-based scaling.

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.