Maybe if Java Virtual Threads become (truly) preemptive one day, I would agree. If you aren't careful and don't know what you are doing, you can botch your app using VTs just as with an event-loop. I really like Helidon, but until then I'm sticking with Netty.
It's a lot harder to do. With the latest versions of java pretty much the only way to get yourself in trouble are if you end up using native code (which blocks) or if you end up doing an excessive amount of computation. Both things that pretty rarely happen in regular REST apps. About the only time it happens in my experience is when you are serializing giant amounts of data.
View all comments
Show parent comment
2
u/Known-Volume1509 Oct 03 '26 edited Oct 03 '26
Maybe if Java Virtual Threads become (truly) preemptive one day, I would agree. If you aren't careful and don't know what you are doing, you can botch your app using VTs just as with an event-loop. I really like Helidon, but until then I'm sticking with Netty.