Md Tarek — Portfolio© 2026

Full-stack Developer

System Design — built to hold up.

dhaka → remote, worldwide

Loading experience

Md TarekTarek
System Design

Caching Layers: Browser, CDN, Server, Database

By: Md Tarek · 10 Oct 2026

Every cache answers the same question: how stale can this answer be before someone gets hurt?

The layers, fastest first

  • Browser cache — free, per user, hard to invalidate
  • CDN edge — shared, needs purge or short TTL
  • Server memory / Redis — shared, controllable
  • Database — the truth, the slowest

My rule

Cache aggressively at the layer you can invalidate. If you cannot invalidate it, give it a short life and a versioned key.