InterviewStack.io LogoInterviewStack.io

Scalability Patterns and Techniques Questions

Practical scaling techniques and patterns for application and data layers. Topics include horizontal and vertical scaling strategies and the trade offs of each; caching topologies and strategies such as cache aside write through and write behind and approaches to cache invalidation and consistency; database scaling techniques including read replicas partitioning and sharding and rebalancing strategies; load balancing algorithms including round robin least connections consistent hashing and strategies for sticky sessions and service discovery; message queue and event streaming patterns for decoupling backpressure and asynchronous processing; content distribution using content delivery networks; connection pooling and resource management; rate limiting throttling retry strategies and approaches to avoid thundering herd problems; and how to combine patterns effectively given workload characteristics and operational constraints. Interviewers expect candidates to explain interactions between patterns and the operational pitfalls of each technique.

MediumTechnical
24 practiced
During a deployment, a popular API endpoint experiences a thundering herd when caches are invalidated and many clients re-request the resource simultaneously. List mitigation techniques (including request coalescing, randomized TTLs, cache pre-warming, locks, and graceful degradation) and explain operational trade-offs for each approach.
EasyTechnical
52 practiced
What is consistent hashing and why is it useful for distributed caches and sharded storage systems? Explain the basic algorithm, how virtual nodes help, and what happens to key distribution when nodes are added or removed.
EasyTechnical
33 practiced
Compare message queues and event streams (e.g., RabbitMQ vs Kafka) for decoupling microservices. Discuss delivery semantics, ordering, retention, consumer scaling, and appropriate use cases such as task queues, pub/sub for notifications, and long-term event storage.
MediumTechnical
26 practiced
You operate a service with strong diurnal traffic and occasional unpredictable spikes. How would you size and configure autoscaling policies for stateless frontends and stateful backends? Discuss metrics (CPU, latency, queue depth), cooldowns, predictive scaling (using historical data), and safety limits to avoid oscillation.
MediumTechnical
33 practiced
Compare write-behind and write-through caches with respect to data durability, failure recovery, and operational observability. For a payment processing workflow, which would you choose and how would you mitigate the main risks?

Unlock Full Question Bank

Get access to hundreds of Scalability Patterns and Techniques interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.