Scale Forem

Scale YouTube
Scale YouTube

Posted on

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

Java 21’s virtual threads are awesome, but they really shine when paired with two preview features: StructuredTaskScope and ScopedValue. In this talk, Christian Woerz live-codes a Java app from scratch into a fully concurrent web application, showing why you should swap out your ThreadLocals for ScopedValues and how to craft custom StructuredTaskScopes for your needs.

By the end of the session, you’ll have a solid grasp of how these features work under the hood and how to plug them into real-world projects for maximum performance and simplicity.

Watch on YouTube

Top comments (0)