alibaba / Sentinel

A powerful flow control component enabling reliability, resilience and monitoring for microservices. (面向云原生微服务的高可用流控防护组件)
https://sentinelguard.io/
Apache License 2.0
22.37k stars 8.02k forks source link

sentinel+nacos,不支持多dataId吗 | Sentinel Nacos data-source multiple dataId #3008

Open caochengxiang opened 1 year ago

caochengxiang commented 1 year ago

不支持多dataId吗?

ReadableDataSource<String, List> flowRuleDataSource = new NacosDataSource<>("address", "DEFAULT_GROUP", "dataId", source -> gson.fromJson(source, new TypeToken<List>(){}.getType())); FlowRuleManager.register2Property(flowRuleDataSource.getProperty());

sczyh30 commented 1 year ago

同种规则多个 dataId 的场景是?

sczyh30 commented 1 year ago

Any feedback?

xuchaoqun commented 9 months ago

同种规则多个 dataId 的场景是?

每个资源一个dataId,这个每个资源的配置可以隔离开。一是防止配置过大,二是防止对多个资源的配置同时修改引起的配置冲突