Skip to content

Instantly share code, notes, and snippets.

@nanthanwa
Last active October 14, 2018 12:28
Show Gist options
  • Save nanthanwa/db39a0e3625b24919a643d5ea7ed1742 to your computer and use it in GitHub Desktop.
Save nanthanwa/db39a0e3625b24919a643d5ea7ed1742 to your computer and use it in GitHub Desktop.
GRPC REST
Protocol Buffers - smaller and faster JSON - text ased - slower and bigger
HTTP/2 (lower latency) - from 2015 HTTP/1.1 (higher latency) from 1997
Bidirectional & Async Client => Server requests only
Stream Support Request/ Response support only
API Oriented - What (no constraints - free design) CRUD Oriented (Create - Retrive - Update - Delete / GET POST PUT DELETE)
Code Generation through Protocol Buffers in any language 1st class citizen Code feneratiion through OpenAPI / Swagger (add-on) - 2nd class citizen
RPC Based - gRPC does the plumbing for us HTTP verbs based - we have to write the plumbing or use a 3rd party library
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment