I have some very basic doubts on this topic. I have a legacy server written some 30 years ago in C, C++, that supports socket communication but it works great. I am in the process of writing a new java based client to connect to this server basically the goal is to expose the services (REST etc) for enterprise applications.
1) Should i go for plain java socket based approach or use Netty or Apache-Mina, what benefits i may have by using these modern apis in this scenario.
2) When using NIO based IO, does the sever also need to be a NIO based to take advantage of it or a NIO client to a legacy server (non NIO) would just work as good as it does with a NIO server.
Thank you very much