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

Use blocking queries to Consul instead of polling for watches #461

Open
tgross opened this issue Aug 3, 2017 · 0 comments
Open

Use blocking queries to Consul instead of polling for watches #461

tgross opened this issue Aug 3, 2017 · 0 comments

Comments

@tgross
Copy link
Contributor

tgross commented Aug 3, 2017

From the Consul docs on blocking queries:

Many endpoints in Consul support a feature known as "blocking queries". A blocking query is used to wait for a potential change using long polling. Not all endpoints support blocking, but each endpoint uniquely documents its support for blocking queries in the documentation.

By having our watches use blocking queries on the Consul Health API, we can reduce the workload we put on the Consul agent and end up with faster response times to change.

With respect to backwards compatibility, the implementation can probably choose to ignore the existing interval field and provide a deprecation warning in the logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants