Overview of gRPC

Overview of gRPC

May 17, 2020

Written in March, 2020.

gRPC is the protocol using HTTP/2. For the details, please take a look for a official page. This page explains how to use it in go and how it behaves.

Types

There are some types for RPC.

  1. unary RPC
  2. server stream RPC
  3. client stream RPC
  4. bidirectional stream RPC

Using stream RPC, multiple messages can be sent on a single TCP connection.

Examples

Examples include unary RPC(SayHello) and server stream RPC(KeepReplyingHello).

  1. server/main.go
  2. client/main.go

Reference

Last updated on