Systems & Backend

Cache Invalidation

Keeping cached data correct as the underlying source changes — famously one of the hard problems.

Cache invalidation is deciding when a cached value is stale and must be refreshed or evicted. Strategies include TTLs, write-through/write-behind, and event-driven invalidation; getting it wrong serves users old data or stampedes the origin.