Reading preferences

All modules

Available

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

  1. How Services Work Together — Learn the basic language of requests, capacity, and failure.
  2. Load Balancing — Distribute requests across healthy service instances.
  3. Caching and Freshness — Reuse a nearby copy while making its freshness limits explicit.

Intermediate

  1. Database Replication — Copy database changes to replicas while accounting for lag and failover.
  2. Message Queues — Hand work to background consumers without assuming exactly-once effects.
  3. Publish and Subscribe — Distribute an event to interested consumers with independent delivery needs.
  4. API Gateway — Route client requests through a shared entry point with clear boundaries.
  5. Rate Limiting — Bound request rates using explicit identities, windows, and policies.

Advanced

  1. Database Sharding — Partition data across databases and examine routing and cross-shard costs.
  2. Circuit Breaker — Stop repeated calls to a failing dependency and cautiously test recovery.
  3. Retry with Backoff — Retry transient failures carefully with bounded delays and safe effects.

Expert

  1. Combining System Design Patterns — Evaluate a complete request path using consistency, failure, and recovery trade-offs.