~/talk

Scaling Servers with Virtual Threads

Talkat Great International Developer Summit 2025 · 2025-04-22..04-25· [java]
slides:none on file

Shows Java 21 virtual threads as a practical replacement for OS threads: swapping new Thread(...) for Thread.startVirtualThread and running IO-bound tasks keeps JVM thread count at ~16 while supporting 500,000 virtual threads and even millions in demos. Demonstrates file and sleep-based IO, explains the mount/unmount model (virtual thread unmounts when blocked, remounts when ready), shows it fails for CPU-bound work and is not for CPU-bound tasks, and argues this removes the need for heavy CompletableFuture-based pipelines while actually working in live JConsole-observed experiments.

AI-written summary · about

  1. 0:00Introduction to virtual threads
  2. 1:07Parallel vs concurrent vs async
  3. 29:15Problems with traditional threads
  4. 41:11How virtual threads work
  5. 54:31Benefits of virtual threads
  6. 1:00:34Virtual threads vs CompletableFuture
  7. 1:07:26Java 21 and virtual threads
~/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.