make install-proto
OR:
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2
export PATH="$PATH:$(go env GOPATH)/bin"
make run-http
make run-grpc
GIST: At high throughput, GRPC is quite fast even in a local server. Last time, I benchmarked with a ngrok https server in between, GRPC was >10 times faster even for a GET request. So most likely if we move from the current setup to Unary GRPC, we will cut network latency by 5x to 10x (my estimate).
Granted, network latency might not be the biggest problem that we are facing.