The GRPC HTTP Proxy
- not need modify .proto
- not need generate code before compiler
- VS 2017 or gcc 7.0
- nghttp2
- protobuf
git submodule init
git submodule update
mkdir build
& cdbuild
cmake -G "Visual Studio 15 Win64" ..
- run your grpc server, listen port:
8888
- run your proxy of cmd:
grpc_proxy.exe 0.0.0.0 8080 127.0.0.1 8888 echo_service.proto
- use
curl -v -XPOST http:https://localhost:8080/sofa.pbrpc.test.EchoServer.Echo -d {"message":"hello"}
- Dont't create new connection to grpc server when every client enter.
- Use some internal HTTP API for control proxy server, eg compiler .proto from client runtime. even for reload .proto.