net/http: Client round-robin across persistent connections #34511
When connecting directly to a service spread across multiple hosts with DNS "load-balancing" it would be ideal if
Right now, if you want to ensure that load is balanced the only practical option is to disable HTTP keepalives.
One way this could be done is to have idle connection pools for each different A record, and do a DNS resolution for every request to decide which pool to use for that request.
This round-robin mode should likely be opt-in (or opt-out). When enabled, given a DNS record like the following:
The text was updated successfully, but these errors were encountered: