Keeping the client channel alive for constant streaming

33 views
Skip to first unread message

Anirudh Kasturi

unread,
Jul 28, 2017, 2:50:58 PM7/28/17
to grpc.io
Hello folks,

I am trying to stream incoming packets on my interface to a GRPC server.  So every 10 seconds,  I read the packets from a database where my packets are written to when they get into my interface.  

Then stream those packets synchronously to a Grcp server.  How can I keep the client side streaming's channel alive without closing so that my client doesn't close the channel and open a new channel every 10 seconds?  Maybe there is some way to create a persistent channel?

Spencer Fang

unread,
Jul 28, 2017, 5:09:57 PM7/28/17
to Anirudh Kasturi, grpc.io
The channel stays open between RPCs and can be reused. Are you seeing that the channel is closed between RPCs? Also, which language are you using grpc from?

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscribe@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/d8bac0ec-16f4-4364-ae50-34bff61fc010%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Spencer Fang
Reply all
Reply to author
Forward
0 new messages