Java NIO HttpClients

by Max Rohde,

Java's non-blocking IO (NIO) is a complex, yet amazingly powerful addition to Java to build scalable and performant network applications. The capabilities of Java NIO are particularly impressive if compared with alternative ways in the JRE to connect to web resources over http. Here is a small collection of libraries and tutorial, which can aid in building asynchronous Java NIO based http clients.

Open Source Projects

ProjectLicenseDependencies
Async Http ClientApache 2.0Netty 3.9.1
httpnioLGPLNone
NIO FrameworkLGPLv3None

Tutorials/Examples

High-Performance I/O with Java NIO: Nice tutorial with lots of code samples

The Rox Java NIO Tutorial: Great in-depth tutorial, including examples for SSL

SSL Echo Client and SSL Echo Server: SSL Client/Server example using NIO Framework listed above.

Java NIO Tutorials by Jakob Jenkov: Great tutorials to get started with Java NIO

SSL NIO from onjava.com: In depth discussion on SSL and NIO

Categories: java