chapter three
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 with each other is just like two people are talking to each other. For example, those people use a telephone to connect them together just like using gRPC for inter-service communication. In same way, people use language to understand each other, just like two services use Protocol Buffers to exchange their messages. It is important to select a proper communication style to have a healthy relationship. Now that we understand how important communication strategy is, let’s see how Protocol Buffers and gRPC are used together in microservice communication.