vic4key / grpc-demo

simple gRPC server/client examples in Node and Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gRPC samples

Super simple gRPC samples in Node.js and Python. Both version are compatible to each other. More about gRPC, see http://www.grpc.io/

Node.js

Setup

npm install

Server

node nodejs/server.js

Client

node nodejs/client.js

Python

Setup

pip install -r requirements.txt
python -m grpc.tools.protoc -I=. --python_out=./python --grpc_python_out=./python sample.proto

Server

python python/server.js

Client

python python/client.py

About

simple gRPC server/client examples in Node and Python


Languages

Language:JavaScript 43.2%Language:Python 40.3%Language:Protocol Buffer 16.5%