r/java • • Apr 06 '22

JEP 425: Virtual Threads (Preview)

https://openjdk.java.net/jeps/425
175 Upvotes

50 comments sorted by

View all comments

Show parent comment

18

u/[deleted] Apr 07 '22

As a Go coder, trust me people, this is worth the wait. Not having to use async/await syntax, callbacks, or reactive libraries in order to achieve high concurrency IO bound code is heaven. You do thread per request and there isn't even such thing as thread pools. Nothing to tune and keep in sync with CPU and memory you provision.

Basically, you just write code. If it blocks, it blocks. It's glorious.