© P.J. McNerney 2020
P. McNerneyBeginning Bazelhttps://doi.org/10.1007/978-1-4842-5194-2_8

8. gRPC and Bazel

P. J. McNerney1 
(1)
Blackhawk, CO, USA
 

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 ...

Get Beginning Bazel: Building and Testing for Java, Go, and More now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.