1. What is GRPC?
gRPC is a high-performance, open-source, general-purpose RPC framework, launched by Google, based on:HTTP2The protocol is designed and developed as a standard, and is adopted by defaultProtocol BuffersData serialization protocol that supports multiple development languages. gRPC provides an easy way to precisely define services and automatically generate reliable feature libraries for both the client and the server. In gRPC clients, remote programs on different servers can be directly invoked, and the posture looks like calling local programs, making it easy to build distributed applications and services. As with many RPC systems, the server is responsible for implementing the defined interface and handling the client’s requests, and the client calls the required service directly according to the interface description. The client and server can be implemented in different languages supported by gRPC.
Key features:
- The powerful IDLgRPC uses ProtoBuf, a data serialization protocol (similar to XML, JSON, hessian) developed by Google to define services. ProtoBuf can serialize data and is widely used in data storage, communication protocols, etc.
- Multi-language supportgRPC supports multiple languages, and can automatically generate client and server function…