Consul services updated realtime in background #1910
Replies: 2 comments 21 replies
-
Hi Dave!
Lol Good luck! Do you have DevOps engineer? 😉
Sorry? Didn't get it! Probably you've meant
Cannot get it... What's wrong here? @ggnaegi Correct me if I'm wrong please, or you will have better understanding of this user scenario with Consul. |
Beta Was this translation helpful? Give feedback.
-
@daveblack93 Great idea! |
Beta Was this translation helpful? Give feedback.
-
Hello,
We are using Hashicorp Consul in order to communicate between microservices and Ocelot to route api call from Frontend webpages to api services. Till now our api services where deployed on "static" VMs with a fixed dns/ip, so at api service startup we retrieve our third parties services URL and store them into a dictionary and this was enough until the end of life of the microservice.
Some weeks ago, We started migrating microservice from "static" IIS VM deploy, to Hashicorp Nomad cluster.
Now we need to keep updated the third parties services URL real-time because our services are deployed in a cluster of VMs, so we don't know every deploy where the orchestrator will put the service and the corresponding URL.
Now, after some scouting, we found that Consul Service catalogue support Blocking Queries (based on long polling architecture) in order to keep update third parties services URL without calling every time Consul service catalogue or polling with a delay of X seconds. (https://developer.hashicorp.com/consul/api-docs/features/blocking)
My question here is: do you think this could be a new GlobalConfiguration.GlobalConfiguration.Type useful in your project?
Benefits are that the Service URL is kept updated real-time without overloading Consul service Catalogue and without configure a PollInterval.
Thanks,
Dave.
Beta Was this translation helpful? Give feedback.
All reactions