GRPC server with spring boot on pod

5/25/2017

I am able to set up standalone GRPC ( in Java) server on pods and its communicating with my local GRPC (nodejs) client over http2.

Now as a next step - I am trying to set up GRPC server + spring boot on our pods -

  1. Do I have to start spring boot and GRPC as two separate processes on different ports ? Limitation on pod is if I start main process (Spring boot process in this case ?) I can not start child process (GRPC server in this case ?)another process on a different port.
  2. How can I ensure that the spring boot + grpc server communicates over http2

I see documentation with spring boot + eureka server + grpc but need to understand above details to proceed.

-- Nitin Lodhe
grpc
grpc-java
kubernetes
spring-boot

1 Answer

8/2/2017
  1. You can start spring-boot and GRPC in the one process and listening different ports at the same time.

  2. gRPC server communicates over http2 if you start the gRPC server by io.grpc.netty.NettyServerBuilder

You can see the project in https://github.com/LogNet/grpc-spring-boot-starter

-- Z fp
Source: StackOverflow