Service Discovery

In this lesson, we'll study service discovery with Consul.

Consul is a service discovery technology that ensures microservices can communicate with each other.

Distinguishing features #

Consul has some features that set it apart from other service discovery solutions.

HTTP REST API & DNS support #

Consul has an HTTP REST API and supports DNS.

  • DNS (Domain Name System) is the system that maps host names such as www.innoq.com to IP addresses on the Internet.
  • In addition to returning IP addresses, it can return ports at which a service is available.
  • This is a feature of the SRV DNS records.

Configuration file generation #

With Consul Template, Consul can ...