The Age of Virtual Threads by Ron Pressler And Alan Bateman
Ғылым және технология
Virtual threads and structured concurrency are two features added in JDK 19 (as Preview and Incubation respectively) that will change the way we write high-throughput servers. In this talk we’ll describe the purpose of these features, and give some advice on how to prepare for the age of virtual threads.
RON PRESSLER
Veteran programmer, leader of OpenJDK's Project Loom. Ron works at Oracle, in the Java Platform Group, and is the technical lead for OpenJDK's Project Loom, which seeks to add user-mode threads to the JDK.
ALAN BATEMAN
Alan Bateman is an engineer in the Java Platform Group at Oracle. Alan has worked on many areas of the JDK including the Java Module System, the modularization of the JDK itself, and the core libraries and APIs. He previously worked on many of the tool and profiling APis including the JSR-163 implementation and other serviceability features. He is currently focused on Project Loom.
------------------------------------------------------------
INTRO
* visuals & editing by @Mercator
* music : Avocado by Ephixa
Пікірлер: 8
This can work wonders for servlets where every new request is a virtual thread, crazy kind if performance for high usage scenarios
Thank you for the great presentation!
GREAT I HOPE TO SEE THIS VIRTUAL THREAD IN MY PROJECT SOON!
OMG, thank you!!!! 3 3
awesome video , thank you.
Thanks for this talk, very informative! Do virtual threads support traces and spans? How can you track a flow in the logs?
Object pools are still useful for avoiding Garbage Collection jitter. I keep hearing how the GC is just as fast as pooling objects, but the benchmarks usually say something else. Why would that not also be true of virtual threads?
What is the best practice here? Is it ok to automatically replace Thread with VirtualThread and Executor with virtual executor ?