Cloudfoundry plans to add support for DNS A records that maps to multiple IPs (one per app container instance), see docs-proposal. I wonder whether spring-cloud discovery coupled with ribbon can support DNS-based client load balancing.
The spring-cloud DiscoveryClient does not seem to do DNS resolutions, it manages host names
The ribbon load balancing library supports a list of FQDNs through the ListOfServers property.
But I could not spot documentation related to DNS lookup of the specified servers: i.e. would Ribbon load balance across IP address if a DNS A/AAA record (fetched from the ListOfServers ) returns multiple ip addresses ?
Where would I need to configure DNS caching directives ? Would this is JVM-wide in the java.security support or can I manage this as client-slide load balancing options (from ribbon) ?