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
- The problem
- The simple version
- How cache-aside works
- Check your understanding