-
Notifications
You must be signed in to change notification settings - Fork 541
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
The problem of multiple keys in ConfigWatch #416
Comments
They are executed in order. Are you saying that if one is updated while watching the other that the other is never updated? |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Hello, thank you for your answer. The othe is not never updated, it will update after the watching key has updated or watch timeout. After 5 minutes, the watching I means that ConfigWatch should watch all keys that belong to the application concurrently, instead of one by one. |
I think the answer would be to execute them in parallel using projectreactor.io. |
Also looking for the same fix, concurrently watching each key seems to make most sense👍 |
It really needs improvement, the waiting time is too long in multiple configurations. The first configuration is the main configuration, and I only need to monitor the first configuration. details pull #705 |
Hi,
I'm using consul config in a spring application, but I found a problem in the ConfigWatch.
I have two keys to watch. One is
config/application/data
which is for the common configuration, the ohter isconfig/appName/data
which is for the private configuraion.I hope that one of them is updated in consul, I need to kown the notification from consul. However, If
config/application/data
is blocked in the ConfigWatch andconfig/appName/data
is updated now, the Spring application can't get any notification from consul. Because config keys are not blocked in the same time, they do watch action one by one. Therefore one key is blocked in watch, the other will not get any notification even if it has been updated.So, how can I do to solve this problem?
Thanks.
The text was updated successfully, but these errors were encountered: