કેશ અમાન્યતા — કેશ્ડ ડેટાને સત્ય ના સ્ત્રોત સાથે સંગત રાખવું — કમ્પ્યુટીંગમાં સૌથી મુશ્કેલ સમસ્યાઓમાંથી એક છે. પ્રત્યક્ષ સમસ્યા એ છે કે કેશ સ્ટેલ ડેટા સેવા ન કરે તે સુનિશ્ચિત કરવું જ્યારે કામગીરી, સંગતિતા અને જટિલતા વચ્ચે સંતુલન રાખવું પણ આવશ્યક છે. ઘણી વ્યૂહરચનાઓ અને પતનો સમજવા યોગ્ય છે.
મૂળ સમસ્યા
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.
