Skip to content

Instantly share code, notes, and snippets.

@boersmamarcel
Created October 23, 2025 17:52
Show Gist options
  • Select an option

  • Save boersmamarcel/eab71e9fdbcc7b7a0027b44158bc715d to your computer and use it in GitHub Desktop.

Select an option

Save boersmamarcel/eab71e9fdbcc7b7a0027b44158bc715d to your computer and use it in GitHub Desktop.
Feature RPC REST API WebSocket
Performance (Binary, HTTP/2) Good (Text-based JSON, HTTP/1.1) (Low overhead after handshake)
Communication RPC (Unary, Streaming) Request/Response Full-duplex (Bidirectional messages)
Payload Format Protocol Buffers (Compact binary) JSON (Human-readable text) Custom (Binary or text)
Ease of Use Moderate (Requires .proto definitions) Easy (Widely understood) Moderate (Connection management)
Primary Use Case High-performance microservices Public & simple web APIs Real-time interactive apps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment