Virtual Threads in Action!
Talkat JCON Europe 2023 · on Wednesday, 2023-06-21· at 11:00· Cinema Blackbox, Im Mediapark 1, 50670 Köln, Germany·
summary
Helidon Níma is a new web server built for JVM virtual threads (Project Loom / JDK19+ preview, aiming JDK21), using ForkJoinPool/newVirtualThreadPerTask to run one virtual thread per HTTP/1 request and one per connection/stream for HTTP/2. Measured results show doubled performance versus the previous reactive Helidon SE and quadrupled with HTTP/2+TLS; the implementation supports millions of threads in tests. Beware native I/O and synchronized blocks (use ReentrantLock or java.util.concurrent locks) and isolate long-running work on a dedicated executor.
AI-written summary · about
chapters (15)
- 0:00Intro
- 1:17Project Loom
- 2:43Virtual Threads (VT)
- 5:05VT and use of platform threads
- 13:38Structured Concurrency
- 16:45Scoped Values-why not ThreadLocal
- 20:49Helidon-history
- 21:56Helidon - Trade Offs
- 24:33Helidon Nima
- 25:55Nima & Virtual Threads
- 27:07Nima-peek into performance
- 28:42Nima & Other Loom features
- 29:24Lessons learned 1
- 37:00Obstruction of a thread
- 38:43Reactive vs Blocking
related talks
01h 13mReactive vs. Virtual threads power with Helidon Nima
45mVirtual Threads in the Real World: Fast, Robust Java Microservices with Helidon
41mHelidon - Microservices on Modern Java
47mVirtual Threads power with Helidon Nima
14mEmbracing Virtual Threads
53mVirtual Threads: Ushering in a New Era of Concurrency
40mInfinitely scalable microservices with Project Loom and Helidon
31mJava Virtual Threads
