Skip to content

ReyahSolutions/protobuf-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A quick tour of protobuf in microservice architecture

Contact

Setup

Clone

git clone https://github.com/ReyahSolutions/protobuf-tutorial

Requirements

  • Go
  • Java
  • Make

protoc

  • protoc: allows to generate gRPC server and client specifications.
    Download protoc the recommended way for your system.

Protobuf and gRPC toolchain for go

To generate Go code for gRPC services from Protobuf definitions, you'll need the following tools:

  • protoc-gen-go: allows to generate Go code from Protobuf files
  • protoc-gen-go-grpc: allows to generate Go code from Protobuf file specifically for gRPC.

These tools are automatically installed when running the client:

make install-tools

Protobuf and gRPC toolchain for java

Everything is automatically installed and generated when running:

make run

Usage

Start the server

cd server
make run

Start the client

cd client
make run

Links

doc.v1.2

Releases

No releases published

Packages

No packages published