{
  "slug": "remote-procedure-call",
  "term": "Remote procedure call (RPC)",
  "aliases": [
    "RPC",
    "Remote procedure call"
  ],
  "definition": "A remote procedure call (RPC) invokes a procedure in another process by exchanging request and reply messages.",
  "note": "Interface: RPC can use synchronous or asynchronous APIs. ONC RPC identifies a procedure by program, program version and procedure number; these fields are specific to that protocol. Its XID matches replies to calls or detects retransmissions, but is not an execution-order sequence number. [rpc5531]\n\nFailure: A missing reply alone leaves execution uncertain. In gRPC, client and server can disagree about completion, and cancellation does not undo earlier changes. A call result therefore needs the application-specific persistence contract. [rpc5531] [grpc-lifecycle]\n\nRetry scope: eRPC suppresses repeated handler execution during protocol retransmission and reports errors for pending client calls after suspected node failure. This does not establish durable deduplication for a newly submitted application request. [erpc19]\n\nConcurrency: Idempotent effects alone do not ensure linearizable retries: repeating a fixed-value write after an intervening update can overwrite that update. [rifl15]",
  "related": [
    "erpc",
    "rifl",
    "io-timeout",
    "retry-deduplication"
  ],
  "citations": [
    {
      "id": "rpc5531",
      "title": "RFC 5531: ONC RPC Version 2, sections 4, 5, 8.1 and 9",
      "url": "https://www.rfc-editor.org/rfc/rfc5531.html",
      "accessed": "2026-11-16"
    },
    {
      "id": "grpc-lifecycle",
      "title": "gRPC: Core concepts, RPC termination and cancellation",
      "url": "https://grpc.io/docs/what-is-grpc/core-concepts/",
      "accessed": "2026-11-16"
    },
    {
      "id": "erpc19",
      "title": "Kalia, Kaminsky and Andersen: Datacenter RPCs can be General and Fast, NSDI 2019, sections 3.1, 5.3 and Appendix B",
      "url": "https://www.usenix.org/system/files/nsdi19-kalia.pdf",
      "accessed": "2026-11-16"
    },
    {
      "id": "rifl15",
      "title": "Lee et al.: Implementing Linearizability at Large Scale and Low Latency, SOSP 2015, section 2 and Figure 2",
      "url": "https://web.stanford.edu/~ouster/cgi-bin/papers/rifl.pdf",
      "accessed": "2026-11-16"
    }
  ],
  "status": "shipping",
  "advantages": [],
  "limitations": [],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-16",
  "provenance": [
    "Primary-source synthesis of a general interface concept. ONC RPC, gRPC and eRPC are distinct protocols or implementations; their fields and failure semantics are not interchangeable.",
    "No network, retry or crash-recovery experiment was performed for this entry."
  ]
}
