Skip to content

Proper use and reuse of HttpClient / IHttpClientFactory #302

@glahaye

Description

@glahaye

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.

Metadata

Metadata

Assignees

Labels

.NETPull requests that update .net codeenhancementNew feature or requestperformancesk team issuewebapiPull requests that update .net code

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions