Whilst REST and gRPC are somewhat similar, there are some fundamental differences in how they work that you should be aware of.
- gRPC utilizes
HTTP/2whereas REST utilizesHTTP 1.1 - gRPC utilizes the protocol buffer data format as opposed to the standard JSON data format that is typically used within REST APIs. This provides us with strong schema and backward compatibility.
- With gRPC you can utilize
HTTP/2capabilities such as server-side streaming, client-side streaming or even bidirectional-streaming should you wish.