Cache-Aside Read Flow on Cache Miss
UML Sequence Diagrams · made in Skemio

What it shows
- The application queries cache directly; the cache never queries the DB.
- On a miss, the application loads from PostgreSQL and backfills Redis.
- Always set TTLs during backfill to avoid stale records in the cache layer.
The takeaway
Cache-aside keeps storage and caching decoupled by making application code orchestrate sync.
- #SystemDesign
- #Caching
- #Redis
- #Backend
- #SoftwareArchitecture





