Cache invalidation — کیش شدہ ڈیٹا کو حقیقی ذریعہ کے ساتھ مطابقت میں رکھنا — حسابی علم میں مشہور طور پر سب سے مشکل مسائل میں سے ایک ہے۔ چیلنج یہ یقینی بنانا ہے کہ کیشز stale data serve نہ کریں جبکہ کارکردگی، مطابقت، اور پیچیدگی میں توازن برقرار رہے۔ کئی حکمت عملیں اور خطرات سمجھنے کے قابلِ غور ہیں۔
مرکزی مسئلہ
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.
