InterviewStack.io LogoInterviewStack.io

Scalability Patterns and Techniques Questions

Scaling a system to handle growth in traffic and data: horizontal versus vertical scaling, statelessness, sharding and partitioning strategies, read replicas, and connection pooling. Covers capacity estimation, identifying bottlenecks, and the tradeoffs each scaling axis introduces. The general toolkit for taking a design from thousands to millions of users.

HardTechnical
26 practiced

Evaluate the multi-tenant database-partitioning strategies available to a SaaS product: a shared schema for all tenants, a separate schema per tenant, and a fully isolated database per tenant. Discuss tenant isolation, operational overhead, migration complexity, mitigating a hot tenant, and how each approach affects backup/restore and compliance obligations.

MediumSystem Design
35 practiced

Design a caching layer for a product-details API that must sustain 10,000 requests per second with a P95 latency target of 50ms. Cover your cache topology (edge CDN, application-level, distributed cache), eviction policy, TTL strategy, how you'd guard against cache stampede, cold-start handling, and the instrumentation you'd add to measure effectiveness.

HardTechnical
52 practiced

For a read-heavy product catalog service, weigh the trade-offs between replicating a full cache to every region versus partitioning (sharding) cache entries by product or region. Consider read latency, cache-miss patterns, memory and network cost, consistency, and rebalancing complexity, then recommend an approach for a global retailer that sees traffic bursts from multiple regions.

EasyTechnical
31 practiced

Explain how a CDN works and when you'd reach for one in a global application. Cover edge caching, cache-control headers, TTL strategy, surrogate keys, origin failover, cache invalidation, and how you'd handle dynamic versus static content (signed URLs, edge logic). What are the cost and operational trade-offs?

HardTechnical
36 practiced

A cost-conscious SaaS customer has highly spiky traffic, roughly a 10x daily swing. How would you pick instance types and an autoscaling policy that keeps P95 latency on target while minimizing cost? Discuss reserved versus spot instances, burstable instances, predictive versus reactive scaling, and container versus VM-based scaling.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.