Spring / Spring gRPC Interview Questions
Can gRPC and Spring MVC or WebFlux REST endpoints run in the same application?
Yes. It's common to run both in a single Spring Boot process: the gRPC server (usually an embedded Netty server bound to something like port 9090) and the standard servlet or reactive web server (typically port 8080) start up side by side, sharing the same application context, beans, configuration, and lifecycle.
This is useful during a migration from REST to gRPC, or when a service needs to expose a public REST API while also talking gRPC internally to other services - the two stacks operate independently at the network layer but can share domain/service-layer beans underneath.
More Related questions...