The difference between distributed, cluster, and microservices.

Distributed: It is to split multiple services according to the business. Distributed can put the split services on one server.

Cluster: It is the overall expansion. It is deployed on multiple servers. The cluster must have polymorphic servers. When the service becomes a performance bottleneck and cannot be independently expanded, it will be deployed on different machines for a long time.

Distributed and clustered as an example: from A to C, will pass through B in the middle. Splitting A to BB to C into two lines is called distributed, and adjusting the number of buses on each line is called clustering

Microservice
1 has different meanings: microservice is an architectural style, a method of developing a single application program into a set of small services, each service runs in its own process, and the communication between services adopts a lightweight communication mechanism
2. The concept level is different: microservices are something at the design level, and generally consider how to split the system logically, that is, vertical split. Distributed is something at the deployment level, that is, it emphasizes the composition of the physical level, that is, each subsystem of the system is located on different computers. 3. Different problem solving: microservice architecture: microservices solve the problem of system complexity, generally speaking, it is a business problem, that is, there are too many responsibilities in a system, and it needs to be decoupled for easy understanding and maintenance. Distributed solves the problem of system performance: that is, solves the problem of a single point of system deployment, and tries to disperse the subsystems that make up the system on different machines to improve the throughput of the system.

Guess you like

Origin blog.csdn.net/qq_54796785/article/details/129850272