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
32 practiced

A user request traverses six microservices. How would you measure and attribute its P95/P99 tail latency, and what would you do to reduce it? Cover your instrumentation and sampling/tracing strategy, how you'd detect a spike, and mitigation techniques such as hedged requests, request prioritization, resource partitioning, and admission control.

MediumTechnical
30 practiced

Compare range-based, hash-based, and directory-based sharding strategies for partitioning write-heavy user data. Discuss the pros and cons of each in terms of hotspot formation, rebalancing complexity when adding nodes, support for range queries, and impact on secondary indexes and transactions.

HardTechnical
32 practiced

At scale, a centralized lock can become a bottleneck for high-throughput, write-heavy workloads. What architectural alternatives would you reach for instead? Discuss optimistic concurrency, partitioned ownership, sequence-based approaches, and application-level conflict resolution, and explain how each preserves correctness without a central lock.

MediumTechnical
25 practiced

You need to decompose a monolithic application into microservices. Walk through a pragmatic approach: how you'd identify service boundaries, ensure data integrity during the migration, avoid distributed-transaction anti-patterns, and choose between orchestration and choreography. When would you reach for the strangler fig pattern?

HardSystem Design
35 practiced

Design a backpressure strategy for a multi-stage processing pipeline: ingest, enrich, transform, store. What sensors would you monitor (queue depths, processing latency), what thresholds would trigger backpressure, how would pressure be communicated between stages, and how would you gracefully shed load or degrade when a downstream stage is overloaded?

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.