Because messaging systems are all I/O bound using virtual threads doesn't buy you all that much if anything at all. Everything is always waiting on I/O.
Obviously no architecture change will fix external I/O performance limits.
The advantage of an all-virtual thread architecture over a Netty based architecture is simplicity without sacrificing performance. The framework itself uses virtual threads throughout its WebServer, so your application code doesn't have to care about the distinction between an event-loop thread, worker pool, CompletionStage, reactive chain, and virtual thread.
Netty/Vert.x applications have the important, and often hard to enforce rule: "Never accidentally block the event loop." Quarkus tries to hide this from application programmers, but it's still there. Quarkus documentation still describes separate event-loop, worker-thread, and virtual-thread execution modes.
I'll just throw this in there, but Netty is also a very complex and dare I say annoying dependency. It's not 1 "netty" library that you end up bringing in, it's several which need each other and are often incompatible with one another between releases.
If for no other reason than simplifying the dependency tree, I'd support switching out netty.
View all comments
Show parent comment
7
u/SpudsRacer Oct 02 '26
Because messaging systems are all I/O bound using virtual threads doesn't buy you all that much if anything at all. Everything is always waiting on I/O.