rpc过程
2016-12-11 11:38:55 0 举报
RPC(Remote Procedure Call)是一种远程过程调用协议,它允许程序在网络中请求另一个程序的功能或服务。RPC 的基本原理是将一个过程调用封装成一个消息,然后通过网络发送到远程计算机上的另一个程序。当远程程序接收到消息后,它会执行相应的操作并返回结果。这个过程对于用户来说是透明的,就像调用本地程序一样简单。 RPC 的优点在于它可以在不同的计算机之间实现跨平台通信,并且可以支持多种编程语言。此外,RPC 还可以提供安全性和可靠性,因为它使用加密技术来保护数据的安全性,并且可以通过重试机制来处理网络故障。
作者其他创作
大纲/内容
Proxy layer
initialize spring container
Communication layer
Serialization
construct the request object by RPC parameters
Serialization layer
initialize listener
generate return object by return message
3. obtain return object
invoke bean
call the container's method
1. call RPC methods
4. finish the RPC call method
initialize Bean
generate object by received message
communication layer accept the request
Send message to client
the proxy object organizes RPC parameters
Send message to server
obtain the request method and parameters and call methods
communication layer listener accept the request
Encapsulated as RPC return parameters
communication layer return the request
generate Bean and put it in container
Deserialization
use the unterface to geterate proxy objects and put them in container
get the return value
register the RPC remote call method
Client
Server
0 条评论
下一页