Stop new-ing HttpClient: How IHttpClientFactory Fixes Both Failure Modes
A new HttpClient per request exhausts sockets; a static one ignores DNS changes. Here's how IHttpClientFactory's pooled, rotating handlers fix both — with a typed-client example and the singleton trap to avoid.