Async clients and completion queues

103 views
Skip to first unread message

Todd Defilippi

unread,
Mar 22, 2018, 2:15:13 PM3/22/18
to grpc.io
I have a number of async clients that are connecting to services on multiple async servers.  Should each client have its own completion queue or does it need to be shared among all clients?  (Or are both allowable and it's a design choice?)

On a related note, I'm trying to pin down the correct sequence for shutting everything down.  I believe it is:
- Tear down all client connections (delete stub, reader, etc.).
- Call Shutdown on the completion queue.
- Drain the completion queue of any remaining events.
- Destroy completion queue.

Is that right?

Thanks,
Todd

Sree Kuchibhotla

unread,
May 21, 2018, 1:24:32 PM5/21/18
to grpc.io
Completion queues can be shared among multiple clients. 

Yes, for shutdown, yes you got the sequence right
Reply all
Reply to author
Forward
0 new messages