-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Description
Thank you for this great library! I wanted to inquire about an issue I'm having.
I have a fixed number of machines I wish to make potentially concurrent RPCs to.
I would like maintain a pool of connections (*grpc.ClientConn) to these machines.
Otherwise, for every RPC call I need to make a new connection, which has overhead (as I understand it) and also can exhaust the number of file descriptors when a large number of concurrent RPC's are taking place.
- What are the restrictions on using clients and connections concurrently?
- Can I simply maintain a single connection and attach multiple client stubs to it dynamically (more flexible), or can I only have a single stub of a given type for a connection?
- My expectation is that I need to maintain my own pool with occasional heartbeats to maintain the health of the connection. Is that correct?
dhowden, lizhongz, izouxv, rasecoiac03, vadv and 50 moresimon8410, rasecoiac03, vitalyisaev2, hieven, wuxinwei and 4 more
Metadata
Metadata
Assignees
Labels
No labels