Overview of gRPC and how to use it for IPC
One of the leading ways to establish a straightforward way of communication between processes these days is gRPC. The acronym gRPC stands for either Google remote procedure call or the recursive name gRPC remote procedure call. You can pick whichever you like. Google developed it as a public version and improvement of their internal framework, Stubby.
gRPC uses Protocol Buffers (Protobufs). This is a format that describes the available commands, the messages, and the parameters you can pass. Protobufs are compiled into a binary form, resulting in faster data transfers. The system is built on HTTP/2, so we can use multiplexing (multiple requests over the same TCP connection). HTTP/2 has many more advantages over the older HTTP/1.x, most of which involve efficiency.
Cross-language and platform support was also one of the leading drivers. So, you can be sure gRPC can be used on many devices.
Suppose we want to rebuild our example of...