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

The problems caused by the micro-service architecture of docker (5)

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Original articles, welcome to reprint. Reprint please indicate: reproduced from IT Story Association, thank you!

Original link address: the problems caused by the micro-service architecture of docker (5)

I have already talked about the concept of micro-service. I believe that the old man has a profound concept of micro-service. From then on, we will go deep into micro-service and analyze what problems will be brought to us by using micro-service step by step. That is to say, what problems need to be solved when using micro-service, and the solutions of micro-service in the industry?

Problems and solutions introduced by micro-service architecture

How do microservices communicate?

You can consider whether there will be such a problem if it is a single architecture, under what circumstances, how to communicate between services and services, what kind of interface to call, what kind of data to rely on, single architecture is rare. A system may have completed the corresponding functions in one application, and it does not rule out that the data of some systems come from other systems, and there are several common ways of single architecture. The direct link address is taken and embedded directly into the page. We use httpclient to call each other's interface to get the returned data. This is a relatively common solution. Micro-services should be considered because there are many interfaces for micro-services, and their calls are very frequent, so we must design in advance how to communicate with micro-services quickly and efficiently.

How microservices discover each other

As to how the single architecture discovers each other, students who have used dubbo should know that dubbo is actually discovering a service. The caller on the web side needs to make a discovery to the dubbo provider. The discovery is through zookeeper, which is similar to the identity of a middleman. The provider of the service tells the middleman. Consumers can complete the discovery of services by getting the address of the provider through the middleman. If you are using dubbo to identify microservices directly, it will be fine. But the micro services we use may involve various language reading methods, and dubbo is limited to java language communication, so finding each other is a problem that we need to set and solve in advance.

How to deploy microservices? Update? Expand capacity

Or from a single architecture, this is different from the way of each company, some directly upload the war package through the ftp tool, execute the command to execute the restart; some may use the automatic deployment tool to generate the war package directly from the master node through jenkens to generate the war package in the directory specified by the quasi-production server, and then copy it to the production environment by script. And then restart. If there is not necessarily a small number of micro-services, a complete service may require dozens of modifications, and if you deploy one by one manually, the operation and maintenance staff will crash. Therefore, the deployment and update of microservices has become a problem that we have to solve.

PS: throw out the question first, and then next time we'll talk about specific problem analysis.

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