~/talk

Preparing web applications for Loom

Talkat Spring I/O 2023 · 2023-05-18..05-19· [java, concurrency]
links:none on file
slides:none on file

Project Loom’s virtual threads run on Java 21 and plug into Apache Tomcat (connector option useVirtualThreads=true), offering near-transparent scalability gains for blocking web apps: experiments show about 50 microseconds per request lower contention overhead and higher throughput once concurrent requests exceed core count. Workarounds include replacing synchronized blocks with ReentrantLock to avoid pinning, rethinking thread‑local caching and exploring adaptive caching strategies; Tomcat plans support in June releases and recommends testing on real apps to quantify benefits.

AI-written summary · about

  1. 0:00Project Loom introduction
  2. 1:28Servlet scalability history
  3. 7:07Virtual threads explained
  4. 10:15Virtual threads in Tomcat gotchas
  5. 13:26Virtual threads impact on apps
  6. 16:58Performance testing setup
  7. 19:30Throughput: virtual vs platform threads
  8. 26:34Virtual threads ease of use
  9. 29:42Switching to virtual threads
  10. 31:47Tomcat virtual thread integration
  11. 34:33Future improvements
~/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.