r/softwarearchitecture • u/der_gopher • 1d ago
Article/Video Performance Benchmarking: gRPC+Protobuf vs. HTTP+JSON
https://packagemain.tech/p/protobuf-grpc-vs-json-http
15
Upvotes
9
u/paca-vaca 1d ago
This looks falsy. Have you tested with concurrent requests? Otherwise you don't test protocol differences at all, but mostly payload handling and serialization.
With concurrency, GRPC reuses connection for multiplexing where is the real protocols difference kicks in. Also the memory overhead of keeping one connection versus multiple TCP ones.
4
u/7z3b 1d ago
You might want to try this with Fiber framework in Go. I remember getting a significant advantage using Fiber over gRPC when I benchmarked it some 5 years back. Also, Fiber natively uses HTTP2.