DEV Community

Discussion on: Benchmarks comparing gRPC+Protobuf vs JSON+HTTP in Go

Collapse
 
frosnerd profile image
Frank Rosner

Thanks for the comparison! To me this makes a lot of sense as binary protocols are usually faster than text based protocols like JSON. However what you are comparing is really a JSON API vs a ProtoBuf API, using an HTTP server and a gRPC server, respectively.

REST on the other hand is not about the actual implementation. REST cannot be slow or fast. It requires a stateless protocol and some defined standard operations to manipulate resources. It gives you some basic principles that help you to make your API interoperable, extensible and easy to understand.

Originally, REST was more of a generalization of HTTP: ics.uci.edu/~fielding/pubs/dissert...

Collapse
 
plutov profile image
Alex Pliutau

Agree here, let me change it in the repository and later in article here.