~/talk

Are Virtual Threads Going to Make Reactive Programming Irrelevant?

Talkat Jfokus 2025 · 2025-02-03..02-05· [java, concurrency]
slides:none on file

Claim: Java virtual threads (Loom) let you write simple blocking code instead of complex reactive pipelines while matching reactive throughput. Evidence: virtual threads shipped as a final feature in JDK 21, are as cheap as creating an object (not a millisecond or megabytes), and scale toward millions instead of the ~5,000 platform thread limit. Built features: Structured Concurrency (preview in JDK 24/25) auto-closes stray tasks and Scoped Values replace ThreadLocal for safe context propagation. Result: simplifies debugging, avoids lost threads, and preserves performance.

AI-written summary · about

  1. 0:00Introduction
  2. 3:37Project Loom and virtual threads
  3. 8:50Why reactive programming emerged
  4. 11:20Problems with threads
  5. 17:21Reactive programming benefits and drawbacks
  6. 25:56Debugging reactive code
  7. 30:50Virtual threads solve concurrency
  8. 34:05How virtual threads work
  9. 37:17Code with virtual threads
  10. 40:11Structured concurrency
  11. 42:18Virtual threads vs reactive
  12. 44:05Scope values replace thread locals
  13. 47:17Future of Loom
~/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.