-
Notifications
You must be signed in to change notification settings - Fork 619
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
grpc@grpc-js connections pool documents #1899
Comments
gRPC does not use connection pools, as the term is commonly used. gRPC establishes a single connection to each backend, and sends all requests along that single connection. Some names may resolve to more than one backend (e.g. a DNS name may have both A and AAAA records, or multiple records of either kind), which may result in connections being established either to only one of those backends or to all of them, depending on the load balancing policy in use. Open connections are reused if a different client connects to the same server, which is connection pooling in a different sense. |
Thanks! |
@murgatroid99 How does your comment go in line with the following?
https://grpc.io/docs/guides/performance/ Are you saying actually it is more like between 0 and 1 HTTP/2 connections? |
I said
If the client establishes connections to more than one backend, then it will use more than one connection. |
hi, I want to know how many connections grpc@grpc-js will open by default, whether there is a concept of connection pool, or where there are related documents to read
The text was updated successfully, but these errors were encountered: