Load balancing
Distribute requests across service instances. Consider health checks, routing policy, connection limits, and the risk of sending traffic to overloaded nodes.
A practical guide to distributed systems
Learn how common components work, when they help, and which trade-offs they introduce. A good system design starts with requirements—not with a predetermined list of technologies.
Distribute requests across service instances. Consider health checks, routing policy, connection limits, and the risk of sending traffic to overloaded nodes.
Keep frequently requested data closer to the caller to reduce latency and backend load. Plan for expiration, invalidation, hot keys, and stale values.
Maintain copies of data or services for availability and read capacity. Understand replication lag, failover, and which copy accepts writes.
Split data across machines when one node cannot meet storage or throughput needs. Choose keys carefully and account for skew and rebalancing.
Decouple producers from consumers and absorb bursts. Define delivery semantics, retry behavior, ordering needs, and how to handle poison messages.
Assume dependencies can be slow or unavailable. Use timeouts, bounded retries, backpressure, redundancy, and observable recovery paths.
Every design choice moves costs somewhere. Synchronous calls can simplify a workflow but couple availability. Asynchronous queues improve burst handling but introduce lag and operational complexity. Replicas increase read capacity but can expose stale data. Caches reduce repeated work but require a plan for invalidation.
Use workload estimates to decide which trade-offs matter. A system serving a few requests per second has different constraints from one handling a sharp global traffic spike.
When you are ready, choose from the system design interview question bank and apply these ideas in hands-on architecture practice.