Add Virtual thread Netty NIO transport#6047
Open
franz1981 wants to merge 1 commit intoeclipse-vertx:masterfrom
Open
Add Virtual thread Netty NIO transport#6047franz1981 wants to merge 1 commit intoeclipse-vertx:masterfrom
franz1981 wants to merge 1 commit intoeclipse-vertx:masterfrom
Conversation
Run Netty NIO event loops as long-running virtual threads instead of platform threads. Uses ManualIoEventLoop from Netty 4.2 to manually drive IO polling and task execution from virtual threads, allowing the JVM's ForkJoinPool scheduler to multiplex event loops alongside other virtual threads. Adds VirtualThreadNioTransport (SPI), Transport.VIRTUAL_THREAD_NIO (public API), VertxTestBase support, and a VirtualThreadNio Maven profile to run the full test suite with this transport.
14babee to
9f7b8fb
Compare
franz1981
commented
Mar 27, 2026
| case "io_uring": | ||
| transport = Transport.IO_URING; | ||
| break; | ||
| case "virtual_thread_nio": |
Contributor
Author
There was a problem hiding this comment.
@vietj This could be implemented via the SPI in Quarkus straight on too TBH
@cescoffier I still see the value of having the lower level impls in Vertx if Vertx users can benefit of this
If not, I can send a PR to our Vertx 5 Quarkus branch or @jponge could port this too in the quarkus way.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Run Netty NIO event loops as long-running virtual threads instead of platform thread