Skip to content

pierre818181/grpc-vs-http-benchmark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Steps to benchmark:

    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"

Benchmark HTTP requests:

    make run-http

Benchmark GRPC requests:

    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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published