gRCP is a little bit faster, Google created protobuff which should be easier to migrate to than gRPC, but the protocol is unreadable ( binary)...
JSON has its advantages, I prefer a feature flag when I need performance ( protobuff vs Json), http headers do the rest
gRPC is built on top of protobuf. It’s literally just RPC with protobufs.
one could argue that if serialization/deserialization is the majority of what your api is spending time on then you’ve got distributed monoliths and shouldn’t be making the call in the first place. also ensuring you have the fastest json parser before having a real problem is premature optimization
> JSON parsing IS expensive
Well, maybe
And people say web applications are never CPU bound :)