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

Define edge caching and origin caching in plain terms for a cross-functional audience. For a photo-sharing app with 50 million daily active users and highly bursty traffic, which caching layers would you prioritize: CDN, regional caches, or application cache, and why? Briefly describe your invalidation strategy, how much staleness you'd accept, and the performance metrics you'd monitor.

MediumSystem Design
26 practiced

Your product currently serves 1 million monthly active users and sees 100,000 peak concurrent requests. You expect 10x growth over the next 12 months. Outline your capacity-planning approach: what telemetry you'd collect, how you'd model the growth, the kinds of architectural changes that would need to happen to support that scale, and your contingency plan if growth exceeds the forecast.

HardTechnical
35 practiced

A service has a stable median latency, but production telemetry shows periodic P99 spikes that are generating customer complaints. As the engineering manager, walk through the investigation you'd run: instrumentation, tracing, flamegraphs or profiling, traffic correlation, dependency analysis, and experiments. What temporary mitigations would you put in place to protect customers while you dig in, and roughly how long would you expect mitigation versus full resolution to take?

EasyTechnical
26 practiced

As an engineering manager evaluating a design, walk through the caching strategies available for a read-heavy public API: client-side, CDN/edge, reverse proxy, in-memory service cache, and DB-side caches. Then explain the invalidation strategies (TTL, write-through, write-back, cache-aside) and the eviction policies you'd expect to see paired with each.

EasyTechnical
53 practiced

As an engineering manager, describe a simple capacity-planning approach for a service expected to grow 3x in traffic over the next 12 months. What inputs would you gather, such as current QPS and P95 CPU/memory per instance? Walk through the key calculations for forecasting instance or shard counts, and how you'd turn that forecast into hiring, infrastructure, or autoscaling decisions.

Unlock Full Question Bank

Get access to all 6 Scalability Patterns and Techniques interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.