public class EndpointUtil
This class contains some of the utility functions previously found in DiscoveryClient, but should be elsewhere.
It *does not yet* clean up the moved code.
Forked from https://raw.githubusercontent.com/Netflix/eureka/master/eureka-client/src/main/java/com/netflix/discovery/endpoint/EndpointUtils.java.
public static java.util.List<java.lang.String> getServiceUrlsFromDNS(io.micronaut.runtime.server.EmbeddedServer embeddedServer,
Get the list of all eureka service urls from DNS for the eureka client to
talk to. The client picks up the service url from its zone and then fails over to
other zones randomly. If there are multiple servers in the same zone, the client once
again picks one randomly. This way the traffic will be distributed in the case of failures.
embeddedServer - the embedded server
instanceConfiguration - The instance configuration
discoveryClientConfiguration - The discovery client configuration
The list of all eureka service urls for the eureka client to talk to.