You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
# RPC
|
|
|
|
|
|
|
|
|
|
## 概念
|
|
|
|
|
|
|
|
|
|
**RPC**: RPC是远程过程调用(Remote Procedure Call)的缩写形式。SAP系统RPC调用的原理其实很简单,有一些类似于三层构架的C/S系统,第三方的客户程序通过接口调用SAP内部的标准或自定义函数,获得函数返回的数据进行处理后显示或打印。
|
|
|
|
|
|
|
|
|
|
**跨进程交互形式**: Restful、WebService、http、基于DB做的数据交换、基于MQ做数据交换、RPC
|
|
|
|
|
|
|
|
|
|
## 图解交互形式
|
|
|
|
|
|
|
|
|
|
![image-20201016134721396](aisset\image-20201016134721396.png)
|
|
|
|
|
|
|
|
|
|
![image-20201016134924225](aisset\image-20201016134924225.png)
|
|
|
|
|
|
|
|
|
|
在RPC中
|
|
|
|
|
|
|
|
|
|
Server: Provider、服务提供者
|
|
|
|
|
|
|
|
|
|
Client: Consumer、服务消费者
|
|
|
|
|
|
|
|
|
|
Stub: 存根、服务描述
|
|
|
|
|
|
|
|
|
|
## 整体架构
|
|
|
|
|
|
|
|
|
|
![image-20201016140023483](aisset\image-20201016140023483.png)
|
|
|
|
|
|
|
|
|
|
![image-20201016140246492](aisset\image-20201016140246492.png)
|