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

Your relational database allows a maximum of 500 concurrent connections. Your application runs on 25 identical JVM instances plus 3 background job workers. Walk through how you'd compute a safe default connection-pool size per instance, the factors you'd weigh, and your recommended pool size. What would you monitor, and what would you do if you saw connection saturation in production?

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.

EasyTechnical
25 practiced

When should you reach for asynchronous processing in a cloud architecture? Give examples of tasks that belong on a queue, the benefits and trade-offs (latency, throughput, complexity), and how you'd choose between a simple message queue, a pub/sub system, and a streaming platform for different workloads.

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.

HardTechnical
32 practiced

A user request traverses six microservices. How would you measure and attribute its P95/P99 tail latency, and what would you do to reduce it? Cover your instrumentation and sampling/tracing strategy, how you'd detect a spike, and mitigation techniques such as hedged requests, request prioritization, resource partitioning, and admission control.

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.