2 years ago
#59557
prassank
Exposing domain model in GRPC IDL
We have our existing domain model consumed using spring REST. The services are currently hosted on Kuberenetes and all east-west and north-south communication is done using http/1.1. We are planning migrate some of the services to GRPC on http/2.0. With GRPC the need for implementing IDL introduces some form of code duplication in both domain model (Java) and IDL (protobuf). Is this not an anti pattern, where representation of underlying domain exists in more than one place. Is there a way to avoid it.
kubernetes
spring-rest
grpc-java
0 Answers
Your Answer