gRPC is a general-purpose Remote Procedure Call-based framework. It works very well in RPC style, which involves the following steps:
- You define the service interface by defining the various method signatures, including its parameters and return type.
- You implement this service interface on the server to allow remote calls.
- You generate the stub of the service interface and use it in client applications. The client application calls the stub, which is a call to a local object. Then, the stub communicates to the gRPC server and the returned value is passed to the gRPC client. This is shown in the following diagram:
So, the client application just makes a local object (stub) call and gets the response. The server ...