-
Notifications
You must be signed in to change notification settings - Fork 241
Add client support for Watches #31
Comments
We do support this already. We actually use this concept in production. Notice the methods in the kv client and health client that accept callbacks. Although not all of the "watchable" endpoints have been implemented. The plumbing is there. |
Very nice! Are these |
The only other way I see to implement watches is with the "handler" approach, which involves giving Consul a script to execute when watched attributes change. This seems out of scope for this client. |
They're based on long polling. I don't see another way to implement it using the HTTP API. |
Sure, ok thanks for the help here - feel free to close/delete this! |
It would be great if real-time notification of config changes (KV data changes) were possible on the client-side.
I believe this concept is supported in the "raw" Consult API via watches, however I don't see that concept supported by this library.
The idea is simple:
The idea is to allow GOSSIP to "do its thing" and update clients in real-time, rather than forcing clients to poll.
The text was updated successfully, but these errors were encountered: