Cache-invalidering — å holde cachet data konsistent med kilden — er kjent som ett av de vanskeligste problemene innen informatikk. Utfordringen er å sikre at cacher ikke serverer foreldet data mens man balanserer ytelse, konsistens og kompleksitet. Flere strategier og fallgruver er verdt å forstå.
Kjerneproblemets
When the source data changes, the cached copy becomes STALE.
→ Serve stale data? (fast but wrong) vs invalidate? (consistent but complex/slower)
→ "There are only two hard things in CS: cache invalidation and naming things."
The difficulty: knowing WHEN and WHAT to invalidate, across distributed systems,
without races, while keeping good cache hit rates.
