grpc-go

module
v0.0.0-...-ae98afb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2022 License: MIT

README

Grpc Golang Course

This is a companion repository for my Golang gRPC course

Content

  • Greeting Service
  • Calculator Service
  • Unary, Server Streaming, Client Streaming, BiDi Streaming
  • Error Handling, Deadlines, SSL Encryption
  • Blog API CRUD w/ MongoDB Creates an RPC communication between the client and the server.

There are 4 kinds of API calls implemented.

  1. Unary: (1<---->1) One request is sent from the client and one response back from the server. Works like a HTTP request
  2. Client Streaming: (N<---->1) Multiple requests sent from the client and one response back from the server.
  3. Server Streaming: (1<---->N) One request sent from the client and multiple responses back from the server
  4. BiDi Streaming: (N<---->N) Multiple requests sent from the client and multiple responses back from the server.

In the generate.sh file I have included the corresponding commands to generate the proto file as well as run server and client.

The client's code is not required to run if you have some kind of tool that replicates the client - like evans. Evans is a cmd app used to run gRPC commands.

Directories

Path Synopsis
blog
calculator
greet

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL