What are some good ways to handle cache invalidation when your data changes all the time?
MUser3394 Profile
·11953 views
Hey everyone, I'm struggling with a common caching issue. We have a dashboard showing key metrics that need to update every few seconds. We're using Redis for our cache, but figuring out the best way to invalidate it is proving tough. Just setting an expiry time doesn't work well since some data changes way faster. And clearing the cache manually with every single update creates too much write traffic to Redis. What do you all usually do when data freshness is super important and updates happen a lot? Are there any common patterns or libraries out there I should check out?
36 comments