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

invalidate service if node was not updated #2736

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

butonic
Copy link
Contributor

@butonic butonic commented Oct 28, 2024

nats does not yet emit events when a key is evicted due to ttl. This might cause the cache to never receive an update for the node. This PR will invalidtate a service if any node has not been updated in time.

Let me know what you think and why node TTL was not taken into account, yet?

@asim
Copy link
Member

asim commented Oct 28, 2024

I think there are ttls per service but not node. I have a feeling it comes down to. There's a lot of edge cases to deal with and caching can be quite hard to do properly. So the idea is that you don't want to just throw away a node in case there's some sort of upstream issue with the registry. I'm not really maintaining this anymore so I will accept your PR if you think it works

Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
@asim asim merged commit 14a1791 into micro:master Oct 28, 2024
@butonic butonic deleted the cache-verify-node-ttl branch October 28, 2024 15:49
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

Successfully merging this pull request may close these issues.

3 participants