Skip to content

Simple client-server architecture showing how gRPC works.

License

Notifications You must be signed in to change notification settings

giefferre/grpc-usage-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gRPC Usage Example

Go Report Card Updates Python 3

A simple client-server architecture showing how gRPC works.

Contains:

  • A Server, implemented in Go
  • A Client, implemented in Python

Running

In order to simplify the execution, a convenient Makefile is provided.

That said, Docker and make is all you need to run both server and client.

Server

Run server first by opening a bash console and executing make run-server.

The command will download Go image, get the dependencies, build the application and run it.

Client

Open a bash console and execute make run-client.

The command will download Python 3 image, get dependencies and run the application.

Protobuf compilation

If you want to apply changes you will have to recompile the .proto file.

You will need:

Execution:

Open a bash console and execute make proto-generation.

This command will generate both Go and Python code in the right place.

About

Simple client-server architecture showing how gRPC works.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published