spring-projects-experimental / spring-grpc

18 stars 3 forks source link

Support using the same port for Spring MVC and gRPC #18

Open making opened 6 days ago

making commented 6 days ago

In some environments, such as PaaS or Knative, using multiple ports may not be the default. It would be very convenient to be able to serve plain Spring MVC and gRCP on 8080.

I don't know what it uses internally, but Armeria has made it possible. https://armeria.dev/docs/advanced-spring-boot-integration

dsyer commented 6 days ago

See also existing implementation in https://github.com/grpc/grpc-java/tree/master/servlet (link from #14). We can copy that if it works. Not sure if it needs to be a separate jar or not.