Building Efficient Microservices Using gRPC
In this chapter, you will be introduced to gRPC, which enables a developer to build highly efficient services across most platforms. However, web browsers do not have full support for programmatic access to all features of HTTP/2, which is required by gRPC. This makes gRPC most useful for implementing intermediate tier-to-tier services and microservices because they must perform a lot of communication between multiple microservices to achieve a complete task.
Improving the efficiency of that communication is vital to success for the scalability and performance of microservices. A monolithic, two-tier, client-to-service style service could get away with being less efficient because there is only one layer of communication. The more tiers and therefore the more layers of communication there are between microservices, the more important efficient communication between those layers becomes, as shown in Figure 12.1:
Figure 12.1...