You can take a look at LogNet grpc-spring-boot-starter to learn how to integrate gRPC into Spring Boot, it also has a section on Eureka.
According to the Eureka example, make sure that you do not create a new connection through gRPC for each call.
Depending on the implementation of the API gateway, it must also communicate with Eureka and access downstream services by logical name through gRPC.
As in the second part, just implement your business logic in Spring Services and redirect calls to them from transport-related abstractions (controllers and gRPC services).
If you wish, you can go even further and define all messages only in Protobuf. And then register Spring Protobuf Converter for HTTP.
source
share