Overview
Explore the world of Structured Concurrency in Java through this comprehensive conference talk. Dive into the concepts of Virtual Threads and Structured Concurrency, understanding their benefits and limitations. Compare the Structured Concurrency API with CompletableFuture API through live coding examples. Learn how Virtual Threads, as lightweight user threads, enable Java applications to produce thousands of threads efficiently without blocking carrier threads. Discover how Structured Concurrency allows developers to focus on business requirements rather than managing platform threads. Witness multiple examples implemented with both CompletableFuture and Structured Concurrency API, highlighting the differences between the reactive-like callback approach of CompletableFuture and the imperative-like API of Structured Concurrency. Gain insights into shutdown policies and understand why Structured Concurrency should be seriously considered for Java development.
Syllabus
Intro
Project Loom
How to create virtual threads?
Demo
Virtual Threads continued
Demo
Virtual Threads continued
Structured Concurrency
CompletableFuture API vs Structured Concurrency API
Demo
Shutdown policies
Outro
Taught by
GOTO Conferences