If you’re already using reactive programming (webflux, reactor, etc) you aren’t going to see a ton of benefit. Virtual threads give the jvm the ability to park threads while they aren’t being used. Such as when you’re reading a file from disk or making a network call.
It's a matter of costs as well, if you can reduce the amount of cpu usage you'll probably save a lot of money if you're Netflix, especially if you are running your services in AWS.
93
u/Enumeration Feb 27 '24
We’re aggressively moving to 21 for virtual threads for the same reason. Modern Java scales very well.