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

A product has 200,000 monthly active users growing 10% month over month. Show how you'd project traffic over the next 12 months and calculate when capacity, measured in RPS, will double. How would a seasonal spike (say, +50% in November) and a marketing campaign that doubles traffic for two weeks change your planning?

EasyTechnical
28 practiced

Define cache hit ratio, cache miss, and cache warmup. For a typical web service considering an application cache (memcached or Redis), when would you decide it's worth adding one, what hit ratio would justify the cost, and what are three practical ways to improve an existing cache's effectiveness?

MediumTechnical
31 practiced

Explain the session-management options available once you're operating at scale: sticky sessions (session affinity at the load balancer) versus externalizing session state to a shared store such as Redis or DynamoDB. Discuss the trade-offs around failover, consistency, latency, throughput, session size, security, and operational cost in a multi-region deployment.

MediumTechnical
44 practiced

Design connection-pool management for a microservice that serves 500 concurrent request handlers and makes both database and upstream HTTP calls. How would you size the DB connection pool versus the HTTP client pool, choose timeouts and max lifetimes, integrate with circuit breakers, and test pool behavior under a simulated production spike?

MediumSystem Design
26 practiced

Design sharding for a real-time pub/sub service that has a very large number of channels. Compare client-side sharding, where clients pick their partition, against server-side partitioning, where the broker assigns it. Discuss rebalancing cost, fairness, latency, and client churn from mobile users with intermittent connectivity, and recommend an approach for a client base that is mostly mobile and frequently offline.

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.