Open ispringer opened 9 years ago
Hi there. There's also https://github.com/Netflix/ribbon/issues/239 that I guess is the same. Luckily someone would mark one of them as duplicate and would answer it, but it seems that no one at netflix is currently working on this project right now.
I missed that one. Thanks.
Yeah, I also noticed that the project appears dead. Last commit was 3 months ago...
I had the same question...
I think we are meant to use: io.reactivex.netty.protocol.http.client.HttpClient
Something like this:
ConfigurationManager.loadCascadedPropertiesFromResources(serviceName);
IClientConfig clientConfig = IClientConfig.Builder.newBuilder(url).build();
clientConfig.set(IClientConfigKey.Keys.ListOfServers, url);
LoadBalancingHttpClient<ByteBuf, ByteBuf> ribbonClient = RibbonTransport.newHttpClient(clientConfig);
Nice! I read they are accepting PRs, so maybe you could create one :)
com.netflix.niws.client.http.RestClient is marked as deprecated, but it is not clear what the replacement API is. The javadoc comment says "Please see ribbon-rxnetty module for the Netty based client", but that didn't help me figure out what the replacement API is and how to use it. The docs still talk about RestClient, e.g. https://github.com/Netflix/ribbon/wiki/Getting-Started. If the class is truly deprecated, please update the docs with examples of using the replacement API. Otherwise, undeprecate it.