~/talk

Optimizing your HttpClient usage

Talkat NDC Copenhagen 2026 · 2026-06-01..06-04· [web-platform, devops-and-delivery]
slides:none on file

Shows that creating a new HttpClient per call causes socket exhaustion — a demo with 20,000 parallel requests throws socket exceptions, and moving a single instance outside the loop finishes successfully. Explains use of Microsoft.Extensions.Http and DI to get IHttpClientFactory which supplies short‑lived HttpClient instances backed by a shared connection pool, contrasts named vs typed clients, demonstrates delegating handlers for logging/auth, and wires Polly policies (exponential backoff + jitter and a circuit breaker) which run in the demos.

AI-written summary · about

  1. 0:00HTTP client optimization
  2. 10:43What is HTTP client
  3. 20:23HTTP client misuse demo
  4. 31:05HTTP client factory usage
  5. 36:57Advanced HTTP client configs
  6. 44:05Delegating handlers in Blazor
  7. 48:42Resiliency with Polly
  8. 53:14Circuit breaker with Polly
  9. 55:27Resources and closing
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.