-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why not netty for networking? #373
Comments
@sasbury would have insight here.. |
Someone just ported to NIO, i am not sure that there is any performance benefit. As far as Netty goes I would say it is heavy dependency to add, but someone could build a version that uses that. |
Netty is not only reactive but also has "native transport" implementation, I'm no expert but if I recall correctly it instead of using NIO has some JNI magic that handles networking more directly which results in lower latency. TL;DR: I'd expect marginally but noticeably better performance. I'd love to see it implemented as part of this project. Java world is slowly turning reactive and sooner or later it will need to be implemented and I'm quite sure of it |
My concern is three fold. First, JNI brings new deployment issues to anyone using the library. Second, since this is a client library and not a server library many of the NIO type optimizations don't actually add much value. The library doesn't open lots of sockets, just the one to the server. Someone just did an NIO re-write, I am curious how it performs in comparison to old socket code. Netty itself brings a big dependency (with possible down stream dependencies). |
Closing, added won't fix label. sasbury's comments pretty well sums it up, so no need to elaborate. |
Hi!
Why the current implementation doesn't use netty?
The text was updated successfully, but these errors were encountered: