Cianplan

Level 2: Data · L2.6 Caching strategies

What a cache is, and the cache-aside pattern

Explain cache-aside reads and writes and its main risk.

12 min · Pro

What you take away

  • A cache keeps a copy of frequently read data in fast memory close to the app, so most reads skip the slow database.

And 3 more inside the class, in Pro.

How the class is laid out

  1. The problem
  2. The simple version
  3. How cache-aside works
  4. Check your understanding