In Chapter 6, you discovered the use of Protocol Buffers to provide a succinct, well-typed, and easily serialized data description that worked across languages. As a corollary, Bazel provided an easy way to depend upon the Protocol Buffers. In this chapter, we will explore the use of Protocol Buffers to also easily define APIs to work across various languages.
The Protocol Buffer format is used to define APIs via gRPC, which is Google’s way of creating remote procedure calls (RPCs). In a similar fashion to Protocol Buffers normalizing data access across multiple languages, gRPC normalizes making RPCs ...