DNS

Learn about service discovery with DNS, logical service name, and load balancing with DNS.

Service discovery with DNS

Let’s start with the basics and look at DNS. For small teams this is likely to be our best choice, particularly in a slowly changing infrastructure. That would include dedicated physical machines and dedicated, long-lived virtual machines. In these environments, IP addresses will remain stable enough for DNS to be useful.

Service discovery usually implies some kind of automated query and response, but not in this case. When we use DNS to call another service, discovery is more Sherlock Holmes than Siri. Our team needs to find the service owners and pry the DNS name or names out of them. An exchange of favors may be required, maybe a six-pack ...