Member-only story
Microservices communication using gRPC Protocol
Hello everyone. In this article, we are going to learn about the gRPC protocol. gRPC has found huge success because of using HTTP/2 instead of HTTP/1.1 and protocol buffers instead of XML and JSON. The understanding of HTTP/2 and Protobuf is a pre-requisite to learning about gRPC
Please go through my below articles on HTTP/2 and ProtoBuf before reading about the gRPC protocol
gRPC Protocol = HTTP/2 + Protobuf
gRPC is widely used for communication between internal microservices majorly due to its high performance and its polyglot nature.
gRPC uses HTTP/2 as its transfer protocol and hence it inherits the benefits like binary framing from HTTP/2. As I mentioned in my previous article, HTTP/2 is robust, lightweight to transport, and safer to decode compared to other text-based protocols. Due to its binary nature, HTTP/2 forms a good combination with the Protobuf format.