Polaris Instance Version | Compatible Open-Source Versions of Nacos SDK | Remarks |
Versions prior to 2.0.2 (excluding development versions) | Incompatible | |
2.0.2 (excluding development versions) | Compatible with Nacos SDK 2.x using gRPC protocol for access | Part of the APIs in version 2.4 and later are not supported. For details, see the API scope below. |
Versions 2.1.0 and later (excluding development versions) | Compatible with Nacos SDK 2.x using gRPC protocol and HTTP for access Compatible with Nacos SDK 1.x using HTTP for access | Part of the APIs in version 2.4 and later are not supported. For details, see the API scope below. |
Nacos Client API | | gRPC Protocol | HTTP protocol |
Configuration center | Obtaining a configuration | ✔ | ✔ |
| Monitoring a configuration | ✔ | ✔ |
| Deleting monitoring | ✔ | ✔ |
| Releasing a configuration | ✔ | ✔ |
| Delete configurations | ✔ | ✔ |
| Obtaining a configuration with monitoring capability | × | - |
| Releasing a configuration with CAS | × | - |
Registry | Registering an instance | ✔ | ✔ |
| Deregistering an instance | ✔ | ✔ |
| Obtaining all instances | ✔ | ✔ |
| Obtaining the list of healthy or unhealthy instances | ✔ | ✔ |
| Obtaining a healthy instance | ✔ | ✔ |
| Monitoring services | ✔ | ✔ |
| Canceling monitoring services | ✔ | ✔ |
| Registering service instances in batches | × | - |
| Deregistering service instances in batches | × | - |
| Monitoring services with selectors | × | - |
| Canceling monitoring services with selectors | × | - |
| Obtaining the service list with pagination | × | - |
| Obtaining the list of services monitored by the current client | × | - |
Feature | Difference | Remarks |
Authentication capability | By default, write operations require authentication, while read operations do not. | |
Registration capability | Polaris registrations are written to the database. | |
Service model | Polaris does not have the concept of groups. | Polaris service names are formed by concatenating the value of the Nacos group field and the value of the Nacos service field. |
Console | There are differences between the Nacos console and the Polaris console. | |
Nacos Field | Nacos Field Value | Polaris Field | Polaris Field Value Description |
namespace | Default namespace/non-default namespace ID | namespace | default/namespace name. |
group | DEFAULT_GROUP | service | Polaris service names are formed by concatenating the value of the Nacos group field and the value of the Nacos service field. ${group}__${service} is the final Polaris service name. If group is DEFAULT_GROUP, the service name is ${service}. |
service | DEFAULT_GROUP | service | |
cluster | DEFAULT | instance.metadata | As part of an instance tag, the instance tag key is internal-nacos-cluster. |
spring.cloud.nacos.username="can be any value, such as: username"spring.cloud.nacos.password="Resource access credential Token for Polaris (North Star) user/user group"spring.cloud.nacos.discovery.server-addr="Polaris (North Star) server IP:8848"spring.cloud.nacos.discovery.namespace="Polaris (North Star) namespace name"


Properties properties = new Properties();properties.put(PropertyKeyConst.SERVER_ADDR, "Polaris (North Star) server IP:8848");properties.put(PropertyKeyConst.NAMESPACE, "Polaris (North Star) namespace name");properties.put(PropertyKeyConst.USERNAME, "any value");properties.put(PropertyKeyConst.PASSWORD, "Polaris (North Star) user/user group resource access credential Token");// Create a registration discovery clientNamingService namingService = NacosFactory.createNamingService(properties);


dubboregistryaddress: nacos://Polaris (North Star) server IP:8848?username=any value&password=Resource access credential Token for Polaris (North Star) user/user groupparameters.namespace: Polaris (North Star) namespace namemetadata-reportaddress: nacos://Polaris (North Star) server IP:8848


Nacos Field | Nacos Field Value | Polaris Field | Polaris Field Value Description |
namespace | Default namespace/non-default namespace ID | namespace | default/namespace name |
group | DEFAULT_GROUP | group | Polaris configuration group name |
dataId | application.yaml | file_name | Polaris configuration file name |
spring.cloud.nacos.username="can be any value"spring.cloud.nacos.password="Resource access credential Token for Polaris (North Star) user/user group"spring.cloud.nacos.config.namespace="Polaris (North Star) namespace name"spring.cloud.nacos.config.server-addr="Polaris (North Star) server IP:8848"spring.cloud.nacos.config.group="Polaris (North Star) configuration group name"


Properties properties = new Properties();properties.put(PropertyKeyConst.SERVER_ADDR, "Polaris (North Star) server IP:8848");properties.put(PropertyKeyConst.NAMESPACE, "Polaris (North Star) namespace name");properties.put(PropertyKeyConst.USERNAME, "any value");properties.put(PropertyKeyConst.PASSWORD, "Polaris (North Star) user/user group resource access credential Token");// Register a configuration clientConfigService configService = new NacosConfigService(properties);


dubboconfig-centeraddress: nacos://Polaris (North Star) server IP:8848


Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan