From the course: Building Java Microservices with gRPC

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

gRPC framework features

gRPC framework features

From the course: Building Java Microservices with gRPC

Start my 1-month free trial

gRPC framework features

- [Woman] Let's take a look at the features of the GRPC framework. Firstly, as we said, it is more efficient for interprocess or interservice communication. Why? That has got two main reasons. The first one, it uses HTTP/2 protocol. Now this is a binary protocol. So as opposed to HTTP/1, which is tech spaced, the data that is transmitted in HTTP/2, is always in a binary format. Which means the conversion and reconversion from binary to text and text to binary that we spoke of earlier is no longer needed. Secondly, it implements protocol buffers. Protocol buffers or proto buffs, as they're commonly known as, is the interface definition language in GRPC. Proto buffs make it even faster to transmit messages between GRPC clients and servers. Next is GRPC has strictly defined interfaces. It promotes contract first approach, which means that you define the service contract first, before you work on any implementation details…

Contents