Cianplan

Level 2: Data · L2.6 Caching strategies

Where caches live: client, CDN, app, database

Place caches in layers and reason about Redis as a platform.

10 min · Pro

What you take away

  • The same value can be cached at six layers, and each one you add removes load from everything behind it.

And 3 more inside the class, in Pro.

How the class is laid out

  1. The problem
  2. The simple version
  3. The layers
  4. Redis is not only a cache
  5. Cache-aside
  6. Hit ratio
  7. Write strategies
  8. Invalidation
  9. Failure modes
  10. Layers
  11. Check your understanding