RPC
Definition / 释义
RPC(常指 Remote Procedure Call,远程过程调用):一种分布式计算通信方式,使程序可以像调用本地函数一样去调用另一台计算机(或另一进程)上的函数/服务,并由底层负责网络通信与结果返回。也存在其他含义(取决于领域与上下文)。
Pronunciation / 发音
/r pi si/
Examples / 例句
The app uses RPC to talk to the server.
这个应用使用 RPC 与服务器通信。
In a microservices architecture, RPC can simplify service-to-service calls, but it may also increase coupling and make failures harder to handle.
在微服务架构中,RPC 可以简化服务之间的调用,但也可能增加耦合度,并让故障处理更复杂。
Etymology / 词源
RPC 是缩写,来自 Remote Procedure Call:
- Remote(远程的)+ Procedure(过程/子程序)+ Call(调用)。
该术语在分布式系统早期发展中被广泛使用,用来描述“跨网络调用函数/过程”的编程模型。
Related Words / 相关词
Literary Works / 作品示例
- UNIX Network Programming(W. Richard Stevens 等):讨论网络编程与分布式通信概念,常涉及 RPC/类似机制。
- Distributed Systems(Andrew S. Tanenbaum, Maarten van Steen):讲解分布式系统设计,RPC 是核心通信模型之一。
- Site Reliability Engineering(Google):在大规模服务化系统中频繁提及 RPC 调用、延迟与可靠性问题。