XnLemon commented on issue #3686: URL: https://github.com/apache/dubbo-go/issues/3686#issuecomment-5351895151
总体来说 目前我的设计属于是过度想做一个长期的抽象 没有简单去满足当前配置和实现 1. 我理解这里设计如果仅针对filter来讲 您这边的设计更简洁一点 filter 在执行请求时可以直接从 URL 和 Invocation 获取 interface、group、version、method,再由扩展自行生成配置 key。 引入 Resource 属于长期抽象,提前固化其字段、绑定时机和生命周期会增加公共 API 的维护成本 我了解并接受您的判断owo 2.map[string]any 可以满足目前的需求 这两个字段不是必须的 因为目前不需要 3.我也认同当前 PR 不应该重新建立一套完整的 runtime 系统。现阶段将优先复用已有的配置注册、Config、koanf 和 filter factory 机制,只补充扩展配置实例创建、初始化以及由 client/server 入口决定 scope 所需的最小能力。Resource、FilterSpec 等更长期的抽象暂不纳入本 PR,后续根据实际扩展场景再单独设计。 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
