Area 1.2 · 7 Lessons · ~52 min reading
Distributed Systems & Reliability
Caching, DB scaling, idempotency, SLOs & strangler-fig.
0 of 7 lessons completed
- 1Caching & Multi-Tier Invalidation PatternsProtect relational databases from latency spikes and thundering-herd outages using tenant-prefixed cache-aside, random TTL jitter, singleflight request coalescing, and early refresh.8 min read
- 2Zero-Downtime Database MigrationsChange a live schema in small, reversible steps: expand, migrate, then contract.8 min readUpdated 6 Dec 2026Case study
- 3Consistency, Idempotency Keys & the Transactional Outbox PatternEliminate duplicate writes and lost domain events under network retries using transactional idempotency keys, the Postgres outbox pattern, and orchestrated sagas.9 min read
- 4Setting SLOs and Error BudgetsPick what to measure, set a target the business will fund, and decide what to fix when you miss.7 min readUpdated 6 Dec 2026Case study
- 5Cloud FinOps and Unit Economics: Cost-Per-Tenant Modeling and LLM Token RoutingTurn cloud and AI bills into architectural unit metrics, cut non-production and log storage waste, and route LLM traffic by task complexity.7 min read
- 6Legacy Modernization With the Strangler-Fig Pattern and Shadow TrafficReplace high-pain legacy monolith workflows incrementally using routing facades, async shadow-traffic parity checks, and reversible canary cutovers.7 min read
- 7Event-Driven Architecture and Async Messaging: Partitioning, Backpressure, and DLQsDesign resilient Kafka and SQS pipelines that absorb traffic spikes, prevent noisy-neighbor starvation, handle poison pills safely, and preserve schema compatibility.6 min read