当前位置:网站首页>RESTful和RPC
RESTful和RPC
2022-06-25 12:16:00 【王会举】
1、RESTful是一种软件架构风格,用于约束客户端和服务器交互,满足这些约束条件和原则的应用程序或设计就是 RESTful。比如HTTP协议使用同一个URL地址,通过GET,POST,PUT,DELETE等方式实现查询、提交、删除数据。
RPC是远程过程调用,是用于解决分布式系统服务间调用的一种方式。RPC采用客户端与服务端模式,双方通过约定的接口(常见为通过IDL定义或者是代码定义)以类似本地方法调用的方式来进行交互,客户端根据约定传输调用函数+参数给服务端(一般是网络传输TCP/UDP),服务端处理完按照约定将返回值返回给客户端。
重点为RESTful HTTP的约束风格,RPC调用模型。
1、可分为两大部分RPC +服务治理
RPC部分 = IDL +客户端/服务端实现层 +协议层 +数据传输层
服务治理 =服务管理(注册中心) +服务监控 +服务容灾 +服务鉴权
2、 Service Mesh为了解决传统微服务框架"胖客户端"方式,引入的如下问题:
与业务无关的服务治理逻辑与业务代码强耦合,框架、SDK的升级与业务代码强绑定,多语言的胖客户端支持起来性价比极低。
转载自牛客: https://www.nowcoder.com/test/question/done?tid=38517885&qid=894462
边栏推荐
- Micro engine remote attachment 7 Niu cloud upload
- Flutter automatically disappears after receiving push
- 美创入选“2022 CCIA中国网络安全竞争力50强”榜单
- Zhangxiaobai's road to penetration (7) -sql injection detailed operation steps -union joint query injection
- 架构师必备的七种能力
- 3+1保障:高可用系统稳定性是如何炼成的?
- Zhangxiaobai's way of penetration (VIII) - detailed operation steps of SQL injection - Boolean blind injection of blind injection
- Slice and slice methods of arrays in JS
- 2021-09-22
- Some fields are ignored in tp6 query
猜你喜欢

C program linking SQLSERVER database: instance failed

Jeecgboot startup popup configuration is still incorrect

地理空间搜索:kd树的实现原理
![[Visio]平行四边形在Word中模糊问题解决](/img/04/8a1de2983d648e67f823b5d973c003.png)
[Visio]平行四边形在Word中模糊问题解决
![Maximum number [abstract rules for abstract sorting]](/img/47/f6bafacc95f487854a3e304325f3f0.png)
Maximum number [abstract rules for abstract sorting]

Total number of MySQL statistics, used and unused

3+1 guarantee: how is the stability of the highly available system refined?

Go from 0 to 1. Obtain the installation package, get, post request, params, body and other parameters

Zhangxiaobai's road of penetration (IV) -- detailed explanation of XSS cross site script vulnerabilities

顺序表的折半查找法
随机推荐
Zhangxiaobai's road of penetration (IV) -- detailed explanation of XSS cross site script vulnerabilities
Zhangxiaobai's road of penetration (VI) -- the idea and process of SQL injection and the concat series functions and information of SQL_ Schema database explanation
Elemntui's select+tree implements the search function
2021-09-30
冷启动的最优解决方案
PPT绘论文图之导出分辨率
Jeecgboot startup popup configuration is still incorrect
JS function exercises
Laravel multi project mutual access
list.replace, str.append
Slice() and slice() methods of arrays in JS
CUDA error: unspecified launch failure
Mind mapping video
yolov5训练使用的负样本图片
Disconnected: No supported authentication methods available (server sent: )
Render values to corresponding text
Navicat premium view password scheme
JS array length is defined
Penetration tool environment -- use of cknife Chinese kitchen knife
The drop-down box renders numbers instead of the corresponding text. How to deal with it