当前位置:网站首页>How to understand distributed architecture and micro service architecture

How to understand distributed architecture and micro service architecture

2022-07-07 08:26:00 Code two brother

How to introduce distributed architecture and micro service architecture to others ?

Let's first introduce the distributed system
A distributed system is a group of computer nodes that communicate through the network and complete common computing tasks
The design concept of distributed system ?
In fact, it comes from the bottleneck of computing power and the increase of cost of minicomputers or mainframes
In the centralized system
We want to improve the processing performance of the program
Can only continue to improve CPU And increase memory
But the improvement of hardware itself has bottlenecks
therefore , When enterprises have higher and higher requirements for computing power
The cluster architecture can no longer meet the requirements
So in this background
Will produce distributed computing
That is to say, a computing task is assigned to multiple computer nodes to run ,
But this kind of computing method is imperceptible to users and clients
It's like accessing a single computer
What it sees is still a whole
In the distributed system ?
The software architecture also needs to be adjusted accordingly
in other words
The original single application needs to be split and deployed to multiple computer nodes for Distributed Computing
so what , Each service uses remote communication protocol to realize the data exchange of calculation results
Finally, summarize the results and return them to the client
An application architecture for such a distributed deployment is called SOA
Also known as a service-oriented architecture
secondly , Explain the microservice architecture again
Actually , The microservice architecture itself is a distributed architecture
Just to say that microservice architecture emphasizes more on the granularity control of application services deployed on various computer nodes
Its core idea is very simple
in other words ,SOA The service node split in the architecture is further granular decoupling
The update granularity service of each split processing is called microservice

And each micro service that is separated independently is served by a small team
The advantage of this split is that it can make our program more scalable
The iterative efficiency of development will also be higher. For some large-scale Internet projects
Microservice architecture can easily realize the innovation and iteration of product functions without affecting the use of users

原网站

版权声明
本文为[Code two brother]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207070525336308.html