~/talk

JDK 19 Virtual Threads: Skip Reactive, Boost Throughput

slides:none on file

Project Loom’s virtual threads claim: get reactive-level throughput while keeping thread‑per‑request code. It uses JDK 19/21 features, the new virtual-thread-per-task executor, and framework integrations (Tomcat/Jetty configs, Quarkus/Micronaut/Spring Boot options). Quarkus benchmarks show throughput nearly matching reactive stacks; Netty often doesn’t benefit. Known pitfalls: trace-pin-threads reveals pinning from synchronized/native calls, long‑running tasks and thread‑local caching break assumptions. Oracle’s Hodon team rewrites a server to use virtual threads, removes lots of code, and reports success.

AI-written summary · about

  1. 0:00Introduction to virtual threads
  2. 2:56Historical context of Java threads
  3. 7:34Evolution of server-based applications
  4. 11:31Reactive Manifesto and APIs
  5. 18:49Challenges with reactive programming
  6. 21:33Project Loom and virtual threads
  7. 26:57How virtual threads work
  8. 31:51Creating and using virtual threads
  9. 34:38Web server support for virtual threads
  10. 36:25Microservice frameworks and virtual threads
  11. 39:14Spring Boot and virtual threads
  12. 41:40Third-party library compatibility
  13. 43:04Potential drawbacks and solutions
~/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.