~/talk

Java 21: The revolution of virtual threads

Talkat Devoxx UK 2025 · 2025-05-07..05-09· [java, spring]
links:none on file
slides:none on file

Live-code builds a Spring Boot app and migrates it from blocking to reactive to virtual threads, using JMeter 1,000 concurrent users to show blocking with Tomcat’s 200-thread pool causing responses to climb past 3.5s, then switching to virtual threads to run millions of logical threads while OS threads stay around ~50. Adds structured task scope to parallelize 10 speaker→talk calls and drops a 6s blocking request to about 1.5s, notes Java 21/24/25 preview differences and thread-local/scoped-value caveats.

AI-written summary · about

  1. 0:00Introduction
  2. 1:46Blocking code with REST
  3. 9:11Limitations of platform threads
  4. 13:04Reactive programming drawbacks
  5. 19:51Virtual threads introduction
  6. 26:51Structured task scopes
  7. 35:22Performance comparison
  8. 38:32Conclusion and future
~/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.