MicrolearnENPTES

Caching

Lesson 7 of 40 · Sys.Micro

Keep hot answers close and cheap, and decide when they go stale.

The home page shows today’s top 10 articles. Every visitor triggers the same 40 ms query. The database is at 85% CPU computing an answer that barely changes.

Cache-aside: check cache, fall back to the database

Hit rate and why it dominates everything

Check yourself

After an update, users keep seeing the old value for hours. What is the most direct fix in a cache-aside setup?

Do it in the browser: a real system design tool, a short mission and instant feedback. No install.

Start this lesson — free
← Stateless servicesContent delivery →

All lessons · Sys.Micro