Summary
In this chapter, we saw the different types of APIs we can write in gRPC. We saw that we can create similar API endpoints as the ones we are used to in REST APIs. These endpoints are called unary endpoints. Then, we saw that we can make server streaming APIs to let the server return multiple responses. Similarly, we saw that a client can return multiple requests with client streaming. And finally, we saw that we can “mix” server and client streaming to get bidirectional streaming.
Our current endpoints are simplistic and do not handle a lot of cases that are crucial for production-grade APIs.
In the next chapter, we will start seeing what we can improve at the API level. This will let us first focus on the usability of the API before diving deeper into all the aspects of production-grade APIs.