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.

HardTechnical
29 practiced
Design strategies to avoid the thundering herd problem when many clients request the same expired cache key simultaneously. Evaluate techniques such as request coalescing (singleflight), distributed locks, grace caches (serve stale while revalidating), randomized TTLs, and queuing/coordinator patterns, and discuss trade-offs in latency and system complexity.
EasyTechnical
28 practiced
Describe the token bucket and leaky bucket algorithms for rate limiting. For an API that must allow bursts up to 200 requests and an average rate of 100 requests/sec per user, which model fits best and why? Explain how you'd instrument and test fairness across many clients.
EasyTechnical
24 practiced
Explain eventual consistency in distributed systems. Provide concrete examples where eventual consistency is acceptable (e.g., social feeds) and where it is not (e.g., financial transfers). How would you design conflict resolution and user-visible compensating actions in eventually-consistent systems?
MediumTechnical
44 practiced
Design connection pool management for a microservice that needs to serve 500 concurrent request handlers and makes DB and upstream HTTP calls. Describe how to size DB connection pools and HTTP client pools, choose timeouts and max lifetimes, integrate with circuit breakers, and test pool behavior under simulated production spikes.
HardSystem Design
31 practiced
Design a hybrid caching strategy for a social feed system using browser/CDN edges, per-service local in-memory caches, and a distributed cache (e.g., Redis cluster). Address feed fan-out on writes, cache invalidation when posts/comments arrive, freshness guarantees, reducing cold-starts, and handling hot keys and sudden popularity spikes.

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.