Performance difference between REST and gRPC

gRpc made use of protobuffer for serialization vs JSON for REST. JSON is simple, easy to read, easy to parse, widely use. But in term of performance it’s far behind protobuffer. There is a lot of optimization in protobuffer for it to take less space by using binary format. Here is a link about JSON vs Protobuf,
https://auth0.com/blog/beating-json-performance-with-protobuf.

The way you get your data (sql query) can be a factor in performance to… marshal/umarshaling cycle are very costly! Try to avoid them as much as you can. If you use SQL as backend for your JSON objects then you can consider switching to MongoDB, it is well define for that kind of use…

If you are currious you can try by yourself with Globular, there is a SQL service already there and also an exemple…