当前位置:网站首页>Sidecar mode
Sidecar mode
2022-07-07 05:42:00 【From watershed to sea area】
Sidecar Pattern
Sidecar It's a design pattern , Conceptually, it refers to the implementation method of separating part of the functions of the application from the application itself as a separate process . This mode supports adding multiple functions to applications in a non intrusive way , At the same time, it also realizes the purpose of decoupling the common part of multiple applications from the self owned part of each application , Therefore, it is widely used in the field of micro Services .
As Service Mesh Important elements of ,Sidecar Patterns are highly scalable for build height 、 Scalable 、 A secure and easily monitored microservice architecture system is very important .Sidecar Patterns reduce the complexity associated with microservice architecture , And provides load balancing 、 Service registration 、 Service discovery 、 The service call 、 Traffic management 、 Application certification 、 telemetering 、 Basic functional features required by microservices such as fault injection .
Picture source : The first reference
Sidecar characteristic
- Sidecar It is a process of independent deployment
- Sidecar It reduces the coupling between the application code and the underlying code , Help heterogeneous services through sidecar Fast access to micro service system .
Sidecar Patterns reduce the code complexity of microservices by abstracting public infrastructure related functions to different layers , In high mode, there is no need to write service configuration in every micro service 、 Find out 、 Call a series of basic and public code , Achieve decoupling .
Sidecar How to work
The yellow line in the figure indicates registration , The white arrow represents the call
Suppose we have a micro service A、B、C, stay Sidecar In mode , The microservice itself will not interact with the registry ( In the picture Service Mesh Control Plane Acting as a registry , There are also other functions ) Call on request , But through sidecar Proxy registration access registry , Get service registration 、 Discovery and other functions .
sidecar As a proxy for heterogeneous services, initiate service calls
Heterogeneous services themselves do not have a direct connection to the registry , Therefore, the call of heterogeneous services also needs to go sidecar, adopt sidecar Make service discovery calls ,sidecar After receiving the request of heterogeneous services, select the target service instance through service discovery and load balancing , Forward request to target service .
reference
边栏推荐
- Leakage relay jd1-100
- “多模态”概念
- 说一说MVCC多版本并发控制器?
- TCC of distributed transaction solutions
- Zhang Ping'an: accelerate cloud digital innovation and jointly build an industrial smart ecosystem
- MySQL数据库学习(8) -- mysql 内容补充
- 基于NCF的多模块协同实例
- How to get free traffic in pinduoduo new store and what links need to be optimized in order to effectively improve the free traffic in the store
- [JS component] date display.
- High voltage leakage relay bld-20
猜你喜欢
随机推荐
Most commonly used high number formula
What is message queuing?
[Oracle] simple date and time formatting and sorting problem
Mysql database learning (8) -- MySQL content supplement
Distributed global ID generation scheme
什么是依赖注入(DI)
Tablayout modification of customized tab title does not take effect
When deleting a file, the prompt "the length of the source file name is greater than the length supported by the system" cannot be deleted. Solution
[PM products] what is cognitive load? How to adjust cognitive load reasonably?
一条 update 语句的生命经历
分布式事务解决方案之2PC
5. Data access - entityframework integration
Paper reading [open book video captioning with retrieve copy generate network]
删除文件时提示‘源文件名长度大于系统支持的长度’无法删除解决办法
论文阅读【MM21 Pre-training for Video Understanding Challenge:Video Captioning with Pretraining Techniqu】
How digitalization affects workflow automation
京东商品详情页API接口、京东商品销量API接口、京东商品列表API接口、京东APP详情API接口、京东详情API接口,京东SKU信息接口
2pc of distributed transaction solution
The year of the tiger is coming. Come and make a wish. I heard that the wish will come true
Aidl and service