System Design Patterns
Explore ten practical distributed-system patterns and their trade-offs through two scenarios each.
Levels indicate concept complexity and prerequisites, not learner progress.
Beginner
- How Services Work Together — Learn the basic language of requests, capacity, and failure.
- Load Balancing — Distribute requests across healthy service instances.
- Caching and Freshness — Reuse a nearby copy while making its freshness limits explicit.
Intermediate
- Database Replication — Copy database changes to replicas while accounting for lag and failover.
- Message Queues — Hand work to background consumers without assuming exactly-once effects.
- Publish and Subscribe — Distribute an event to interested consumers with independent delivery needs.
- API Gateway — Route client requests through a shared entry point with clear boundaries.
- Rate Limiting — Bound request rates using explicit identities, windows, and policies.
Advanced
- Database Sharding — Partition data across databases and examine routing and cross-shard costs.
- Circuit Breaker — Stop repeated calls to a failing dependency and cautiously test recovery.
- Retry with Backoff — Retry transient failures carefully with bounded delays and safe effects.
Expert
- Combining System Design Patterns — Evaluate a complete request path using consistency, failure, and recovery trade-offs.
