/simple-grpc

This is a simple grpc example using python for both server and client

Primary LanguagePython

A simple gRPC example

The project is a simple example to demonstrate how gRPC works using python ( both server and client ). In gRPC, an application, client, can directly call a method in another application, server, running remotely in a different machine. The operation is almost as fast as a local method/function call.

For further reading, refer to https://grpc.io/docs/what-is-grpc/

To install gRPC tools, run

python -m pip install grpcio-tools

Run the command to generate the gRPC code:

python -m grpc_tools.protoc -I ./protos/ --python_out=./ --grpc_python_out=. ./protos/summation.proto

Execution Instruction

  1. Run the Server
python server.py
  1. Run the client
python client.py