Explaining the gRPC Myth: Here's What Happens to HTTP at 100 Concurrent Threads
I used to buy into the generic developer hype: "gRPC is 10x faster than HTTP, it just has some configuration overhead."
While technically true on paper, running a comprehensive stress test on my own system revealed a much more pragmatic reality.
When building my Architecture-Boilerplate `headsntails` (Golang-based infrastructure which, in its current state, serves as a plug-and-play Feature Flag Service and is able to scale up to SaaS out of the box), our public endpoint validates every incoming request against a cart `rate-limiter` service.
Originally, this intranet communication ran over standard HTTP. Recognizing this as a potential bottleneck, I set out to replace (and benchmark) it with gRPC in v0.3.
Rather than blindly ripping and replacing, I implemented a simple configuration flag (`RATE_LIMITER_USE_GRPC=true|false`) and spun up a Fortio load-testing container to stress-test both protocols under the exact same conditions.
Here is what happened when I pushed...
Copyright of this story solely belongs to hackernoon.com. To see the full text click HERE