Hi, 

I am doing an experiment to decide whether my application should choose 
unary call, or bi-directional streaming. Here is what I observe by enable 
the debug logging:

for unary call, the tcp connection is created per call: 

client side single thread making 5 calls in a for loop: total 5 tcp 
connections - using blocking stub
client side multi-threaded making 5 calls at the same time: total 5 tcp 
connections - using block stub
bi-directional streaming making 5 requests: total 1 tcp connection - using 
async stub

So that means for unary call, it will always create new tcp connection 
every time? Can you please confirm this behaviour?

Thanks!

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/d9008445-256c-4b71-8d0d-526bd415b78b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to