Types of gRPC Endpoints
In this chapter, we are going to see the different types of gRPC endpoints that you can write. For each of the endpoints, we are going to understand what the idea behind the type of communication we are talking about is, and we are going to define an RPC endpoint in our Protobuf service. Finally, we are going to implement that endpoint and write a client to consume the endpoint. At the end of this chapter, the goal is to implement a TODO API that will let us create, update, delete, and list the tasks in our TODO list.
In this chapter, we’re going to cover the following main topics:
- What the four types of RPC endpoints you can write are
- When to use each of them
- How to implement the endpoint’s logic
- How to consume a gRPC endpoint