A simple client side load balancer for go applications.
balancer was made to provide easier access to DNS-based load balancing for go services running in kubernetes and was mainly built for http.Client.
Grpc has its own DNS load balancer, use that one.
This project does not do health checking and does not monitor status of any hosts.
This is left up to decide for a consul DNS or kubernetes DNS, and assumes hosts returned are deemed healthy.
This library does not retry or otherwise try to fix problems, leaving this up to the caller.
balancer currently assumes that a lookup will return a non-empty set of initial hosts on startup.