RPC
RPC, short for remote procedure call, is a communication method that lets a program call a function on another computer as if it were local.
In a remote procedure call, the caller sends a function name and arguments over the network, and a server on another machine runs the function and returns the result. RPC hides the details of network communication so that the call looks like an ordinary function call, and it is widely used for requests between services in distributed systems.
Well-known implementations include gRPC, which Google open-sourced, and JSON-RPC, which encodes messages in JSON. Unlike REST, which designs requests around resources, RPC defines interfaces around the actions to be performed. In AI, the Model Context Protocol (MCP) uses JSON-RPC 2.0 messages to connect AI applications with external tools and data.
This entry is based on AIPOST articles and widely known facts. If something is wrong, please send us a correction request.