Home

Awesome

grpc-golang-workshop

In this workshop, you will learn using Golang or Python how to build a gRPC server, a gRPC client and how to deploy a gRPC server using docker.

Based on the official gRPC workshop - https://codelabs.developers.google.com/codelabs/cloud-grpc/index.html - Where I extended to include deploying gRPC server using docker and learn to implement a gRPC client/gRPC server using Golang and Python.

Installing the Training Material

    $ mkdir -p $GOPATH/src/github.com/mresti && cd $_
    $ git clone https://github.com/mresti/grpc-workshop.git

Go Get The Training Material

    $ go get github.com/mresti/grpc-workshop

Versions of dependencies

Requirements

Dependencies golang

    $ go get -u google.golang.org/grpc
    $ go get -u github.com/golang/protobuf/proto 
    $ go get -u github.com/golang/protobuf/protoc-gen-go

Dpendencies python

    $ pip install virtualenv
    $ virtualenv venv
    $ source venv/bin/activate   
    (venv) $ pip install grpcio
    (venv) $ pip install grpcio-tools
    (venv) $ pip install googleapis-common-protos
    (venv) $ pip install pyee

Or using requirements.txt file:

    (venv) $ pip install -r requirements.txt

Table of Contents

What we covered with this workshop:

Steps to learn gRPC

gRPC 101 Presentation

Slides that go along with the talk.

Also, see this video for general introduction to gRPC: Talk

Learn gRPC:

Golang

gRPC golang workshop

Python

gRPC python workshop