The goal of this project is to explore java non-blocking I/O capabilities without using external dependencies and deliver a tinny library that can be used to build scalable network services.
Since the reactor thread can saturate doing IO, nioreactor uses an acceptor thread that forwards new connections to a pool of reactors that can handle reads and writes in non-blocking mode.
- Maven 2.2.0 or above
- Java 8 or above
To build:
- git clone https://github.com/ribeirux/nioreactor.git
mvn clean install
This projects comes with 2 examples:
- EchoServer which sends back any received data
- PongServer which send a "Pong" message back whenever a client connects to the server