Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
The performance benefit is close to be the same as writing reactive code. It grows with number of concurrent connections. In my final project for university I did some perf tests on kinda advanced business logic (jetty server with rest api, calling external web services, cassandra, redis) and got such results. Its not public, neither finished but checkout this one: https://github.com/tipsy/loomylin - tests made here are with small number of connections but when you go 10k difference is getting bigger (just remember to configure your host file limits and port ranges)
[1] https://github.com/openjdk/loom/blob/fibers/src/java.base/share/classes/java/lang/VirtualThread.java#L933
Related posts
- Virtual thread (along with Structured concurrency and Scope Local) is previewing in JDK19?
- Project Valhalla status summary
- Brian Goetz: "I think Project Loom is going to kill Reactive Programming"
- Java’s Project Loom, Virtual Threads and Structured Concurrency with Ron Pressler
- [Project Loom] New ea build based on jdk-17+13 is available for download.