This is the 10th day of my participation in the August More Text Challenge

preface

Starting from this article, we will enter the Spring Cloud Alibaba series. Some people may ask why it is not Spring Cloud. First, components in Spring Cloud are basically products of Netflix, while Eureka in Netflix has stopped maintenance, so it is difficult to deal with problems in future use. On the other hand, The technology ecology of Alibaba is relatively perfect, and the community is more suitable for domestic teams abroad. Therefore, we choose Spring Cloud Alibaba for micro services. In this article, we will start our learning journey with Nacos.

Nacos

The full name is Dynamic Naming and Configuration Service, Na Naming /nameServer, CO Naming and Configuration, and Service. Key features of Nacos include:

  • Service discovery and Service Health Monitoring Nacos supports DNs-based and RPC-based service discovery. After a Service provider registers a Service with [native SDK], [OpenAPI], or a [standalone Agent TODO], Service consumers can use [DNS TODO] or [HTTP&API] to find and discover services. Nacos provides real-time health checks on services to prevent requests from being sent to unhealthy hosts or service instances. Nacos supports health checks at the transport layer (PING or TCP) and the application layer (e.g. HTTP, MySQL, user-defined). Nacos provides two health check modes: Agent report mode and server active check mode for complex cloud environments and network topologies, such as VPCS and edge networks. Nacos also provides a unified health check dashboard to help you manage service availability and traffic based on health status.
  • Dynamically configured services Dynamically configured services allow you to manage application and service configurations for all environments in a centralized, external, and dynamic manner. Dynamic configuration eliminates the need to redeploy applications and services when configuration changes, making configuration management more efficient and agile. Centralized configuration management makes it easier to implement stateless services and make it easier for services to scale flexibly on demand. Nacos provides an easy-to-use UI to help you manage the configuration of all your services and applications. Nacos also provides a number of out-of-the-box configuration management features including configuration version tracking, Canary publishing, one-click rollback configuration, and client configuration update status tracking to help you more securely manage configuration changes and reduce the risks associated with configuration changes in a production environment.
  • Dynamic DNS Service The dynamic DNS service supports weighted routing, enabling you to implement load balancing at the middle layer, flexible routing policies, traffic control, and simple DNS resolution services on the data center Intranet. Dynamic DNS services also make it easier for you to implement DNS protocol-based service discovery to help eliminate the risk of coupling to vendor-proprietary service discovery apis. Nacos provides some simple [DNS APIs TODO] to help you manage your service’s associated domain name and available IP:PORT list.
  • Service and Metadata Management Nacos allows you to manage all services and metadata in your data center from a microservices platform construction perspective. This includes management service description, life cycle, static dependency analysis of the service, health of the service, traffic management of the service, routing and security policies, SLA of the service, and most importantly metrics statistics.