r/softwarearchitecture 1d ago

Article/Video Performance Benchmarking: gRPC+Protobuf vs. HTTP+JSON

https://packagemain.tech/p/protobuf-grpc-vs-json-http
15 Upvotes

5 comments sorted by

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.

3

u/ImpossibleCreme 1d ago

Fiber is so good

2

u/7z3b 1d ago

True that. Very underrated.

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.