DZone

When we have done HTTP to gRPC transcoding with help of envoy gRPC-JSON transcoder, then we must have gone through the following steps:

  1. Use google.api.http to annotate gRPC services
  2. Configure protoc to generate proto descriptor set
  3. Configure envoy proxy filter_chains on another port

To facilitate this procedure, some automation scripts are needed. Not trivial considering processing generated code and descriptors, packaging and distributing them differently, and configurations. When we provide gRPC services with grpc-java anyway and use spring-web to knit components together, we can tremendously simplify the work required to transcode HTTP to gRPC, namely:

Source: DZone