<arch.design/>
← Lessons/

Caching & Redis

1 / 10

The problem: every read hits the database

🖥️Client 1
🖥️Client 2
🖥️Client 3
🖥️Client 4
🗄️Database
load 0%
latency 12ms
Without a cache, every request hits the database — load climbs and latency follows.

Your app is growing. Every page load fires queries at the database — and most of them ask for the same data, over and over.

  • Databases live on disk and parse every query — expensive by design
  • Under load, latency climbs from milliseconds to seconds
  • The kicker: the answer didn't change between requests — you paid full price to recompute the same result

Without a cache, every request hits the database — repeated identical queries waste resources and melt the DB under load.

← → navigate · S recap · L hands-on lab