Cache consistency
medium 26 minCache consistency is about how closely cached copies follow the source of truth.
Where it shows up
The same pattern appears across everyday software.
Facebook's memcache and TAO
Leases stop stale sets, and the team later measured and raised TAO's consistency from six nines to ten.
Redis client-side caching
Redis can track which connections read a key and send them an invalidation when it changes.
Processor caches
Cores keep copies of the same memory. Protocols such as MESI make sure that a write by one core removes the old copy of the others.
Online shops
Product pages come from a cache, while the order checks and takes stock in the database.
DNS
A changed record is seen by different users at different times, until every resolver's TTL has ended. It is eventual consistency by design.
Permission checks
A cached role survives a removal until it is deleted or expires, so sensitive actions check again at the source.