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
44 practiced
Design an idempotent event-processing pipeline for at-least-once delivery (e.g., consuming from Kafka) at high throughput. Describe deduplication strategies (idempotency keys, compacted store, bloom filters), storage and TTL for dedupe state, handling of large state growth, and how to maintain throughput and correctness.
HardTechnical
34 practiced
Compare consistent hashing and range-based partitioning for a large-scale datastore where complex queries and joins across ranges are common. Explain pros/cons for query locality, rebalancing, and ease of scaling. Propose a hybrid partitioning approach that supports complex queries without creating hotspots.
EasyTechnical
28 practiced
Differentiate between message queues and event streaming platforms. For each describe durability, retention, ordering guarantees, consumer models (competing consumers vs pub/sub), and typical use-cases (task queues, audit logs, change data capture). Give one example where streaming is a better fit than a simple queue.
HardTechnical
27 practiced
Design a mitigation strategy for a thundering herd caused by mass cache invalidation during a flash sale where millions of product keys are invalidated simultaneously. Include cache architecture, warming, staggered expiry, request coalescing, and traffic shaping. Provide a step-by-step operational runbook to enact before the sale.
HardSystem Design
36 practiced
Design an end-to-end image upload and processing pipeline that must serve millions of uploads per day with thumbnails and multiple sizes, low latency for end users, and cost constraints. Include ingress, storage (object store), processing (sync/async choices), CDN usage, queues and worker autoscaling, cache strategies, invalidation, and security considerations.

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.