After going through the guide and watching several Consul videos, I’m still unclear on certain aspects of it.
For example, the guide goes over manually registering a service, but it doesn’t give any examples of code that uses service discovery. How does that work? Once a service is registered with Consul, do I just use a normal language HTTP client to make one request to Consul and then another to one of the returned IP addresses? Do I use a special Consul language client instead? If so, should I cache the DNS for some period of time so that I’m not already making multiple HTTP requests all the time?