Does GRPC-java reuse SSL connections

159 views
Skip to first unread message

Robin Anil

unread,
Oct 26, 2016, 4:16:36 PM10/26/16
to grpc.io
We are having poor latencies with Google PubSub since switching over to GRPC. 



What is the low latency way of connecting using GRPC to connect to Pubsub over https that is onpar with doing connection reuse with SSL connections?

Create a new channel and stub per request?
Pre-create stubs with each channel and round-robin per request?
I have tried both and I can never get to the p90 performance of the old library

Robin

Carl Mastrangelo

unread,
Oct 27, 2016, 7:08:20 PM10/27/16
to grpc.io
A channel will reuse connections.  ManagedChannels are expensive to create, but stubs are basically free.  

Can you describe what your latency goals are?  gRPC Java on a closed loop is approximately 300 microseconds @50th, and 500 microseconds @99th. 

Louis Ryan

unread,
Oct 27, 2016, 7:22:44 PM10/27/16
to Carl Mastrangelo, grpc.io
Using a single channel is usually the right choice until you hit a certain level of traffic.

What is your aggregate QPS of calls here and total bandwidth?

--
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/8da48373-e3ee-4b51-b52a-8ad9429415f4%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages