Connection pool in tonic? #1134
-
According to the documentation of Channel : It is based on hyper::Client, the hyper::Client has a connection pool to for better performance. Therefore, we do not need the connection pool for tonic. However, after reading the source code of the Channel, I found that it is based on the HttpConnector, which does not support connection pool, as far as I know.... So, for better performance, do we still need a connection pool for tonic? Maybe using the hyper::Client as an underling implementation is better? Thanks in advance, sincerely~ |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Tonic uses the lower-level client from hyper https://github.com/hyperium/tonic/blob/master/tonic/src/transport/service/connection.rs#L5 and does not use its connection pool. |
Beta Was this translation helpful? Give feedback.
Tonic uses the lower-level client from hyper https://github.com/hyperium/tonic/blob/master/tonic/src/transport/service/connection.rs#L5 and does not use its connection pool.