Proper use and reuse of HttpClient / IHttpClientFactory #302
Labels
enhancement
New feature or request
.NET
Pull requests that update .net code
performance
sk team issue
webapi
Pull requests that update .net code
In order to avoid creating and recreating HttpClient instances all the time (which can lead to port exhaustion, unnecessary overhead in constantly re-establishing TLS connections and so on) while avoiding the problems of only using a single static HttpClient (which can become stale in its DNS resolution), we need to revisit how we creates HttpClient instances and make proper use of IHttpClientFactory injection.
The text was updated successfully, but these errors were encountered: