From what I've read, Google RPC (grpc) supports streaming. 

http://www.grpc.io

> On Mar 24, 2015, at 9:51 AM, Randy Abernethy <[email protected]> 
> wrote:
> 
> Hi Sinthuja,
> 
> The short answer is that Apache Thrift does not directly support streaming.
> 
> Apache Thrift is a serialization and RPC service framework. The RPC service
> part is designed around client server style interaction, the client makes a
> request and the server provides a response. Clients can send oneway
> messages to servers with no response (client->server streaming) but this is
> the reverse of what you want. One popular way to simulate streaming with
> Apache Thrift is long polling. The client calls a method on the server and
> the server only responds when the next block of data is ready. You could
> implement your next() method in such a way.
> 
> There are other possibilities but they begin to go a bit far afield of the
> current Apache Thrift charter.
> 
> Regards,
> Randy
> 
> On Tue, Mar 24, 2015 at 3:38 AM, Sinthuja Suhothayan <
> [email protected]> wrote:
> 
>> Hi all,
>> 
>> I'm currently in the process of developing a client/server by using thrift
>> in java, and I have requirement to do the $subject. Here my server connects
>> to a big data storage, and when client request for data, it should be
>> should be streamed. I'm expecting to return an Iterator on the data to the
>> client, and when the client do next() on the iterator, then the server
>> should send the next data item.
>> 
>> How can I achieve my requirement? Does thrift support streaming?
>> 
>> Thanks,
>> Sinthuja.
>> 

Reply via email to