Protocol buffer compiler
While not mandatory, gRPC applications often leverage Protocol Buffers for service definitions and data serialization. All the services in Impulse uses version 3 of the protocol buffer language (proto3).
The protocol buffer compiler, protoc, is used to compile .proto
files, which contain service and message definitions.
How to install protoc
Mac OS
Install Protocol buffer compiler, protoc
Install Go plugins for the protocol compiler
Update your PATH so that the protoc compiler can find the plugins:
Compile .proto file
Regular Microservices (Depends on the go-grpc)
When compiling .proto
files from a microservice it is important to notice there is a dependency with the go-grpc
module, meaning, it needs to exist.
Microservices with no dependencies with the go-grpc module
From the go-grpc module:
For cases where the generic gRPC messages used by all the microservices existing in the go-grpc
module need to be updated.
Last updated
Was this helpful?