BrandGhost

All posts with Tag httpclient socket exhaustion dotnet

Weekly Recap: Logging in .NET, HttpClient Observability, and the Complete C# Visitor Pattern Series [Jul 2026]

Weekly Recap: Logging in .NET, HttpClient Observability, and the Complete C# Visitor Pattern Series [Jul 2026]

This week wraps up the C# Visitor pattern series with real-world examples, best practices, a decision guide, and step-by-step implementation, plus a complete guide to logging in .NET with ILogger, Serilog, and OpenTelemetry. There's also deep HttpClient in .NET 10 coverage on observability, resilience, streaming, and DNS handling, along with practical guides to creating and understanding NuGet packages.

Read the whole article

HttpClient DNS Issues in C# and .NET: PooledConnectionLifetime and SocketsHttpHandler

Learn how to solve httpclient dns staleness in .NET 10 C# -- why reusing a single HttpClient causes stale DNS responses, and how PooledConnectionLifetime, IHttpClientFactory handler rotation, and SocketsHttpHandler solve the problem for cloud-native and Kubernetes deployments.

Read the whole article

An error has occurred. This application may no longer respond until reloaded. Reload