Recently I was looking a library or framework for non-blocking I/O. JBoss Netty and Apache Mina are very famous for that, but I really like something more simple (remembering that I didn’t do a good test with the libraries/frameworks).
So, I had luck and found the Async Http Client library. Below we have a brief description of the library:
Async Http Client library purpose is to allow Java applications
to easily execute HTTP requests and asynchronously process the HTTP responses.
Using this library with few lines of code you can call some resources asynchronously using HTTP as protocol, for example. Non-blocking I/O brings the benefits of scalability to the applications as well as the increase of threads without crash your backend.
I will put myself to take a look more specifically in theses approaches and frameworks. Maybe, I’ll write some posts about that.Tweet