Service discovery solutions
In this section, we are going to describe the existing service discovery solutions available for your use – HashiCorp Consul and Kubernetes. Then, you will learn about the most popular tools that can be used by microservice developers to perform service discovery.
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 pretty straightforward API, including the following key endpoints:
PUT /catalog/register
: Register a service instance.PUT /catalog/deregister
: Deregister a service instance.GET /catalog/services
: Get the available instances of a service.
Client applications can access the Consul catalog either via the API or in server-side service discovery mode, using a DNS service.
You can learn more about Consul...