The hardest problem in computer science (only half-jokingly).
Cache Invalidation: the hardest problem in computer science (only half-jokingly)
absorb bursts before they become outages
Versioned keys cost memory transitionally.
Invalidation comes in three flavors: time-based (TTL), event-driven (publish to invalidate caches on writes), and explicit (key purge). The right approach depends on consistency needs and traffic patterns.
TTL is simple and forgiving but allows stale data within window.
Event-driven needs reliable delivery and can amplify writes.
Versioned keys: cache by hash; updates live in a new key, old expires.
Catalog price changes need to propagate fast.