thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject RE: Does thrift support one-client communicating with multi-servers?
Date Thu, 28 Jul 2011 08:11:37 GMT
You also can have Apache ZooKeeper on top of thrift to manage failover

Thanks and Regards 
Architect - Technology, GTO - SOA CoE
Cognizant Technology Solutions, BTP, Bangalore
Mobile:+91-9739386923; Vnet: 58157; Direct: +91-80-30748157

-----Original Message-----
From: Chiku [] 
Sent: Thursday, July 28, 2011 12:06 PM
Subject: Re: Does thrift support one-client communicating with

You will have to write your own wrapper for that.

As far as I know, Thrift has no such aggregation service and in my
there is a reason for that too:

1) What if a Server fails to respond to the request? How does the
react? It will be very specific to what kind of behavior you want to
 Example: Ignore the request which is taking a lot of time? All the
requests become invalid or not.

On Thu, Jul 28, 2011 at 10:34 AM, chang liu <>

> Hi,
> I have a cluster of servers running the same service but with
> data, an aggregator acting as a client in front of the cluster
> to all of the servers and collects data from each service, so the
> gets a data set finally. I am going to use thrift as the RPC
> the service defination is below:
> service MyService {
>    Data call(1:Param param);
> }
> But the generated code only has the method I defined, I wish some
> like this:
> List<Data> callMulti(1:Param param);
> to be generated from the defination above. Maybe there is also
necessary to
> have some TTransport implementation like TMultiServerTransport.
> Is there any way to archive this?
> Any Advice will be appropriated.
This e-mail and any files transmitted with it are for the sole use of the intended recipient(s)
and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and destroy
all copies of the original message.
Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of
this email or any action taken in reliance on this e-mail is strictly prohibited and may be

View raw message