Skip to content
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

how to use client pool in the gateway? #612

Closed
1 of 3 tasks
chuangyou opened this issue Apr 24, 2018 · 8 comments
Closed
1 of 3 tasks

how to use client pool in the gateway? #612

chuangyou opened this issue Apr 24, 2018 · 8 comments

Comments

@chuangyou
Copy link

chuangyou commented Apr 24, 2018

Please follow the general troubleshooting steps first:

  • Update your protoc to the latest version
  • Update your copy of grpc-gateway to the latest version from github. with
    git fetch https://github.com/grpc-ecosystem/grpc-gateway master && git reset --hard FETCH_HEAD
  • Delete the protoc-gen-grpc-gateway and protoc-gen-swagger binary from your PATH,
    and install locally built binaries.

Bug reports:

Fill in the following sections with explanations of what's gone wrong.

Steps you follow to reproduce the error:

Your steps here.

What did you expect to happen instead:

Your answer here.

What's your theory on why it isn't working:

Your theory here.

@achew22
Copy link
Collaborator

achew22 commented Apr 24, 2018

What have you tried?

@chuangyou
Copy link
Author

I want registered the endpoint and it can have multiple connection to service,mean is client pool.

@achew22
Copy link
Collaborator

achew22 commented Apr 24, 2018

That sounds like an interesting problem. Could you explain what you have tried thus far?

@chuangyou
Copy link
Author

I tried edit the "*.pb.gw.go-regxxxMethod Grpc.Dial" , I also tried registered multiple same endpoint,but this is very troublesome,maybe have plugin mechanism?

@chuangyou
Copy link
Author

registered multiple same endpoint was no useful

@achew22
Copy link
Collaborator

achew22 commented Apr 24, 2018 via email

@rogerhub
Copy link

Doesn't grpc-go already support multiple connections per client through the resolver and balancer packages? If you have multiple endpoints for your service, you could use those to establish multiple connections. Otherwise, h2 already does multiplexing, so what's the point of a connection pool?

@chuangyou
Copy link
Author

@rogerhub I want a endpoint used multiple connections to improve throughput,not multiple endpoints by multiple connections,athough H2 multiplexing,but a connection the throughput is always limited.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants