Netflix/ribbon — pull request #51 by allenxwang (2013-10-17 01:06:55+00:00)
Title: Add async HTTP support based on Apache's HttpAsyncClient

Compared with Netty, Apache's HttpAsyncClient seems to be easier to integrate into Ribbon's higher level async interface design. Another significant advantage is that it has built-in connection pool support.

So the plan is to merge this first and continue working on Netty's integration with Ribbon.

Here are the new features provided:

- Execute simple async request/response with response buffering
- Support streaming with customized stream decoder
- Use a wrapper to provide RxJava's Observable APIs, while providing the simple callback based APIs at the same time
- Async execution with load balancers
- Customizable serialization
- Async execution with cancelable back up requests

The new HttpRequest and HttpResponse will be used by both RestClient and AsyncHttpClient while RestClient's specific request/response classes are hidden or deprecated.

Some APIs in AbstractLoadBalancerAwareClient is factored out to LoadBalancerContext to be used by AsyncLoadBalancingClient.

Examples are provided in ribbon-examples sub project.