当前位置:网站首页>What is RPC
What is RPC
2022-04-23 08:23:00 【weixin_ forty-six million two hundred and seventy-two thousand 】
What is? RPC
The following excerpt from Baidu Encyclopedia
Remote procedure call protocol
RPC(Remote Procedure Call)— Remote procedure call , It is a way of requesting services over a network from a remote computer program , You don't need to know > Protocol of layer network technology .RPC Protocols assume the existence of certain transport protocols , Such as TCP or UDP, Carry information data between communication programs . stay OSI The Internet > In the communication model ,RPC Across the transport and application layers .RPC Makes it easier to develop applications that include networked distributed multiprogramming .
RPC Using the client / Server mode . A requester is a client , A service provider is a server . First , The client calls the process > Send a call information with process parameters to the service process , Then wait for the answer . On the server side , The process remains asleep until the call message arrives at > stop . When a call message arrives , Server gets process parameters , The result of the calculation is , Send reply , Then wait for the next call message , Last , Customer > The end call process receives the reply information , Get process results , Then call execution to proceed. .
There are many kinds of RPC Mode and execution . By the first Sun The company proposed .IETF ONC The Charter has been revised Sun edition , bring ONC RPC Agreement become >IETF Standard agreement . The most commonly used model and implementation is the distributed computing environment based on open software (DCE).
Terminology can be complex , How do we understand RPC Well ?
In my eyes RPC
Service providers provide ---- Consumer consumption
The service provider fished seafood in Qingdao , Consumers sat in a restaurant in Xinjiang and ordered a plate of spicy crayfish
The middle process is RPC
Existence is reason , The reason why complex things can continue to exist and develop is not without reason , It's not because the experts are mystifying , Mainly because it can bring some obvious benefits , The more proficient you are in these things , The more you like it . About RPC, A long time ago RPC There are several others, such as DCOM,CORBA,RMI(Java)AXIS etc. , There are many tricks now , The basic principle is to use XML perhaps JSON To pass the call parameters and results . The main advantages of personal experience are as follows :
RPC Be able to cross a variety of development tools and platforms , For example, the existing system of the enterprise has been developed or the subsystem has been deployed and delivered , It provides RPC Interface , New subsystems need to be integrated , Use industry common RPC The interface can be integrated , You can't ask the original developer to modify the interface again , Otherwise, it will become an information island ;
RPC Ability to span multiple servers , This can be easily accessed on other computers 80 Port of RPC To access various servers . Other such as TCP Message to access , It's efficient but inconvenient, and it has to penetrate the firewall , Especially inconvenient for web page integration .
Take a chestnut
Remote call simply means sending a request to the remote machine , The process of the remote machine returning a result , Why do you do this , The performance of a single Internet server is far from meeting the needs of today's users , It's like you go to KFC and order a meal , The waiter at the table assigned the task of French fries and chicken burgers to different people , Then collect it for your process , The table attendant is equivalent to calling the remote service .
But if not , The order clerk does these things directly ( I have to order again , French fries again , Fried chicken legs and so on ), Two phase comparison , You'll know the benefits of remote calls
Simply put, you can't in one process , Even a computer through local calls to complete the requirements , For example, communication between different systems , Even communication between different organizations . Because computing power needs to scale out , You need to deploy applications on a cluster of multiple machines .
RPC Advantages and disadvantages
RPC The advantages of :
- Improve system scalability
- Improve system maintainability and continuous delivery capability
- Realize high availability of the system
RPC The shortcomings of :
- A perfect RPC The framework development is very difficult , Need more staffing
- RPC The success rate of framework calls is limited by network conditions
- It is difficult for beginners to call remote methods
版权声明
本文为[weixin_ forty-six million two hundred and seventy-two thousand ]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230748008989.html
边栏推荐
- 有意思的js 代码
- QT reads all files under the path or files of the specified type (including recursion, judging whether it is empty and creating the path)
- Comparison of indoor positioning technology
- ansible自动化运维详解(一)ansible的安装部署、参数使用、清单管理、配置文件参数及用户级ansible操作环境构建
- ATSS(CVPR2020)
- 获取TrustedInstaller权限
- rust 使用tokio的Notify 和timeout实现类似可超时条件变量的效果
- 使用JWT生成与解析Token
- Online app resource download website source code
- 室内定位技术对比
猜你喜欢

Transformer-XL: Attentive Language ModelsBeyond a Fixed-Length Context 论文总结

Asan minimalism

SYS_CONNECT_BY_PATH(column,'char') 结合 start with ... connect by prior

一个必看的微信小程序开发指南1-基础知识了解

Shell脚本进阶

数据可视化:使用Excel制作雷达图
![[explanation] get ora-12838: cannot read / modify an object after modifying it in parallel](/img/7c/0adc0940b6d5c8a61d34bfa5f66ee7.png)
[explanation] get ora-12838: cannot read / modify an object after modifying it in parallel

mysql查询字符串类型的字段使用数字类型查询时问题

vslam PPT

LeetCode简单题之计算字符串的数字和
随机推荐
[explanation] get ora-12838: cannot read / modify an object after modifying it in parallel
ajax防止缓存方法
Description of the abnormity that the key frame is getting closer and closer in the operation of orb slam
An idea plug-in that doesn't work, but can install X
vmware 搭建ES8的常见错误
Qt读取路径下所有文件或指定类型文件(含递归、判断是否为空、创建路径)
对OutputStream类的flush()方法的误解
AAAI 2022 recruit speakers!!
[C语言] 文件操作《一》
WordPress爱导航主题 1.1.3 简约大气网站导航源码网址导航源码
Idea: export Yapi interface using easyyapi plug-in
idea:使用easyYapi插件导出yapi接口
项目上传部分
记录:js删除数组中某一项或几项的几种方法
Notes on English class (4)
网赚APP资源下载类网站源码
The annotation is self-defined by implementing the parameter parser handlermethodargumentresolver interface
一键清理项目下pycharm和Jupyter缓存文件
一款拥有漂亮外表的Typecho简洁主题_Scarfskin 源码下载
二维01背包