~/talk

Virtual Threads, Structured Concurrency & Scoped Values: Putting it All Together

Talkat JCON EUROPE 2026 · 2026-04-20..04-23· [java, concurrency]
slides:none on file

Builds a Spring Boot 4.0 banking app on JDK 26 that swaps Tomcat’s platform threads for virtual threads to let the server spawn massive numbers of user threads (thousands to millions) cheaply. Uses StructuredTaskScope to fork concurrent calls—customer, accounts, loans and two credit-score services—uses the anySuccess/throw joiner so one credit score returns and the other is canceled, demonstrates cancellation propagation on failure, and tags requests with a ScopedValue.newInstance request ID inherited into child virtual threads; the demo runs and logs traceable request IDs.

AI-written summary · about

  1. 0:00Introduction and survey
  2. 1:50Project Loom overview
  3. 2:35Virtual threads explained
  4. 6:02Demo platform to virtual threads
  5. 9:31Structured concurrency introduction
  6. 13:17Structured concurrency API demo
  7. 21:09Implementing loan application
  8. 31:44Scoped values introduction
  9. 35:55Scoped values API demo
  10. 44:04Summary and Q&A
~/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.