Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to do cache eviction when backplane is down #338

Open
jasonp123 opened this issue May 10, 2021 · 1 comment
Open

Is it possible to do cache eviction when backplane is down #338

jasonp123 opened this issue May 10, 2021 · 1 comment

Comments

@jasonp123
Copy link

We have multiple services with an in-memory cache backed by a redis backplane. This is also a read through cache, so if nothing is found in in-memory or redis, then it will call an endpoint to get the information (and then put in cache).

If Redis goes down, there is potential for the individual services to perform work on stale information because the source could modify the data, but the backplane wouldnt notify because it would be down. So I was wondering if cache manager can evict when a backplane is unavailable (so our services would end up calling the readthrough)

@MichaCo
Copy link
Owner

MichaCo commented May 11, 2021

No that's not build in.
I'm also not sure it ever will be because everyone might have different use cases for that.
For example, I might be actually fine with having stale data for a while and can wait for Redis to come back online.

But I guess you could implement that yourself by checking if Redis is up from time to time and then clear the cache locally?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants