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 the new preview-phase features in Java 21 that let you supercharge virtual threads for real-world, concurrent apps. In a live-coding session we’ll start with a blank Java project and iteratively turn it into a fully functioning web service—showing you why ScopedValues beat out ThreadLocals when you can, and how to craft custom StructuredTaskScopes to match your exact needs.

By the end of this talk you’ll walk away with a clear, hands-on understanding of how virtual threads, StructuredTaskScope, and ScopedValue work together—ready to drop them into your production code and unlock next-level concurrency.

Watch on YouTube

Top comments (0)