gRPC初试

开发环境:
win10 terminal ubuntu

前提条件:

#安装依赖库zlib
sudo apt-get install zlib1g-dev
apt-get install build-essential autoconf libtool pkg-config

编译安装gRPC:

git clone -b $(curl -L https://grpc.io/release) https://github.com/grpc/grpc
cd grpc
git submodule update --init
make
sudo make install

编译安装protobuf:

hellworld:

传送门:
对内gRPC,对外Restful Api