Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the Sidecar mode?

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly explains "what is the Sidecar mode". The content of the explanation in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn what the Sidecar mode is.

When it comes to the Service Mesh micro-service architecture, we have to talk about the Sidecar pattern-a single-node, multi-container application design form. Sidecar advocates extending or enhancing the main container with additional containers, which are called Sidecar containers.

Some examples are as follows:

The Web-server container can be easily deployed with a sidecar that reads the web-server logs generated by the Web-server container from the file system and sends the log / stream to the original server (remote server). The Sidecar container complements the web-server container by processing web-server logs. Of course, one might ask, why doesn't web-server handle its own logs? The answer lies in the following:

Separation of concerns: allows each container to focus on core issues. For example, web-server provides web services, while sidecar handles web-server logs, which helps to solve problems without conflicts with other problems.

Single responsibility principle (single responsibility principle): a clear reason is needed for a change in the container. In other words, each container should be able to handle "one" thing, and according to this principle, we should let different containers work separately and make them deal with problems independently enough.

Cohesion / reusability (Cohesiveness/Reusability): use the sidecar container to process logs, which is supposed to be reused elsewhere

The above example is shown in the following figure:

Another example is synchronizing the file system with the sidecar repository when the web-server container and the git container are deployed together. (we need to pay attention to the reuse of the Git synchronization container.) as shown in the following figure, the application container knowledge is linked to the Redis server on the local machine:

Open source PaaS Rainbond v3.6.0 has been released to provide out-of-the-box Service Mesh micro-service architecture, plug-in expansion of governance functions, and support for spring cloud, api gateway, dubbo and other frameworks.

Thank you for your reading, the above is the content of "what is the Sidecar mode", after the study of this article, I believe you have a deeper understanding of what the Sidecar model is, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report