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

Using Spring 5 webflux with GRPC uses 2 different ports #65

Open
bbarin opened this issue Oct 30, 2017 · 3 comments
Open

Using Spring 5 webflux with GRPC uses 2 different ports #65

bbarin opened this issue Oct 30, 2017 · 3 comments

Comments

@bbarin
Copy link

bbarin commented Oct 30, 2017

Hey guys, first of all kudos for the great job you've done.
Actually, I'm trying to spin up a Spring Boot (2.0) Webflux server exposing some REST APIs through
netty. This works fine and now I would like to give an extra alternative adding gRPC to the game.
I've managed to expose it but via another port (8080 for REST API, 9090 for gRPC).
Maybe that's unfeasible since gRPC requires HTTP 2 and the REST APIs can work with HTTP 1, but would be great if both options share the same port.

@jvmlet
Copy link
Collaborator

jvmlet commented Oct 30, 2017

Hi
Looks like you are after grpc reverse proxy...
Does it help?
I'm not sure you can serve 2 services on the same port without reverse proxy...

@bbarin
Copy link
Author

bbarin commented Oct 31, 2017

I've already looked at that project, but would like to have a single server providing the two connection options. Also, that project auto-generates REST endpoints which is not as nice as handcrafted one.
Anyway, thanks for the answer.

@pink-lucifer
Copy link
Contributor

@bbarin from Grpc-java side, please refer to grpc/grpc-java#3458

And more from grpc-go --- grpc/grpc-go#75

Hope this helps . .

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