Spring / Spring gRPC Interview Questions
How do you configure the gRPC server port in a Spring Boot app using the community starter?
The port is set through standard Spring configuration properties, separate from the servlet/reactive HTTP port:
grpc: server: port: 9090
By default, the community starter runs an embedded Netty-based gRPC server that is entirely independent of Spring MVC/WebFlux's HTTP port (commonly 8080). This lets a single Spring Boot process serve REST on one port and gRPC on another simultaneously, sharing the same application context and beans but not the same listener.
More Related questions...