← Back
Nick Chapsas October 5, 2025 37s

Reusing HttpClient is bad

Summary

The transcript discusses best practices for HTTP client management in .NET, challenging the common advice of creating a static HTTP client. The key recommendation is to use the IHttpClientFactory, which solves issues like DNS refresh limitations, potential thread safety problems, and client lifetime management. By leveraging the add HttpClient method, developers can create more robust and efficient HTTP client implementations that handle reuse and updates automatically.

View original episode ↗