Scale Forem

Scale YouTube
Scale YouTube

Posted on

Devoxx: StructuredTaskScope And ScopedValue - Get The Most Out of Virtual Threads by Christian Woerz

StructuredTaskScope and ScopedValue are two hot preview features in Java 21 that supercharge virtual threads. In this talk, Christian Woerz walks you through why these tools matter, how they differ from old-school ThreadLocals, and how they let you build smarter, more efficient concurrency patterns.

You’ll jump into a live‐coding session where you start with a blank Java app and iteratively turn it into a fully concurrent web service. Along the way, you’ll learn to craft your own StructuredTaskScopes, swap ThreadLocals for ScopedValues, and get a hands‐on feel for wringing every drop of performance from virtual threads.

Watch on YouTube

Top comments (0)