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

How to analyze cluster, distributed and micro services

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

Share

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

How to analyze cluster, distributed and micro services, in order to solve this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible method.

Cluster

Popular explanation of the cluster: in order to build a house, bricklaying is needed. Bricklaying by one person is too slow, and it takes 10 brick workers and colleagues to build it, which greatly improves the efficiency. We say that these 10 people form a cluster. Cluster is that everyone does the same thing, everyone does it together, and everyone is not dependent on each other. In our software production environment, the cluster is to improve efficiency by stacking server hardware to do the same job.

Distributed system

Distribution, as the name implies, is the concept of division of labor. In the case of bricklaying, for example, when we lay bricks, we need to move bricks to the wall and need cement mortar before we can start bricklaying. If it is done by the same person as cement mortar, moving bricks and building walls, even if it is 10 people, it may not be efficient. At this time, distributed will play. We can arrange for 2 people to specialize in cement mortar, 2 people to carry bricks under the wall, and 6 people to lay bricks. In this case, although the number of personnel has not increased, the efficiency will certainly be improved. It can be understood that a cluster is not necessarily distributed, but distribution is definitely a cluster, which requires multiple servers to work together. At this time, there will be another problem. If the cement mortar is gone, the bricklayer needs to notify and suspend the cement mortar and quickly transport the cement mortar to the wall. In reality, you can shout with your mouth or make a phone call. How to notify the server at this time involves rpc (remote process communication). Let's briefly mention this, and we can discuss it separately next time.

Micro service

Micro-service is an architecture, the principle and distribution are very similar, its split granularity is so fine that each person only does one indecomposable thing, and these subtle things may not be put on a different server, one server can put many micro-services such as A service, B service, C service, another server put B service, C service, D service. It is worth noting that all services need to notify a place called the registry, which can be understood as the project manager, who is responsible for unified coordination and management.

The answers to the questions on how to analyze clusters, distributed and micro-services are shared here. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.

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