Registration center, service center, configuration center, the difference between message middleware and Nacos (all dry goods, dead dry!)

The difference between registration center, service center, configuration center, and message middleware

Registration center, service center, configuration center and message middleware are all common components in distributed systems, and they have different functions and purposes.

1. Registry Center

​ The registry is the core component of service governance, which is responsible for the registration and discovery of services. When a service starts, it will register its information with the registration center, and periodically send heartbeat information to the registration center. When other services need to call the service, they can query the registration center to obtain the information of the service, so as to realize the call and discovery of the service.

2. Service Center

​ The service center is also an important component of service governance, which is responsible for publishing, managing and monitoring services. The service center can monitor and manage information such as service status and performance, and can also provide functions such as service load balancing and fault recovery. The service center is an implementation of registry-based service governance.

3. Configuration Center

​ The configuration center is another important component in the distributed system, which is responsible for the management and distribution of configuration information. In a distributed system, there may be differences in configuration information between different services. The configuration center can centrally manage these configuration information and distribute the configuration information to corresponding services. In this way, configuration modification and management can be performed conveniently, and the consistency of configuration information can also be ensured.

4. Message Middleware

Messaging middleware is a component for asynchronous communication that passes messages from one application to another. In a distributed system, when asynchronous communication is required between different services, message middleware can be used to achieve it. Message middleware can ensure the reliability, sequence and consistency of messages, and can also support advanced features such as message broadcast and subscription.

In general, these components have different functions and uses, but they are all indispensable components in distributed systems, which can help us realize functions such as service governance, configuration management, and asynchronous communication, and improve the reliability of distributed systems and scalability.

Common registration center, service center, configuration center, message middleware

Common registration centers, service centers, configuration centers and message middleware are as follows:

  1. Registration center: Common registration centers include ZooKeeper, Consul, Eureka, etc. They are all components used for service registration and discovery, which can easily manage services in distributed systems.
  2. Service center: Common service centers include Spring Cloud Netflix's Eureka, Dubbo's ZooKeeper, etc. They are mainly used for publishing, managing, and monitoring services, and can provide functions such as load balancing and fault recovery.
  3. Configuration center: Common configuration centers include Spring Cloud Config, Apollo, Diamond, etc. They can centrally manage configuration information in distributed systems and dynamically distribute configuration information to corresponding services.
  4. Message middleware: Common message middleware includes ActiveMQ, RabbitMQ, Kafka, etc. They can support asynchronous communication, ensure the reliability and order of messages, and support advanced features such as message broadcast and subscription.

It should be noted that the above lists are only common components. In fact, there are many other components to choose from. The specific choice should be determined according to the specific business requirements and technology stack.

Registration center, service center, configuration center in one software Nacos

At present, there are some software that can realize the functions of registration center, service center and configuration center at the same time, such as Nacos in Spring Cloud Alibaba. Nacos is a dynamic service discovery, configuration management, and service management platform based on cloud-native architecture. It can implement functions such as service registration and discovery, configuration management, and dynamic routing.

Specifically, Nacos can implement the following functions:

  1. Service registration and discovery: Nacos can be used to realize service registration and discovery, and support multiple protocols and automatic online and offline service instances.
  2. Configuration management: The configuration information in the distributed system can be managed centrally, and the configuration information can be dynamically distributed to the corresponding services.
  3. Dynamic routing: It can realize dynamic routing and load balancing, and supports multiple load balancing strategies.
  4. Service management: It can monitor and manage information such as service status and performance, and can also provide functions such as fault recovery and service degradation.

In general, Nacos is a feature-rich cloud-native service center that can meet the needs of registration centers, service centers, and configuration centers in distributed systems, and can also implement advanced features such as dynamic routing and load balancing.

If there are any deficiencies, welcome to add!

Guess you like

Origin blog.csdn.net/qq_46138492/article/details/129505427