~/talk

How to Avoid Common Mistakes When Using Reactor Netty

Talkat SpringOne 2020 · 2020-09-01..09-03· [java, web-performance]
links:none on file
slides:none on file

Reactor Netty is the default runtime in Spring Boot 2 and causes specific failures: ByteBufs use direct memory and the last accessor must release buffers, otherwise leaks happen; WebClient.exchange() leaves responsibility to the app and often causes leaked buffers and unusable pooled connections, so use retrieve()+toEntity()/toBodilessEntity() or retrieve().onStatus() to drain and release bodies. Enable leak detection (advanced/paranoid) and reactor-netty wiretap logging, watch read/connect/response/maxIdle/maxLifetime timeouts, and prefer connection-pool LIFO or shorter maxIdleTime when backends close idle connections.

AI-written summary · about

  1. 0:00Introduction to Reactor Netty
  2. 1:07Why logging matters
  3. 15:56Memory leaks in Reactor Netty
  4. 30:25Timeouts and connection issues
  5. 45:51Connection pool pitfalls
  6. 50:38Final advice and Q&A
~/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.