What problem does it solve?
This skill solves the problems caused by misusing HTTP clients in .NET, including socket exhaustion, DNS change issues, and missing resilience (timeouts, retries, and circuit breakers) for external calls.
Core Features & Use Cases
- IHttpClientFactory setup: Uses factory-managed HttpMessageHandler lifetimes instead of creating HttpClient per request, keeping applications stable under load.
- Named and keyed/typed client patterns: Shows when to use named clients versus keyed clients in .NET 10 to avoid handler rotation issues.
- Resilience with standard policies: Applies AddStandardResilienceHandler with rate limiting, total timeouts, retry/backoff, and circuit breaking for robust outbound HTTP.
- DelegatingHandlers for cross-cutting concerns: Adds authentication headers and correlation IDs in a consistent pipeline rather than scattering logic across services.
Quick Start
Load this skill and then configure your HTTP client registrations with AddHttpClient plus AddStandardResilienceHandler, using keyed clients where appropriate, and attach any required DelegatingHandlers for auth or correlation IDs.