~/talk

Virtual Threads, Structured Concurrency and Scoped Values: Putting it all together

Talkat Jfokus 2026 · 2026-02-02..02-04· [java]
slides:none on file

Builds a Spring Boot web app (uses Spring Boot 3.5 on JDK 25), flips a flag to enable virtual threads so each request runs on a virtual thread, and replaces CompletableFutures with StructuredTaskScope: fork subtasks for accounts, loans and two credit‑score calls, join with a StructuredTaskScope with ANY_SUCCESS joiner so one credit score winning cancels the other, showing short‑circuiting and cancellation propagation. Adds a scoped value for a UUID request ID inherited by child tasks; the demo runs end‑to‑end and returns offers.

AI-written summary · about

  1. 0:00Project Loom introduction
  2. 4:05Virtual threads scalability
  3. 7:21Spring Boot virtual threads
  4. 11:14Structured concurrency benefits
  5. 12:59Implementing structured concurrency
  6. 27:49Structured vs CompletableFuture
  7. 29:59Scoped values vs thread locals
  8. 36:01Scoped values in banking
  9. 41:22Summary
~/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.