当前位置:网站首页>RPC Technology
RPC Technology
2022-07-04 04:34:00 【It's still too late】
RPC What is it?
remote procedure call: Remote procedure call , Process refers to business processing 、 Calculation task , More straightforward understanding of , It's the program .( Call a remote procedure like a local method .)RPC use Client-Server structure , adopt request-response Message mode implementation .
Related issues
- RPC and RMI What's the difference?
RMI(remote method invocation) The remote method call is oop In the field RPC A specific matter of .
Familiar to us webservice、restfull The interface call is RPC Do you ?
All are RPC, Only the message organization and message protocol are different .
What is the role of remote procedure calls compared to local ?
Speed is slow
Weak reliability
RPC The process of
- During client processing call Client stub() Proxy object ( It's like calling a local method ), Pass parameters ;
- Client stub The parameter marshalling For message , Then send the message to the server through the system call ;
- The client local operating system sends messages from the client machine send out To the server machine ;
- The data that the server operating system will receive Pass on to Server stub;
- Server stub Disaggregation Messages are parameters ;
- Server stub Call again The process on the server side , The process execution results are given to the client in the same steps in the opposite direction .
RPC What is the protocol
RPC Parameters need to be grouped into messages to be sent during the call , The receiver needs to ungroup the message as a parameter , The process processing results also need to be grouped 、 Disaggregation .
** The message protocol is composed of which parts of the message and the formation of the message representation .**RPC The message protocol used in the call is called RPC agreement .
RPC The agreement provides for the request 、 The format of the response message ,
stay TCP( Network transmission control protocol ) You can choose or customize the message protocol to complete RPC Message interaction , We can choose a general standard protocol ( Such as :http、https), You can also define your own message protocol according to your own needs !
common RPC agreement
XML-RPC is an RPC protocol that uses XML to encode its calls and Http as a transport mechanism.
JSON-RPC is an RPC protocol that uses JSON-encoded messages
SOAP is successor of XML-RPC and also uses XML to encode its HTTP-based call.
RPC What is the frame
Encapsulate the parameter group 、 Message ungrouping 、 The underlying network communication RPC Program development framework , The convenience it brings is that it can be directly based on it, just Focus on process code writing .
Java field :
Conventional webservice frame :Apache CXF、Apache Axis2、java Self contained JAX-WS wait .webService Most frameworks are based on Standards SOAP agreement .
Emerging microservice framework :Dubbo、Spring cloud、Apache Thrift wait .
Why use RPC
As a service
reusable
Interactive calls between systems
RPC Core concept terms
- Client 、Server、calls、 replies、 service,programs,procedures,version,marshalling( marshalling )、unmarshalling( Disaggregation )
- A network service consists of one or more remote assemblies
- A remote program implements one or more remote procedures
- The process 、 The parameters of the process 、 The results are defined in the program protocol specification
- Protocol changes for compatible programs 、 A server may support multiple versions of remote programs .
.
边栏推荐
- EIG在智利推出可再生能源平台Grupo Cerro
- [microservice openfeign] use openfeign to remotely call the file upload interface
- 沃博联结束战略评估,决定保留表现优异的博姿业务
- C语言单向链表练习
- 2021 RSC | Drug–target affinity prediction using graph neural network and contact maps
- (指针)自己写一个比较字符串大小的函数,功能与strcmp类似。
- 什么是上下文?
- 【愚公系列】2022年7月 Go教学课程 002-Go语言环境安装
- Unity draws the trajectory of pinball and billiards
- Rhcsa 04 - process management
猜你喜欢
Exploration and practice of eventbridge in the field of SaaS enterprise integration
What does software testing do? Find defects and improve the quality of software
多位科技公司创始人向Entrepreneur First提供高达1.58亿美元的C轮融资,协助其投资下一代全球创新者
戳气球和布尔运算问题(巨难)
Leetcode skimming: binary tree 04 (sequence traversal of binary tree)
UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0x98 in position 1093: illegal multibyte sequence
Leetcode skimming: binary tree 09 (minimum depth of binary tree)
深入解析结构化异常处理(SEH) - by Matt Pietrek
[Yugong series] go teaching course 001 in July 2022 - Introduction to go language premise
RHCSA 04 - 进程管理
随机推荐
Leetcode skimming: binary tree 07 (maximum depth of binary tree)
西部数据绿盘、蓝盘、黑盘、红盘和紫盘有什么区别
leetcode:1314. 矩阵区域和【二维前缀和模板】
分布式CAP理论
多位科技公司创始人向Entrepreneur First提供高达1.58亿美元的C轮融资,协助其投资下一代全球创新者
Balloon punching and Boolean operation problems (extremely difficult)
Keysight n9320b RF spectrum analyzer solves tire pressure monitoring scheme
One click compilation and deployment of MySQL
y55.第三章 Kubernetes从入门到精通 -- HPA控制器及metrics-server(二八)
“找工作不要太在意工资”,这是我听过最大的谎言
A beautiful API document generation tool
leetcode:1314. Matrix area and [2D prefix and template]
Redis:有序集合zset类型数据操作命令
Unity Resource path
NFT新的契机,多媒体NFT聚合平台OKALEIDO即将上线
Asynchronous development process - touch your hand and lead you to realize a promise
虚拟商品帐号交易平台源码_支持个人二维码收款
MySQL JDBC编程
Application scheme of Puyuan ds1000z series digital oscilloscope in communication principle experiment
ModStartBlog 现代化个人博客系统 v5.2.0 源码下载