1.

Does Consul Support Delta Updates For Watchers Or Blocking Queries?

Answer»

Consul does not currently support sending a delta or a change only response to a watcher or a blocking QUERY. The API simply allows for an edge-trigger return with the full result. A client should keep the results of their last READ and compute the delta client side.

By design, Consul offloads this to clients instead of attempting to support the delta calculation. This AVOIDS expensive state maintenance on the servers as well as race conditions between DATA UPDATES and watch registrations.

Consul does not currently support sending a delta or a change only response to a watcher or a blocking query. The API simply allows for an edge-trigger return with the full result. A client should keep the results of their last read and compute the delta client side.

By design, Consul offloads this to clients instead of attempting to support the delta calculation. This avoids expensive state maintenance on the servers as well as race conditions between data updates and watch registrations.



Discussion

No Comment Found