~/talk

Java Project Loom: Why Should I Care?

Talkat GOTO Amsterdam 2023 · 2023-06-13..06-15· [java, concurrency]
slides:none on file

Project Loom adds virtual threads plus structured concurrency and shows concrete results: four demo apps (blocking Spring Boot, reactive WebFlux, Spring Boot on virtual threads, Helidon Nima) run against a 1s-delay backend and the blocking Spring app handles about ~200 req/s with average latency ballooning to ~5s while reactive and virtual-thread variants deliver ~1000 req/s and ~1s latency. Requires Java 19 preview to experiment or Java 21 for GA; replace synchronized blocks with ReentrantLock, watch thread‑locals (use ScopedValues) and enable a virtual-thread executor in Spring Boot 3.

AI-written summary · about

  1. 0:00Intro
  2. 0:19What?
  3. 0:42Why?
  4. 1:16The problem
  5. 2:35Possible solutions
  6. 3:22Answer: Virtual threads
  7. 5:47Existing solutions
  8. 11:21Virtual threads
  9. 13:24Architecture
  10. 15:16Demo
  11. 16:15Results
  12. 17:04Conclusion
  13. 19:56Demo
  14. 21:58Thread pinning
  15. 24:14Demo
  16. 26:20ScopedValue
  17. 27:20Demo
  18. 28:15Structured concurrency
  19. 29:46Demo
  20. 31:42Loom
  21. 32:09Want to get started now?
  22. 33:33Is reactive dead?
  23. 34:28What about Kotlin coroutines?
  24. 35:57Conclusion
  25. 37:05Outro
~/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.