Chapter 2: When gRPC Is the Best Tool and When It Isn't
In this chapter, we will cover use cases for Google Remote Procedure Call (gRPC). We will use sample applications to demonstrate why gRPC is a great tool to be used in some scenarios but isn't the best one for other scenarios.
The main objective of this chapter is to demonstrate how convenient it is to use gRPC for microservices architecture and asynchronous communication, but you will also be shown how inconvenient it is to use gRPC in a browser or on any platform that doesn't support the HyperText Transfer Protocol 2 (HTTP/2) protocol. You will also be shown alternative technologies you can use when gRPC is not the best answer.
We will cover the following topics in this chapter:
- Why gRPC is a great tool for microservices
- How gRPC can be a good tool for asynchronous communication
- Why gRPC is not the best tool for browsers
- Where SignalR would beat gRPC
By the end of this chapter...