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
28 practiced
Define a safe migration plan for applying schema changes across a sharded relational database with hundreds of shards and live traffic. Describe expand-contract patterns, rolling migrations, dual-write strategies, feature flags, online schema change tools, backfill and validation strategies, and rollback plans. Include automation and monitoring considerations.
HardTechnical
30 practiced
As the lead cloud architect, draft a high-level migration strategy to move a monolithic application to microservices to improve scalability and team autonomy. Include criteria for service boundaries, the strangler pattern, chosen scaling patterns (CQRS, async messaging, caching), CI/CD and observability requirements, SLOs, rollback plans, and how you will coach and mentor teams through the change.
EasyTechnical
33 practiced
Describe common load balancing algorithms (round-robin, least-connections, consistent hashing, IP-hash) and scenarios where each is appropriate. Explain the differences between L4 and L7 load balancing and operational implications for long-lived connections (WebSockets), sticky sessions, and connection draining during deployments.
HardSystem Design
29 practiced
Design a global rate-limiting service that enforces per-user quotas across regions while preserving fairness and low latency. Discuss exact counters versus approximate data structures (CRDTs, sketches), sliding-window vs token-bucket semantics, partitioning to avoid hot shards, and behavior under network partitions. Describe how you'd measure fairness and resilience to abuse.
HardSystem Design
33 practiced
Design an end-to-end, highly scalable architecture for a global social feed (timeline) service that supports 50M daily active users, high fan-out writes (some users have millions of followers), and low read latency. Explain data models, sharding, caching, fan-out strategies (push, pull, hybrid), real-time updates, ordering guarantees, backlog handling, and operational concerns like rebalancing and monitoring.

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.