当前位置:网站首页>Basic mode of service mesh
Basic mode of service mesh
2022-07-04 14:04:00 【51CTO】
according to Service Mesh The development and use of , We can Service Mesh It is divided into two modes .
One 、Sidecar Pattern
stay Service Mesh Early development ,Service Mesh With Sidecar The form of being .Sidecar The model can be regarded as the first generation Service Mesh, There are early representatives of Linkerd and Envoy.Sidecar In mode , The network proxy service is next to the micro service , Provide communication and link governance functions for microservices . therefore , The data plane proxy service is also often referred to as Sidecar.
here , The network proxy service with only the data plane has no control plane , The interaction with external infrastructure services is carried out directly in the network agent service . first generation Service Mesh By adopting Sidecar Pattern , Separate communication and communication link governance functions from microservices , It realizes the sinking and service of communication infrastructure , This also reflects the idea of architecture decoupling , Through decoupling, the burden of microservices is reduced .
Two 、 Second generation Service Mesh Pattern
Sidecar Mode Service Mesh There is a prominent problem , Put all the functions of communication and communication link governance into this proxy service , This causes the data plane agent to be heavy , And because it carries too many features and functions , This makes the update and modification of the data plane agent particularly frequent , Frequent updates and upgrades will increase the probability of agent service problems , Affect the stability of agency services .
meanwhile ,Service Mesh In mode , The data plane agent carries all the traffic of microservice communication , Very high demand for stability , Any failure of this service will have a great impact on the stability of the whole system . In order to solve the contradiction between the above frequent upgrades and stability , Separate the policy and configuration decision logic from the agent service , An independent control plane is formed , This is the second generation Service Mesh.
Second generation Service Mesh The most important sign is the separation of control plane and data plane . Data plane and control plane are not new concepts , Router / Switch and other data communication product architecture , There are control planes running on special processors and multiple independent operation 、 Data plane for routing or switching functions .SDN(Software Defined Network, Software Defined Network ) Separate the data plane from the control plane , The control plane is programmable , Make the network more intelligent 、 Flexible and scalable , Inspired another revolution in network technology .
Second generation Service Mesh Learn from it SDN The idea of , Based on the separation of control plane and data plane , With a perfect control plane :① All agent services are controlled by the control plane , Because the control plane can control the whole system , Therefore, it provides strong control ability and strategy ability ;② Remove the specific control logic from the data plane , Simplify the design of data plane , The data plane does not need to interact with external systems , The data plane completely focuses on the traffic routing and forwarding logic with low change frequency , Improves the stability of the data plane .
3、 ... and 、Service Mesh framework
Second generation Service Mesh The basic architecture of is divided into two parts: data plane and control plane .
- Data plane
The data plane is responsible for the communication between proxy microservices , Specifically including RPC signal communication 、 Service discovery 、 Load balancing 、 Degraded fuse 、 Current limiting, fault tolerance, etc , The data plane can be considered to be Spring Cloud、Dubbo And other language related microservice frameworks. Communication and service governance capabilities are independent of a language independent process , And pay more attention to universality and expansibility . stay Service Mesh in , No longer treat the data plane proxy as an isolated component , Instead, these agents are connected together to form a global distributed network .
- Control plane
The control plane is responsible for managing the data plane , Define service discovery 、 route 、 flow control 、 Telemetry statistics and other strategies , These policies can be global , It can also be specified separately by configuring a data plane node . The control plane sends the policy to each data plane node through a certain mechanism , Data plane nodes use these strategies when communicating .
边栏推荐
- Programmer anxiety
- golang fmt.printf()(转)
- C语言程序设计选题参考
- IDEA快捷键大全
- Getting started with the go language is simple: go implements the Caesar password
- China Post technology rushes to the scientific innovation board: the annual revenue is 2.058 billion, and the postal group is the major shareholder
- Secretary of Homeland Security of the United States: domestic violent extremism is one of the biggest terrorist threats facing the United States at present
- 2022年山东省安全员C证考试题库及在线模拟考试
- DGraph: 大规模动态图数据集
- #yyds干货盘点# 解决名企真题:连续最大和
猜你喜欢

【Antd踩坑】Antd Form 配合Input.Group时出现Form.Item所占据的高度不对

2022 Shandong Province safety officer C certificate examination question bank and online simulation examination

1200. 最小绝对差

markdown 语法之字体标红

Applet live + e-commerce, if you want to be a new retail e-commerce, use it!

2022G3锅炉水处理考试题模拟考试题库及模拟考试

unity不识别rider的其中一种解决方法

Fisher信息量检测对抗样本代码详解

392. Judgement subsequence

ViewBinding和DataBinding的理解和区别
随机推荐
205. 同构字符串
C语言中学生成绩管理系统
Huahao Zhongtian sprint Technology Innovation Board: perte annuelle de 280 millions de RMB, projet de collecte de fonds de 1,5 milliard de Beida Pharmaceutical est actionnaire
免费、好用、强大的轻量级笔记软件评测:Drafts、Apple 备忘录、Flomo、Keep、FlowUs、Agenda、SideNote、Workflowy
392. Judgement subsequence
安装trinity、解决报错
find命令报错: paths must precede expression(转)
qt 怎么检测鼠标在不在某个控件上
基于链表管理的单片机轮询程序框架
安装Mysql
Doctoral application | West Lake University Learning and reasoning system laboratory recruits postdoctoral / doctoral / research internship, etc
Redis - how to install redis and configuration (how to quickly install redis on ubuntu18.04 and centos7.6 Linux systems)
MySQL version 8 installation Free Tutorial
如何在 2022 年为 Web 应用程序选择技术堆栈
Fs4056 800mA charging IC domestic fast charging power IC
基于STM32+华为云IOT设计的酒驾监控系统
德明利深交所上市:市值31亿 为李虎与田华夫妻档
Install Trinity and solve error reporting
结合案例:Flink框架中的最底层API(ProcessFunction)用法
Distributed base theory