Sentinel icon indicating copy to clipboard operation
Sentinel copied to clipboard

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

Open caochengxiang opened this issue 2 years ago • 3 comments

不支持多dataId吗?

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

caochengxiang avatar Dec 29 '22 04:12 caochengxiang

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

sczyh30 avatar Dec 30 '22 06:12 sczyh30

Any feedback?

sczyh30 avatar Jan 05 '23 07:01 sczyh30

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

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

xuchaoqun avatar Jan 05 '24 03:01 xuchaoqun