Any example of GRPC Asynch Client and Server with RPC using Stream Message?

1,934 views
Skip to first unread message

deshm...@gmail.com

unread,
Jul 11, 2016, 2:20:59 AM7/11/16
to grpc.io

Any if used GRPC Asynch Client and Server with RPC using Stream Message, please share some information.
GRPC example HelloWorld( async greeter) does not use stream message.

I will be using something like:

In Proto:

Service xyz
{
rpc Req1(Reqmsg) returns (stream events) {}

--Instead of

rpc SayHello (HelloRequest) returns (HelloReply) {}
}

Few of difference I could figure out: 

Instead of  ServerAsyncResponseWriter, ClientAsyncResponseReader; we have to use: ServerAsyncWriter and ClientAsyncReader.

Please share some information if anyone came across such implementations.

deshm...@gmail.com

unread,
Jul 11, 2016, 3:41:14 AM7/11/16
to grpc.io, deshm...@gmail.com
Query is for C++ GRPC

Vijay Pai

unread,
Jul 12, 2016, 6:36:09 PM7/12/16
to grpc.io, deshm...@gmail.com
Hello,
I would recommend seeing test/cpp/qps/async_end2end_test.cc , particularly the SimpleServerStreaming code. This is a case where there is a client-side simple request that leads to a server returning a stream of responses, all of which are async.
Hope that helps!
Vijay

deshm...@gmail.com

unread,
Jul 15, 2016, 7:50:27 AM7/15/16
to grpc.io, deshm...@gmail.com
 Hello Vijay,


Thanks. I will check these examples.

Regards,
Sachin
Reply all
Reply to author
Forward
0 new messages