Service discovery solutions
In this section, we are going to describe the existing service discovery solutions available for your use.
HashiCorp Consul
HashiCorp Consul has been a pretty popular solution for service discovery for many years. Written in Go, this tool allows you to set up service discovery for your services and applications quite easily, using its clients or API.
Consul has a straightforward HTTP API, which includes the following endpoints:
PUT /catalog/register
: Register a service instancePUT /catalog/deregister
: Deregister a service instanceGET /catalog/services
: Get available instances of a service
Client applications can access the Consul catalog either via the API or in a server-side service discovery mode, using a DNS service.
We are going to illustrate how to use Consul for service discovery later in this chapter. In the meantime, you can learn more about Consul by going to the official website: https://consul...