Golang ClientConn/Client stubs goroutines

47 views
Skip to first unread message

an...@robotlovesyou.com

unread,
Jun 16, 2016, 1:48:48 PM6/16/16
to grpc.io
I'm quite surprised I can't find much talk about this which makes me suspect I'm searching for the wrong thing so please accept my apologies if it's been asked before.

Is it OK to call the same Client stub and underlying grpc.ClientConn from multiple goroutines or should I be creating a client connection per routine?

TIA

Andy

Qi Zhao

unread,
Jun 16, 2016, 3:23:01 PM6/16/16
to an...@robotlovesyou.com, grpc.io
It is okay. RPCs can be mulplexed on the same connection.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/c2e0966e-a30a-48cd-90ac-4e531fcaa44c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Thanks,
-Qi

an...@robotlovesyou.com

unread,
Jun 17, 2016, 5:07:46 AM6/17/16
to grpc.io, an...@robotlovesyou.com
Thanks Qi.


On Thursday, 16 June 2016 20:23:01 UTC+1, Qi Zhao wrote:
It is okay. RPCs can be mulplexed on the same connection.
On Thu, Jun 16, 2016 at 10:48 AM, <an...@robotlovesyou.com> wrote:
I'm quite surprised I can't find much talk about this which makes me suspect I'm searching for the wrong thing so please accept my apologies if it's been asked before.

Is it OK to call the same Client stub and underlying grpc.ClientConn from multiple goroutines or should I be creating a client connection per routine?

TIA

Andy

--
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+u...@googlegroups.com.

To post to this group, send email to grp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/c2e0966e-a30a-48cd-90ac-4e531fcaa44c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Thanks,
-Qi
Reply all
Reply to author
Forward
0 new messages