当前位置:网站首页>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 .
边栏推荐
- 30: Chapter 3: develop Passport Service: 13: develop [change / improve user information, interface]; (use * * * Bo class to accept parameters, and use parameter verification)
- ViewBinding和DataBinding的理解和区别
- E-week finance | Q1 the number of active people in the insurance industry was 86.8867 million, and the licenses of 19 Payment institutions were cancelled
- Service Mesh的基本模式
- JVM 内存布局详解,图文并茂,写得太好了!
- 读取 Excel 表数据
- Read excel table data
- WS2818M是CPC8封装,是三通道LED驱动控制专用电路外置IC全彩双信号5V32灯可编程led灯带户外工程
- 奇妙秘境 码蹄集
- C语言中学生成绩管理系统
猜你喜欢
随机推荐
sharding key type not supported
Unittest框架中引入TestFixture
美国土安全部长:国内暴力极端主义是目前美面临的最大恐怖主义威胁之一
markdown 语法之字体标红
The Secretary of Homeland Security warned immigrants "not to embark on a dangerous journey"
吃透Chisel语言.06.Chisel基础(三)——寄存器和计数器
安装trinity、解决报错
Distributed base theory
Getting started with the go language is simple: go implements the Caesar password
Secretary of Homeland Security of the United States: domestic violent extremism is one of the biggest terrorist threats facing the United States at present
舔狗舔到最后一无所有(状态机)
奇妙秘境 码蹄集
安装Mysql
Openharmony application development how to create dayu200 previewer
Interview disassembly: how to check the soaring usage of CPU after the system goes online?
动画与过渡效果
Haproxy high availability solution
Getting started with microservices
Programmer anxiety
C language programming topic reference