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.

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?

MediumTechnical
26 practiced

Design an operational plan and technical implementation to reshard a live sharded database with minimal downtime. Cover choosing the new shard key or shard count, the data-migration strategy (online migration, dual writes, change-data-capture), routing updates, throttling the migration, validation steps, and your rollback procedure.

EasyTechnical
25 practiced

You need to vertically scale a production stateful database (increase CPU and memory on the primary instance) while minimizing downtime and preserving data consistency. Walk through the runbook you would execute: pre-checks, rolling steps, fallback options, and monitoring to verify success. Assume cloud-managed instances and the ability to create a temporary read replica to help with the cutover.

EasyTechnical
28 practiced

Define cache hit ratio, cache miss, and cache warmup. For a typical web service considering an application cache (memcached or Redis), when would you decide it's worth adding one, what hit ratio would justify the cost, and what are three practical ways to improve an existing cache's effectiveness?

HardTechnical
49 practiced

You're architecting an ingestion endpoint that accepts 500,000 events per second and performs near-real-time enrichment before storing the results. Setting storage internals aside, what application-layer bottlenecks would you expect (network, thread pools, parsing/enrichment CPU, coordination), and how would you mitigate them?

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.