Menu
Back to Discussions

What are your usual ways to clear out old info from the cache when you're working with a bunch of different microservices spread out all over the place?

Temir Zhalgasov
Temir Zhalgasov
·1063 views
Hey everyone, I've been struggling with cache invalidation lately, especially with more and more microservices. We keep running into situations where one service updates data, but another service is still dishing out old cached info. So, what are your proven ways to keep caches up-to-date without making things too complicated? I've been considering things like TTLs, pub/sub stuff, or even just direct invalidation calls. But each option has its pros and cons. What's actually working for you, particularly when you think about how consistent your data needs to be versus how complex the solution is?
2 comments

Comments

Loading comments...