DB'nin önüne bir cache-aside layer'ı (Redis/Memcached) koyun, böylece okumalar belleğe çarpsın, girdilere bir TTL verin ve yazmada invalidate edin, stampede protection ekleyin, böylece soğuk bir key DB üzerinde thundering herd salamasın ve hot key'leri replica'lara yayın, böylece popüler bir key tek bir node'u eritmesin.
┌── hit ──▶ return value
request ──▶ cache│
└── miss ─▶ lock ─▶ DB read ─▶ set(TTL) ─▶ return
│
(only ONE miss populates; others wait)
DB writes ──▶ invalidate/update key
