Cache Me Outside - Caching Methodologies & Architectures
summary
Compares concrete caching approaches with demos and code: Cloudflare and Varnish hide errors unless purged programmatically, Azure CDN caches by default (Azure CDN default 7 days), output/donut/donut‑hole HTML caching helps but can hide deeper bottlenecks, method-level caching mutates business logic, and DI cached proxies allow swapping implementations and prefix-based invalidation. Shows Redis tradeoffs including cost and SLA (Redis 120 GB $9,000/mo), a nightmare multi‑layer system with 26h10m end-to-end cache, and argues profiling/SQL fixes or pre-indexing (Azure Search/Elasticsearch) before adding cache.
AI-written summary · about
chapters (21)
- 0:00Intro
- 0:32What is wrong with this code
- 6:14When to Cache
- 10:16Problems with External Cache
- 13:00Fastly
- 14:09Turning off Cash
- 18:12Close to the problem
- 19:48No longer single responsibility
- 20:20Melted cheese
- 21:05Decouple
- 24:23Drawbacks
- 26:45Data Corruption
- 27:36Redis
- 29:07Multilayered solution
- 33:00Potential downtime
- 33:25Multilayered solutions
- 34:14Browser caching
- 36:59Redux caching
- 38:25Caching on the browser
- 39:17Recap
- 40:25Recommendations








