{
  "id": "grpc-service-definition-table",
  "kind": "table",
  "slug": "grpc-service-definition",
  "iil_id": null,
  "note_url": "https://iinventedlight.com/library/notes/grpc-service-definition/",
  "title": "gRPC services are defined in .proto files with four kinds of RPC methods",
  "columns": [
    "name",
    "source",
    "detail"
  ],
  "rows": [
    {
      "name": "Unary",
      "source": "gRPC docs",
      "detail": "the client sends a single request and gets a single response back, just like a normal function call"
    },
    {
      "name": "Server streaming",
      "source": "gRPC docs",
      "detail": "the client sends a request and reads a stream of messages back until there are no more"
    },
    {
      "name": "Client streaming",
      "source": "gRPC docs",
      "detail": "the client writes a sequence of messages, then waits for the server's single response"
    },
    {
      "name": "Bidirectional streaming",
      "source": "gRPC docs",
      "detail": "both sides send a sequence of messages using a read-write stream"
    }
  ],
  "related_slugs": [
    "protobuf-message-types",
    "http-status-codes"
  ],
  "license": "CC-BY-4.0",
  "source_license": "CC-BY-4.0 (gRPC docs); CC-BY-4.0 (grpc/grpc.io (GitHub)); prose restates cited source lines in own words",
  "as_of": "2026-11-18",
  "status": "fill-draft-20261118",
  "note": "Restated from the note's GREEN sources; check those sources before relying on a value."
}