Nacos 2.2.0 Release Highlights: New Plugins, Refactoring, and Bug Fixes
The Nacos 2.2.0 release introduces major changes including removal of redundant 1.x code, new rate‑limiting, custom environment, and datasource plugins, enhanced batch registration, v2 OpenAPI, LDAP authentication, extensive refactoring, numerous bug fixes, and updated UI dependencies.
Nacos 2.2.0 Release Overview
Nacos 2.2.0 is a significant version that brings several major changes.
Removed redundant 1.x naming and duplicate code.
Upgrade path: 1.x Nacos‑server cannot be upgraded directly to 2.2.0; upgrade must start from 2.0.0. The 1.x client remains compatible with a 2.2.0 server.
New Plugins
Rate‑limiting plugin – refactored to extend functionality and protect Nacos‑server under high concurrency.
Custom environment plugin – contributed by the community to handle server configuration such as decrypting database passwords.
Datasource plugin – added to support additional databases.
Another important change is the enhanced test‑version plugin tracking and batch registration for easier usage.
Features
Support for batch service registration and deregistration.
Added v2 OpenAPI for Nacos 2.0.
Datasource plugin addition.
Data tracking plugin addition.
Prometheus service discovery (Prometheus HTTP SD) support.
LDAP authentication plugin example and LDAP identity authentication.
Refactoring
Deleted 1.x naming and redundant code.
Optimized selector logic.
Server now automatically stops on startup errors.
Optimized fuzzy query handling.
Enhanced datasource plugin.
External datasource added isEmpty check to support external configuration.
Changed NacosApplicationListener method modifiers to default.
Preserved query conditions when returning to list configuration and service pages.
Refactored rate‑limiting module into a plugin.
Bug Fixes
Fixed inconsistent group_id length across tables.
Fixed inability to create bean ldapAuthenticationProvider.
Fixed Prometheus metric instance creation error.
Fixed Base64 decoding error for token.secret.key in validation plugin.
Fixed namespace list issues.
Fixed null‑pointer order check in client worker thread.
Fixed health‑check errors after changing instance protocol to HTTP.
Fixed incorrect instance selection when all weights are zero.
Fixed console configuration query button not auto‑adapting to browser width.
Fixed service metadata cleanup logic causing deregistration failures.
Dependency Upgrade
Upgraded UI dependencies to address related vulnerabilities.
Download link: nacos-server-2.2.0.zip
Final Note
The author encourages readers to like, watch, share, and bookmark the article if it was helpful, and mentions a knowledge‑sharing community offering premium content such as Spring full‑stack practice, massive data sharding, DDD microservice series, and career guidance.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Code Ape Tech Column
Former Ant Group P8 engineer, pure technologist, sharing full‑stack Java, job interview and career advice through a column. Site: java-family.cn
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
