gRPC for Binary Communication
Service-to-service communication does not need to be via REST passing JSON data. Performance and cost are important factors to consider when it comes to using gRPC, a binary and platform-independent communication technology. Reducing the data that’s transferred can increase performance and reduce costs.
In this chapter, we’ll change some services in the Codebreaker solution so that they offer gRPC instead or in addition to REST services. You’ll learn how gRPC differs from REST, as well as how to create services and clients using this binary communication technology.
In this chapter, you’ll learn how to do the following:
- Configure a service project to use gRPC
- Create a platform-independent communication contract with Protobuf
- Create gRPC services
- Create clients that call gRPC services