Socket Exhaustion
3 posts3 contributors
+ FollowBe the first to follow this
Write about itArticles about Socket Exhaustion

How to Use HttpClientFactory in .NET Core to Avoid Socket Exhaustion
Learn how to use IHttpClientFactory in .NET Core to prevent socket exhaustion and improve performance. Discover named & typed clients, resilience with Polly, and best practices.

Understanding HttpClient Best Practice
Creating a new HttpClient instance frequently can lead to performance issues like socket exhaustion due to open sockets lingering in the TIME_WAIT state. Instead, reuse a singleton HttpClient instance to avoid these issues.

IHttpClientFactory In .NET Core To Avoid Socket Exhaustion
Learn how to effectively use HttpClient and IHttpClientFactory in .NET Core applications. Avoid common pitfalls of creating new HttpClient instances per request, leading to socket exhaustion. Discover how IHttpClientFactory manages HttpMessageHandler lifetimes, ensuring efficient API calls and resource management.



