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

REST gateway over RPCS? #789

Closed
vaishali-ntnx opened this issue Oct 26, 2018 · 4 comments
Closed

REST gateway over RPCS? #789

vaishali-ntnx opened this issue Oct 26, 2018 · 4 comments

Comments

@vaishali-ntnx
Copy link

I have some existing rpc clients which communicate over http1.1. Thus I cannot update my server to grpc server but still want to provide REST support to new clients. Is there a way to achieve it without moving to grpcs? If there is any other workaround possible without changing the clients, that will also be helpful.

@johanbrandhorst
Copy link
Collaborator

Hi @vaishalig2693. This isn't really an issue so I will try to answer your question and then close it and redirect you to the channels we recommend in the issue template.

It's possible to expose both gRPC and REST on the same server, or even the same port. See https://coreos.com/blog/grpc-protobufs-swagger.html for an example. I'm not sure exactly what you're asking though. Can you direct your further questions to the #grpc-gateway channel on gopher slack?

@vaishali-ntnx
Copy link
Author

As I said, I can't run a grpc server as it is over http2 protocol and my existing clients using http1.1 protocol will fail

@ivucica
Copy link
Collaborator

ivucica commented Nov 6, 2018

I've successfully used cmux to put both HTTP/2 + gRPC frontend and an HTTP/1.1 frontend on the same port.

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