Scale Forem

Scale YouTube
Scale YouTube

Posted on

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

In this talk, Christian Woerz dives into Java 21’s virtual threads and two third-preview features: StructuredTaskScope and ScopedValue. Through a live-coding session, you’ll watch an empty app transform into a fully concurrent web application, pairing virtual threads with these new APIs for maximum performance and clarity.

You’ll also discover why ScopedValues often trump ThreadLocals for passing context and how to build custom StructuredTaskScopes tailored to your needs. By the end, you’ll walk away with a hands-on understanding of how to unleash the full power of virtual threads in real-world Java projects.

Watch on YouTube

Top comments (0)