πŸ“šWhat is GRPC ?

What is grpc?

Grpc is one of the open source framework that was developed by Google. It used for communication between service like REST. It use Protocol buffer in part of data serialization and code generation.

Protocol Buffer

Protocol Buffers are language-neutral, platform-neutral extensible mechanisms for serializing structured data. This format will be used to generate the interface for development. The Advantage

  1. Using HTTP 2

  2. the data that will be sent is binary (light) so it will has good performance more than REST . Both REST and gRPC support binary data transmission. However, in REST, data is typically sent in JSON format, which is text-based and requires conversion to binary using techniques like Base64 encoding. On the other hand, gRPC uses Protocol Buffers, a binary serialization format, by default. This results in more efficient data transmission compared to REST.

  3. The communction is Unary Client-Request or Bidirectional/Streaming but REST is Client-Request Only.

  4. Have own built-in code generation

Drawbacks

  1. Not support browser, It mean you can use for the communication between service and service (BE to BE)

  2. Take so much time in implementation

Last updated