~/talk

Spring off the HTTP High Dive into an Optimized Connection Pool

Talkat Devnexus 2024 · 2024-04-09..04-11· [cloud-infrastructure]
links:none on file
slides:none on file

Compares Spring HTTP clients and shows concrete defaults, tunables and failures: Reactor Netty (default 500) exposes TCP+TLS handshake metrics that measure connection creation averaging ~150 ms in the demo, while Apache HTTPClient (25 total, 5 per route) uses per-host limits and needs explicit TTL/idle settings. Demonstrates Micrometer + Prometheus metrics, an AspectJ timer for Apache connect time, and two failing patterns: creating a RestClient per request (leaks sockets) and servers sending Connection: close (forces hundreds of new connects). Provides bean configs that fix timeouts, TTLs and eviction so pooling actually works.

AI-written summary · about

  1. 0:00Introduction and agenda
  2. 1:31HTTP connection fundamentals
  3. 8:03Spring HTTP client options
  4. 13:54Client library configuration
  5. 19:01Observability and metrics
  6. 24:42Code demonstration and testing
  7. 42:24Conclusion and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.