Protocols
Saved & recent

Remote procedure call

Also called: RPC, remote call, client stub

A remote procedure call presents an operation in another process as a callable service method. The client encodes a method selection and arguments into a request; the server executes the operation and returns a result or error. RPC is a model used by many protocols, including gRPC and JSON-RPC.

An inventory client might call reserveItem(42) through a generated stub. Unlike a local call, it can fail because of a network break or deadline. If the reservation succeeded but its response was lost, the caller may not know the result. The interface therefore needs explicit rules for retries and duplicate effects.

Related
gRPC, JSON-RPC, Idempotency key, SOAP
Further reading
IETF RFC 5531 — RPC model
client stub encoded request encoded result network local caller server method response-loss example reservation response lost reservation recorded outcome unknown at the caller
An RPC crosses a network through a client stub and server method. In the alternate lost-response path, the server saved the reservation but the caller cannot tell from its missing response whether it succeeded.

View in the full Protocols collection