Let's say a Client is calling ServiceA which is in turn calling ServiceB. The method calls in ServiceA and ServiceB are Async by using ListenableFutures.
In the ServiceA method call "doSomeWorkA", I don't want to wait on the Future returned by ServiceB, so It won't impact the throughput. Please note that I need to construct ProcessedResultA from ProcessedResultB
Can you help on how to do this.
@ThriftService
public interface ServiceA {
// Calls ServiceB
@ThriftMethod
public ListenableFuture<ProcessedResultA> doSomeWorkA(String input);
}
@ThriftService
public interface ServiceB {
@ThriftMethod
public ListenableFuture<ProcessedResultB> doSomeWorkB(String input);
}
Let's say a Client is calling ServiceA which is in turn calling ServiceB. The method calls in ServiceA and ServiceB are Async by using ListenableFutures.
In the ServiceA method call "doSomeWorkA", I don't want to wait on the Future returned by ServiceB, so It won't impact the throughput. Please note that I need to construct ProcessedResultA from ProcessedResultB
Can you help on how to do this.