There are five dominant strategies: TTL, write-through, write-behind, explicit invalidation, and version-based.
Strategy | Freshness | Write cost | Complexity | Best for |
|---|---|---|---|---|
Stale up to N seconds | Zero | Low | Public content | |
Write-through | Immediate | High (sync) | Medium | Financial data |
Write-behind | Near-immediate | High (async) | High | High throughput |
Explicit | Immediate | Depends on fan-out | High | User-specific |
Version-based | Immediate | Low | Medium | Static assets |