Cache invalidation — njaga data sing wis di-cache tetep konsisten karo sumber kasunyatan — iku sing misuwur minangka salah siji masalah paling angel ing computing. Tantangane yaiku njamin cache ora nglayani data sing wis lawas nalika nimbang performance, consistency, lan complexity. Sawetara strategi lan pitfalls sing patut dimangerteni.
The core problem
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.
