Skip to content

Instantly share code, notes, and snippets.

@joaoh82
Last active May 20, 2019 12:06
Show Gist options
  • Save joaoh82/f6810d6e3317fa4fa7a086755a4e1b02 to your computer and use it in GitHub Desktop.
Save joaoh82/f6810d6e3317fa4fa7a086755a4e1b02 to your computer and use it in GitHub Desktop.
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