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
36 practiced
A system uses cache-aside caches at the app tier while reads come from asynchronous database replicas. Describe operational pitfalls like stale cache entries caused by replica reads, race conditions between cache invalidation and replica lag, and propose mitigations such as read routing, versioned reads, and ordering guarantees between write commit and cache updates.
MediumSystem Design
32 practiced
Design a caching topology for a read-heavy product catalog API serving 100k RPS globally with 10M products where 95% of requests are for the top 10% popular products. Describe cache layers (CDN, edge caches, application caches), cache keys and sharding, TTL strategies, eviction policies, cache invalidation for product updates, and approaches to prevent cache stampede on bursts.
MediumTechnical
33 practiced
For a social network user profile store with highly skewed user activity and several celebrity users generating hotspots, design a sharding strategy for horizontal partitioning. Compare hash-based, range-based, and directory-based sharding, explain the choice of shard key, and describe how you would handle hot users and rebalancing shards as user counts and activity patterns grow.
HardSystem Design
29 practiced
Design a global per-tenant rate limiting system for a multi-tenant API gateway that enforces quotas per tenant per minute and per month across geographic regions. Requirements include low enforcement latency, eventual consistency of counters, dynamic quota updates, and resilience to network partitions. Discuss algorithms, storage options, precision vs performance trade-offs, and techniques to handle clock skew.
MediumTechnical
28 practiced
Compare strong consistency and eventual consistency models in distributed systems. For each model list appropriate use cases, discuss how they affect latency and availability under network partitions, and explain techniques architects use to provide bounded staleness or read-your-writes guarantees on top of eventual systems.

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.