service_demo
Python3 server and client examples for gRPC, Thrift and RPyC.
Service Example
TimeService
implentsget_time
RPC call.get_time
returns the current server time in string format.
Implementations
- grpc
- thrift
- thriftpy
- rpyc
- (Upcoming) grpc streaming
- (Upcoming) thrift streaming
- (Upcoming) rpyc streaming
How to use
-
Create an virtualenv and install requirements.
cd grpc pip3 install -r requirements.txt
-
Run Server in one terminal window:
python3 server.py
-
Run Client in another terminal:
python3 client.py