Search code examples
springrx-javareactive-programmingrx-androidproject-reactor

Is there any asynchronous up-to-date http client for RxJava?


Reactor-core and Spring 5 have just introduced the new async WebClient for their Mono/Flux Publishers.

Since it's very usual to wrap a RestTemplate request with an Observable and subscribeOn it to provide asynchronicity I was wondering if there was any async client for RxJava.

I found https://github.com/ReactiveX/RxApacheHttp but it seems to be unsupported, its last commit is from 2014, and isn't even working in my tests.


Solution

  • You can use RxNetty(https://github.com/ReactiveX/RxNetty) that is based on Netty.

    You can also use Netflix Ribbon (https://github.com/Netflix/ribbon) together with RxNetty.