DNS load balancing

A domain can configure its DNS settings so that multiple IP addresses are associated with it. When a client tries to resolve the domain name to an IP address, it returns a list of all IP addresses. Most clients would then send its requests to the first IP address in the list.

DNS load balancing is where the DNS changes the order of these addresses each time a new name resolution request is made. Most commonly, this is done in a round-robin manner.

Using this method, client requests should be distributed equally among all backend servers. However, load balancing at the DNS level has some major disadvantages:

  • Lack of health-checks: The DNS does not monitor the health of the servers. Even if one of the servers in the list ...

Get Building Enterprise JavaScript Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.