-
Notifications
You must be signed in to change notification settings - Fork 86
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
Event when a KV value changes #37
Comments
Hi, Not sure that's in scope with consuldotnet, but maybe. Could you share a snippet of the solution you are currently using please?
Do you use If you suggest custom code for this, then users will probably ask next for a HTTP retry/error handling mechanisms, internet connection check, etc. I'm not sure this is in scope with this project, but let's see what others say. Relevant: |
Well, just trying to compare consul utilization across some languages and nodejs lib brings a Snippet:
@arpontes, any chance to this being related? Thanks |
Consul supports blocking HTTP queries, so it is entirely possible to watch for value changes in a very efficient fashion.
As mfkl has already mentioned, the tricky bit is exposing in the API a configurable error handling and retrying policy. |
I'd like watch functionality for service instances. Will the trick similar to KV work? e.g. |
Yes, I think it will work. Mind, that |
Hello,
I'm using consuldotnet for a long time, but when I need to check if a value changes, I need to do it on my own. I think would be nice if this lib could do a check every X minutes for a change in the value and then fire and event with the new value.
I could implement this funcionality and send an PR, if you approve such feature.
The text was updated successfully, but these errors were encountered: