Summary
In this chapter, we covered the basics of synchronous communication and learned how to make microservices communicate with each other using the Protocol Buffers serialization format and gRPC communication framework. We illustrated how to define our service APIs using the Protocol Buffers schema language and generate code that can be reused in microservice applications written in Go and other languages. Then, we implemented gRPC client and server components and discussed some of the best practices for establishing synchronous communication.
The knowledge you have gained in this chapter should help you write and maintain the existing services using Protocol Buffers and gRPC, as well as serve as an example of how to use code generation for your services.
In the next chapter, we are going to continue our journey and look into different ways of communication by covering another model: asynchronous communication.