3 Getting up and running with gRPC and Golang
This chapter covers
- Internals of working with Protocol Buffers
- Generating stubs from proto files
- Adding stub generation process into CI/CD pipeline by using Github Actions
- Maintaining proto files in a separate repository
- Maintaining backward and forward compatibility for Protocol Buffers
The communication of two services is just like two people talking. For example, those people use a telephone to connect them, like gRPC, for inter-service communication. In the same way, people use language to understand each other, just like two services use Protocol Buffers to exchange their messages. It is crucial to select a proper communication style for an effective relationship. Now that we understand the vital communication strategy, let's see how Protocol Buffers and gRPC are used together in microservice communication.