A simple RPC example implemented using gRPC
Setup learnscalability/vm
Install project dependencies
$ cd ~/go/src/github.com/learnscalability/grpc-echo-service
$ glide installMake sure the protobuf generated pb package is up-to-date:
$ ./script/protoRunning the server
$ go run ./cmd/server/main.go -bind="0.0.0.0:3000"Running the client, both send and subscribe
$ go run ./cmd/client/main.go -message="hello there" -method="subscribe" -server="0.0.0.0:3000"Running the godoc tool
godoc -http=:8080then navigate to 192.168.33.10:8080/pkg/github.com/learnscalability/grpc-echo-service for godoc.org style docs.