⭐⭐⭐ Spring Boot 项目实战 ⭐⭐⭐ Spring Cloud 项目实战
《Dubbo 实现原理与源码解析 —— 精品合集》 《Netty 实现原理与源码解析 —— 精品合集》
《Spring 实现原理与源码解析 —— 精品合集》 《MyBatis 实现原理与源码解析 —— 精品合集》
《Spring MVC 实现原理与源码解析 —— 精品合集》 《数据库实体设计合集》
《Spring Boot 实现原理与源码解析 —— 精品合集》 《Java 面试题 + Java 学习指南》

摘要: 原创出处 网络 「网络」欢迎转载,保留摘要,谢谢!


🙂🙂🙂关注**微信公众号:【芋道源码】**有福利:

  1. RocketMQ / MyCAT / Sharding-JDBC 所有源码分析文章列表
  2. RocketMQ / MyCAT / Sharding-JDBC 中文注释源码 GitHub 地址
  3. 您对于源码的疑问每条留言将得到认真回复。甚至不知道如何读源码也可以请教噢
  4. 新的源码解析文章实时收到通知。每周更新一篇左右
  5. 认真的源码交流微信群。

最近 Nacso 2.1.1 正式发布了!

2.1.1 版本特性

该版本的核心解决方案 Nacos 2.0 包括使用公开发布的稳定性问题(默认实现、Grpc 请求和发行版的一致性性能等),另外 Beta 测试插件“测试两个注册协议服务”和“服务跟踪”个新功能。

注册服务:batchRegister

一直以来,Nacos-Sync,Nacos-Sync,Nacos-Sync 等其他社区的主要需求,作为支持多个注册中心迁移的工具,帮助一个注册用户从 Eureka 迁移中心,Consul,Consul 等其他社区注册服务商到 Nacos 中。

在 Nacos 2.0 发布后,Nacos-Sync 第一时间进行了更新。但在注册更新后,由于 Nacos 2.0 的机制发生了一定的变化,同一个客户端同一个服务器只能注册一个实例,这导致了Nacos-Sync这种代理服务模式可以使用同一个客户端进行同一个服务多个实例的代理注册,方便使用同一个大数据的性能。

社区发现,有一些特殊的应用程序,因此,如网关、代理、dubbo3 等,也有一些注册的能力,同学们在进行数次方案讨论后,由最终社区发起代理服务。的版本功能开发,并在 2.1.1 进行 beta 测试。

同一个注册功能主要用于代理注册客户端的场景,允许应用使用一个服务对同一个服务进行多个实例的注册请求。一般使用场景下,用户仍然可以使用注册服务。

服务追踪事件:追踪事件

阿里云发布了关于 Nacos 的公益支持,自从支持相关的文章后支持的社区响起热烈,都能够开源加入。

MSE 团队知道社区对社区的强烈需求,由科学 Z 同学完成事件后,由社区发起,并贡献到开源社区。

同样的,暂时只允许在中源中通过追踪功能,发布订阅版本,作为一种方便的活动方式,以方便SPI的形式,作为社区同学们按照自己的需求定制的发布测试插件进行测试。

注意:两个功能均属于Beta测试阶段,其API,上述功能可能与正式发布时的有一定区别。

更多更新内容

Nacos 2.1.1 的更多变更内容可查看:

https://github.com/alibaba/nacos/releases/tag/2.1.1

特征

[#5863] (BETA) Support batch register service.
[#7424] Add version data compare in the history list.
[#8305] (REMOVE) Remove leave nacos server nodes API temporarily.
[#8481] (BETA) Add TRACE Event to server.
[#8755] Add default fuzzy search feature.

增强

[#8099] Fast failure for distro sync task and verify task if cluster disconnect.
[#8150] Add the namespace description item to the namespace list page.
[#8345] Add validation for service cluster name.
[#8515] Optimize some code in InetUtils.
[#8561] Enhance default authentication plugin performance.
[#8574] Enhance filter service info for push callback.
[#8592] Ehhance GrpcUtil memory and cpu cost.
[#8622] Add NacosEnvironment and add some unit tests.

重构和依赖

[#8369] Remove mina dependency.
[#8383] Upgrade jackson version to 2.12.6.1.
[#8421] Remove commonOkHttp dependency.
[#8472] Remove useless dependency.
[#8479] Refactor singleton construction as private.
[#8540] Upgrade spring-boot version to 2.6.8.
[#8594] Makes distro data load timeout can be configured.
[#8596] Explicitly specify spring-boot-maven-plugin version same as spring-boot.
[#8623] Upgrade mysql-connector-java to 8.0.28.

错误修复

[#7039] Fix config encryptedData md5 calculation problem.
[#8153] Fix NPE for AutoExpireCache.
#8243 Fix health check plugin problem.
[#8275] Fix can't register service when use skywalking.
[#8295] Fix can't login when use embedded storage in cluster model.
[#8318] Fix findAllConfigInfoForDumpAll sql args error.
[#8372] Fix client can't use https connection.
[#8424] Fix cycle dependency problem.
[#8428] Fix naming subscribe bug when multiple NamingService.
[#8505] Fix log configuration conflict in spring-boot project.
#8514 Fix prometheus api error in client.
[#8516] Fix the persistent instance becomes a temporary instance.
[#8602] Fix display error after delete current namespace.
[#8632] Fix subscribe disabled instance problem in the first time.
[#8635] Fix NPE when call the shutdown method.
[#8720] Fix the problem that config aspect invalid problem.
[#8742] Fix change instance metadata, the revision of service not change.
[#8784] Fix some bugs for Console UI.
[#8833] Fix import config failed when open auth.
[#8880] Fix constantly loading config when not read permission.

参考资料:

  • https://nacos.io/zh-cn/blog/2.1.1-release.html
  • https://github.com/alibaba/nacos/releases/tag/2.1.1
文章目录
  1. 1. 2.1.1 版本特性
    1. 1.1. 注册服务:batchRegister
    2. 1.2. 服务追踪事件:追踪事件
    3. 1.3. 更多更新内容
    4. 1.4. 特征
    5. 1.5. 增强
    6. 1.6. 重构和依赖
    7. 1.7. 错误修复