Skip to content

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]>
@butonic butonic force-pushed the cache-verify-node-ttl branch from 7062d5b to cdb6a0d Compare October 28, 2024 13:40
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