When your data changes a lot, what's the best way to handle cache invalidation?
Enza Benali
·2707 views
hey everyone, im looking to get some thoughts on handling cache invalidation when the data we're caching is updated quite frequently, say every few minutes. we're using redis as our cache layer and a relational database as the source of truth. what are your go-to strategies for ensuring the cache stays reasonably fresh without causing excessive load on the database or the cache itself? any specific patterns or tools you've found particularly effective for this scenario?
40 comments