C++ Client completion queue

35 views
Skip to first unread message

Shiran

unread,
Nov 26, 2017, 8:26:21 AM11/26/17
to grpc.io
Hi
I am implementing async clients.

I am trying to understand how many completion queues I should have on the client side
The options that I thought about are:
1. one in process
2. one per core in system 
3. one per stub

In each case one thread to loop over it.

All the examples I saw, there was only one client (one stub), so I am not sure what is the way to go.

Thanks
Shiran

Craig Tiller

unread,
Nov 28, 2017, 8:47:15 PM11/28/17
to grpc.io
For best throughput, one thread per cq, and one cq per core.
Reply all
Reply to author
Forward
0 new messages