当前位置:网站首页>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 .
边栏推荐
- Automatic filling of database public fields
- 苹果5G芯片研发失败:继续依赖高通,还要担心被起诉?
- Ws2811 m is a special circuit for three channel LED drive and control, and the development of color light strip scheme
- Install Trinity and solve error reporting
- C语言图书租赁管理系统
- 2022年山东省安全员C证考试题库及在线模拟考试
- [C question set] of VII
- mac redis安装与使用,连接远程服务器 redis
- SCM polling program framework based on linked list management
- 1200. 最小绝对差
猜你喜欢

392. 判断子序列

逆向调试入门-PE结构-资源表07/07

One of the solutions for unity not recognizing riders

MySQL45讲——学习极客时间MySQL实战45讲笔记—— 06 | 全局锁和表锁_给表加个字段怎么有这么多阻碍

ViewBinding和DataBinding的理解和区别

Source code compilation and installation of MySQL

面试官:Redis中哈希数据类型的内部实现方式是什么?

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

近日小结(非技术文)

Fisher信息量检测对抗样本代码详解
随机推荐
Flet tutorial 03 basic introduction to filledbutton (tutorial includes source code) (tutorial includes source code)
MySQL 5 installation and modification free
安装Mysql
一次 Keepalived 高可用的事故,让我重学了一遍它
Getting started with the go language is simple: go implements the Caesar password
基于STM32+华为云IOT设计的酒驾监控系统
以房抵债能否排除强制执行
SCM polling program framework based on linked list management
数据库公共字段自动填充
如何在 2022 年为 Web 应用程序选择技术堆栈
嵌入式编程中五个必探的“潜在错误”
2022kdd pre lecture | 11 first-class scholars take you to unlock excellent papers in advance
ASP. Net core introduction I
德明利深交所上市:市值31亿 为李虎与田华夫妻档
MySQL8版本免安装步骤教程
C语言集合运算
How to choose a technology stack for web applications in 2022
go vendor 项目迁移到 mod 项目
Huahao Zhongtian rushes to the scientific and Technological Innovation Board: the annual loss is 280million, and it is proposed to raise 1.5 billion. Beida pharmaceutical is a shareholder
2022 Shandong Province safety officer C certificate examination question bank and online simulation examination