Open caochengxiang opened 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());
同种规则多个 dataId 的场景是?
Any feedback?
每个资源一个dataId,这个每个资源的配置可以隔离开。一是防止配置过大,二是防止对多个资源的配置同时修改引起的配置冲突
不支持多dataId吗?
ReadableDataSource<String, List> flowRuleDataSource = new NacosDataSource<>("address", "DEFAULT_GROUP", "dataId",
source -> gson.fromJson(source, new TypeToken<List>(){}.getType()));
FlowRuleManager.register2Property(flowRuleDataSource.getProperty());