concise

  • Distributed: A business is split into several sub-businesses and deployed on different servers
  • Clustering: The same business, deployed on multiple servers

Explanation:

  • Clustering the functionality implemented by each server [no difference]. The function of distributed each machine is “different”.
  • Clustering is the deployment of the same business on multiple machines to improve system availability. Distributed is the separation of different business modules to different machines to solve the problem of high concurrency
  • Cluster is horizontal split and distributed is vertical split

What is the relationship between distribution and microservices

References:

https://zhuanlan.zhihu.com/p/…

  • Distributed, the project is divided into several modules, and separately deployed, that is, distributed
  • Microservices, finer grained split (such as user information module, billing module, etc.)

The characteristics between the three

The cluster

Clustering multiple servers together, all doing the same thing, alleviates the problem of single failure and concurrency stress in a single architecture

  • Scalability: A group of servers grouped together, each of which can handle tasks individually, and the number of clusters can be increased or reduced if stress issues occur
  • High availability: If one service fails, other services can be used to ensure high availability of the overall business
  • Load Balancing: Balancing network traffic load, distributing the traffic to each server to reduce individual pressure
  • High performance: in the case of cluster of multiple services, can enable the program to run processing parallel computing, improve the computing speed

distributed

Split different businesses to reduce the pressure on the overall service, and connect different business data in some way to improve the overall service operation efficiency

Micro service

A very small business split, deployed separately, run separately, and maintained separately

Distributed is also the equivalent of micro-services