Files
PAVANSAI KUMAR ALLADI 7744c2a035 Add randomized DNS resolver option for load balancing (#907)
## Summary

- Adds `HTTPClient.Configuration.DNSResolver` with `.system` (default)
and `.randomized`
cases. When `.randomized` is selected, `NIORandomizedDNSResolver` is
installed on the
underlying `ClientBootstrap`, shuffling addresses returned by
`getaddrinfo`.
- Motivation: enables DNS-based load balancing for services that publish
multiple A/AAAA
records (e.g. Kubernetes headless services). The system resolver returns
addresses in a
deterministic order (typically RFC 6724 destination-address selection),
which defeats
  round-robin DNS — clients hammer the first address.

---------

Co-authored-by: Pavan sai kumar alladi <p_alladi@apple.com>
Co-authored-by: George Barnett <gbarnett@apple.com>
2026-06-02 06:56:54 +00:00
..
2025-01-14 16:39:43 +00:00