Last active
May 20, 2019 12:06
-
-
Save joaoh82/f6810d6e3317fa4fa7a086755a4e1b02 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature | gRPC | REST | |
---|---|---|---|
Contract | Required (*.proto) | Optional (OpenAPI) | |
Transport | HTTP/2 | HTTP | |
Payload | Protobuf (small and binary) | JSON (large and human readable) | |
Prescriptiveness | Strict specification | Loose. Any HTTP is valid | |
Streaming | Client/Server/Bi-Directional | Client/Server | |
Broswer support | No (requires grpc-web) | Yes | |
Security | Transport (HTTPS) | Transport (HTTPS) | |
Client code-gen | Yes | OpenAPI + third0party tooling |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment