知识卡片
绞杀模式逐步替换旧实现
绞杀模式让新组件与旧实现并行,逐步把调用迁往新 API,降低一次性重写风险。调用方较多时可在前端代理或网关切流,让消费者继续使用稳定入口;迁移计划还要明确旧路径何时退出。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- · 查看原书依据
Another model is to use a proxy or gateway to front the API interaction, routing to the legacy implementation or to the new implementation. This is a type of facade using a proxy, meaning that the API consumer uses the same API and is unaware of the migration from one service to another that is happening behind the scenes.
参考来源
- 位置:《Mastering API Architecture》第8章《Redesigning Applications to API-Driven Architectures》之《Strangler Fig》(源文件:_epub-src/OEBPS/ch08.xhtml)
- 结论依据:原文描述新旧实现并存、逐步迁移,并用代理或网关在调用方无感知时路由两种实现。
- 原始内容:Another model is to use a proxy or gateway to front the API interaction, routing to the legacy implementation or to the new implementation. This is a type of facade using a proxy, meaning that the API consumer uses the same API and is unaware of the migration from one service to another that is happening behind the scenes.