Glossary

Cache Invalidation

Cache invalidation is the process of declaring cached data stale and removing or updating it. It is one of the hardest problems in programming: cached data can go "stale", but you do not always know when.

Strategies

Complexity

Challenges: cache stampede (many requests hitting the DB simultaneously after TTL expires), stale reads, and complex invalidation for related data.