~/talk

Structured Concurrency: Managing the Hierarchical Cancelation and Error Handling

Talkat Devoxx Belgium 2024 · 2024-10-07..10-11· [concurrency, java]
slides:none on file

Explains structured concurrency by showing concrete implementations and failure modes: a reusable EasyRacer obstacle course server plus clients in Java Loom, Kotlin coroutines, and Scala compare JP-453 structured task scope APIs, effect libraries, and direct-style DSLs; demonstrates races that cancel losers, resource cleanup with try-with-resources, hedging and Scoped Values for request IDs, error containment, and a stress test of 10,000 concurrent connections that reliably cancels the rest when one wins.

AI-written summary · about

  1. 0:00Introduction to concurrency
  2. 3:02The concept of racing
  3. 5:17Obstacle course demonstrations
  4. 8:21High-level concurrency approaches
  5. 11:09Basic racing implementation
  6. 14:33Concurrent task racing
  7. 18:17Error handling in scopes
  8. 21:22High-concurrency techniques
  9. 22:36Implementing timeouts
  10. 26:10Managing resources
  11. 33:07Using scoped values
  12. 38:09Request hedging pattern
  13. 45:59Many-to-many concurrency
~/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.