Optimizing your HttpClient usage - Nico Vermeir - NDC London 2026

Optimizing your HttpClient usage - Nico Vermeir - NDC London 2026

🎙 Nico Vermeir 👥 227K 📅 March 5, 2026 ⏱ 60 min 👁 7K 📄 tutorial 🧭 2026-08-13
Available in: English (current) Français

Keywords

HttpClient.NETHTTP client factorydelegating handlersperformance

Summary

In this NDC London 2026 talk, Nico Vermeir, a Cloud Solution Architect at Microsoft, provides a comprehensive deep dive into optimizing HttpClient usage in .NET. He begins by explaining the importance of HttpClient in modern applications and the common pitfalls developers face. The talk covers the internal workings of HTTP calls, including DNS resolution, TCP handshake, and TLS handshake, emphasizing the cost of creating new HttpClient instances. He demonstrates the negative impact of disposing HttpClient in a using block, leading to socket exhaustion. The solution is to use IHttpClientFactory, which manages a pool of HttpMessageHandlers, allowing short-lived clients without the overhead of re-establishing connections. Vermeir shows how to configure named and typed clients, set base addresses, and handle errors properly using EnsureSuccessStatusCode and try-catch blocks. He also introduces delegating handlers for intercepting requests and responses, enabling cross-cutting concerns like logging or circuit breakers. The talk concludes with practical advice on connection lifetime, DNS updates, and avoiding shared cookie containers. Overall, the session provides actionable best practices for improving performance and reliability in .NET applications.

174 words

Critical Evaluation

Value of the Information & Strength of the Argument

The talk delivers high practical value by addressing real-world performance issues and common mistakes. Vermeir’s argumentation is solid, backed by live demos that illustrate the consequences of poor HttpClient usage, such as socket exhaustion. He explains the underlying networking concepts clearly, making the case for using IHttpClientFactory. The demonstrations are effective in showing the difference between creating new clients and reusing them. The advice on error handling and delegating handlers adds further value, equipping developers with tools to build robust HTTP clients.

91 words

Title / Content Match

The title accurately reflects the content, which focuses on optimizing HttpClient usage in .NET.

Quality & Reliability

8/10

The talk is presented by an experienced Microsoft cloud solution architect, with practical demos and references to official documentation. The content is technically accurate and follows established best practices, though some claims lack direct citations.

Key Moments

Cited Sources

  • NDC Conferences — Conference organizer and source of the talk.
  • NDC London — Specific conference event page.

Concurring Sources

Contribution & Novelties

The talk provides a clear, practical guide to optimizing HttpClient in .NET, emphasizing the importance of IHttpClientFactory and delegating handlers. It offers actionable insights for developers to avoid common pitfalls and improve performance.

Pour aller plus loin :

64 words

Radar Profile

The radar profile shows high scores in information quantity, quality, and reliability, with a slightly lower technical level, indicating a well-balanced and accessible technical talk.

Reliability 8/10