Chapter 49
Universal Patterns
Hot Path vs Cold Path
Separate real-time serving (hot) from analytics/archival (cold). Hot path uses fast in-memory stores. Cold path uses batch processing and cheap storage.
Circuit Breaker Pattern
When a downstream service is failing, stop calling it (open the circuit). Periodically test with a single request. If it succeeds, close the circuit and resume. This prevents cascading failures.
