thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ZHOU Xiaobo <>
Subject About non-blocking Client
Date Tue, 04 Jan 2011 16:38:10 GMT
Hi everyone:

I encounter a situation that when a non-blocking server(say Server_A) processes a request(say
it sends several(say 3) requests to the server(s) behind it. Server_A constructs the response
after all the 3 responses from the behind servers arrives.

So my question is: how can I handle the 3 requests/responses in a non-blocking way?
I guest one approach is that I define these 3 requests 'oneway' services of the behind server(s)
and the 3 responses 'oneway' services of Sever_A. (Does it work?)
But I think it's a tricky way because the responses (from the behind servers) come from a
connection( e.x. TCP).

ICE( Internet Communication Engine) can store the requests to a container( ex. std::vector),
one response comes, the callback functions can traverse the container to find the corresponding

Does Thrift support this policy?

thanks a lotƯ

View raw message