作者:手机用户26536338_53 | 来源:互联网 | 2024-10-25 12:27
目录RPC是什么RPC的优点RPC的缺点RPC是什么RPC(RemoteProcedureCall)isaprotocolthatoneprogramcanusetorequest
目录
RPC是什么
RPC(Remote Procedure Call)
is a protocol
that one program can use to request a service from a program located in another computer on a network
without having to understand the network’s details
A procedure call is also sometimes known as a function call or a subroutine call
RPC uses the client-server model
RPC的优点
本地调用 – 似本地调用的方式获取远程服务
网络传输透明 – 灵活(不必关心通信实现: HTTP、TCP、Websocket)且高效(TCP优于HTTP)
扩展性强 – RPC使得开发包括网络分布式多程序在内的应用程序更加容易
RCP框架通常会实现数据序列化和反序列化
RPC的缺点
参考