Helidon on Loom
summary
Helidon MP demo builds a blocking JAX-RS service with a slow endpoint that sleeps 5s sleep and a fast in-memory endpoint, runs it on a 10-thread pool and shows the classic starvation problem (fast requests time out while 10 slow requests block threads). Switching the JVM to Project Loom (Java 18 early-access) and using Executors.virtualThreadExecutor() removes blocking of OS threads and the same app hits about 20,000 req/s (reactive variant reached ~40–50k req/s in the demo).
AI-written summary · about
chapters (11)
- 0:00Start
- 0:43Introduction
- 1:31Project Loom
- 4:14Virtual Threads
- 7:13Configuration
- 8:07Use Case
- 12:03Slow Request
- 23:54Enable Preview
- 24:29What Would Be Suggested Default Halogen Flavor To Go with once Project Loom Comes to a Stable Release
- 25:20When Will Loon Be Available
- 25:56Conclusion
related talks
40mInfinitely scalable microservices with Project Loom and Helidon
38mJava Project Loom: Why Should I Care?
41mHelidon - Microservices on Modern Java
44mVirtual Threads in Action!
54mLooming in the cores
35mUntangled: Sneak peek at Project Loom
41mServices Reloaded Increased Throughput with Project Loom Virtual Threads
37mPrepare for what "Loom"s ahead
