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