In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces "how Sidecar mode works". In daily operation, I believe many people have doubts about how Sidecar mode works. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the questions of "how Sidecar mode works". Next, please follow the editor to study!
What is Sidecar mode?
Sidecar mode is a way to separate the application function from the application itself as a separate process. This pattern allows us to add a variety of functions to the application without intrusiveness, avoiding adding additional configuration code to the application to meet the needs of third-party components.
Just as a side car is installed on a motorcycle, in the software architecture, sidecar is attached to the main application, or parent application, to extend / enhance functional features, while Sidecar is loosely coupled with the main application.
For example, suppose there are six microservices that communicate with each other, each of which requires observability, monitoring, logging, configuration, circuit breaker, and so on, all of which are implemented using third-party libraries in the microservice.
The actual situation of such a set of services may be very complex, increasing the overall complexity of the application, especially when each microservice is written in a different language and uses different third-party libraries based on .net, Java, Python and other languages.
Benefits of the Sidecar model
Reduce the code complexity of micro-services by abstracting public infrastructure-related functions to different layers
Since we do not need to write configuration code in each microservice, code duplication in the microservice architecture is reduced
Loose coupling is realized between P application and underlying platform.
How Sidecar mode works
The Service Mesh layer can be located in the Sidecar container on the application side, and multiple copies of the same sidecar can be attached to each application.
All incoming and outgoing network traffic from a single service passes through Sidecar agents to manage traffic between microservices, collect telemetry data, enforce policies, and so on. In a sense, the service is imperceptible to the network, knowing only the attached sidecar proxy. This is the nature of the work of the Sidecar pattern, which abstracts network dependencies into Sidecar.
In Service Mesh, we need to understand the concepts of Data Plane and Control Plane--
The function of Data Plane is to handle the communication between services within the grid, and to complete the functions of service discovery, load balancing, traffic management, health check, etc. The function of the data plane is to handle the communication between services within the grid, and is responsible for the implementation of service discovery, load balancing, traffic management, health check and other functions.
The role of Control Plane is to manage and configure Sidecar to enforce policies and collect telemetry (telemetry)
Envoy
In the open source PaaS Rainbond, a "layer 7 network governance plug-in based on envoy" is provided. Envoy itself can run natively in the Rainbond plug-in system, and users can also select and implement other plug-ins. The Rainbond runtime itself provides comprehensive basic services. For example, according to the maturity of Istio, Rainbond adopts partial integration strategy to carry out Mixer integration (intelligent control strategy) and Citadel integration (security communication integration).
Envoy, which is open source by Lyft, is a proxy designed for cloud native applications, which runs next to the service and provides the necessary features in a platform-independent manner, and all traffic to the service is through the Enovy proxy.
At this point, the study of "how Sidecar mode works" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.