Sentinel
Sentinel copied to clipboard
sentinel+nacos,不支持多dataId吗 | Sentinel Nacos data-source multiple dataId
不支持多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());
同种规则多个 dataId 的场景是?
Any feedback?
同种规则多个 dataId 的场景是?
每个资源一个dataId,这个每个资源的配置可以隔离开。一是防止配置过大,二是防止对多个资源的配置同时修改引起的配置冲突