I am developing an application that communicates with other applications with REST services, i.e. provides REST services on its own and consumes other REST services. In other words, the application runs both an HTTP server and a client.
I am currently using the Jetty Embedded Web Server and Apache HttpClient . Now I'm wondering if it would be easier to use a single single-threaded component that processes all incoming / outgoing HTTP requests / responses in non-blocking mode using Java NIO ?
Does it make sense? Do you know about an open source library that does this?
source share