当前位置:网站首页>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
边栏推荐
- Taobao commodity details page API interface, Taobao commodity list API interface, Taobao commodity sales API interface, Taobao app details API interface, Taobao details API interface
- 微信小程序蓝牙连接硬件设备并进行通讯,小程序蓝牙因距离异常断开自动重连,js实现crc校验位
- What are the common message queues?
- 基于NCF的多模块协同实例
- Mybaits之多表查询(联合查询、嵌套查询)
- “多模态”概念
- [Oracle] simple date and time formatting and sorting problem
- If you want to choose some departments to give priority to OKR, how should you choose pilot departments?
- How Alibaba cloud's DPCA architecture works | popular science diagram
- 集群、分布式、微服务的区别和介绍
猜你喜欢
JSP setting header information export to excel
Cve-2021-3156 vulnerability recurrence notes
架构设计的五个核心要素
How does mapbox switch markup languages?
K6el-100 leakage relay
常用消息队列有哪些?
Message queuing: how to ensure that messages are not lost
The 2022 China low / no code Market Research and model selection evaluation report was released
Distributed global ID generation scheme
什么是依赖注入(DI)
随机推荐
不同网段之间实现GDB远程调试功能
How Alibaba cloud's DPCA architecture works | popular science diagram
纪念下,我从CSDN搬家到博客园啦!
Web architecture design process
Most commonly used high number formula
淘宝店铺发布API接口(新),淘宝oAuth2.0店铺商品API接口,淘宝商品发布API接口,淘宝商品上架API接口,一整套发布上架店铺接口对接分享
Vector and class copy constructors
Codeforces Round #416 (Div. 2) D. Vladik and Favorite Game
集群、分布式、微服務的區別和介紹
Leakage relay llj-100fs
Unity让摄像机一直跟随在玩家后上方
Pinduoduo product details interface, pinduoduo product basic information, pinduoduo product attribute interface
Jhok-zbl1 leakage relay
SQL query: subtract the previous row from the next row and make corresponding calculations
Batch size setting skills
Leakage relay jd1-100
Five core elements of architecture design
How does mapbox switch markup languages?
Web Authentication API兼容版本信息
[PM products] what is cognitive load? How to adjust cognitive load reasonably?