Cache-Aside (Lazy Loading)
Application code manually checks the cache, falls back to the database on a miss, and populates the cache. For writes, it writes directly to DB and invalidates the cache entry (Write-Around).
Best For: Read-heavy workloads with app-level controlConsistency: Eventual after invalidationWrite Latency: ModerateRisk: Stale reads after writes
Data Flow Topology
IdleApp
Request
Org:314
Operation
READ
Redis Cache
| Key | Value |
|---|---|
| Org:771 | |
| Org:902 |
Main DB
| Row ID | Attributes |
|---|---|
| Org:771 | |
| Org:902 | |
| Org:314 | |
| Org:888 |