Evaluation of the use of Nacos open source version

1. The use of Nacos

Configure the connection method of mysql here, spring.datasource.platform=mysql is the old version, and the latest one uses spring.sql.init.platform=mysql.
1.png

Enable authentication access and set whitelist
2.png

To start, the configuration file of Ruoyi is directly used here.
3.png

Start successfully! Do a review and analysis below!

2. The comparison between Nacos and Eureka in performance, function, console experience, upstream and downstream ecology and community experience:

  1. Performance: Nacos is relatively good in terms of performance, and it uses some optimization techniques to improve the efficiency of service registration and discovery. Eureka may experience performance issues when deployed at scale.

  2. Function: Nacos is more comprehensive than Eureka in terms of functions. In addition to service registration and discovery, Nacos also provides functions such as configuration management, dynamic routing, and service breaking. Eureka is primarily focused on service registration and discovery.

  3. Console experience: Nacos' console provides an intuitive user interface for convenient management and monitoring of service instances. Eureka's console is relatively simple and has fewer functions.

  4. Upstream and downstream ecology: Nacos is richer in upstream and downstream ecology. It is tightly integrated with popular microservice frameworks and container orchestration tools such as Spring Cloud and Kubernetes, and can be used with them seamlessly. Eureka's upstream and downstream ecology is relatively small.

  5. Community experience: Nacos is open sourced by Alibaba and has a large community support and activity. Eureka's community is relatively small, and updates and support may be relatively slow.

To sum up, Nacos is relatively better than Eureka in terms of performance, functions, console experience, upstream and downstream ecology, and community experience.

3. Remember the mistakes that are easy to make in using Nacos

Nacos reports an error after enabling nacos.core.auth.enabled=true!
4.png

  • Note here that the versions of nacos, springboot, and springcloud have corresponding relationships on github. https://github.com/alibaba/spring-cloud-alibaba/wiki/ Release Notes

  • In addition, add the account and password in the yml configuration file (note that it is not the key and value of the whitelist)
    5.png

  • Start again, success!
    6.png

  • The key and value prepared by the whitelist are used in the head, as follows:
    7.png

4. Some requirements for Nacos open source

The functions, console experience, and upstream and downstream integration of Nacos have met the needs of most individual developers.
Here are some suggestions for the documentation. The official documentation hopes to be updated more timely. Some functions may not be consistent with the latest functions and codes, and the tutorials in the official documentation are a little short, and there is no systematic tutorial.
If the Nacos open source version cannot meet your needs, please move to MSE-Nacos. MSE-Nacos provides more powerful functions and can meet enterprise-level applications.

Guess you like

Origin blog.csdn.net/weixin_43684214/article/details/132557659