知识卡片

普通读书笔记卡 · 1841.h.1.a.1.a.3.f.1.g.1.b

迁出存储过程也要渐进

理解等级:高级

迁出数据库行为可先增加服务接口,由接口暂时转发旧存储过程,让调用者逐步转向服务;再用测试保护的代码替换内部实现,最后确认无人直调旧过程后删除。也可以选择更大的数据上下文以保留现有能力,应比较数据搬运、事务与运维代价后决定。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Evolutionary Data · 查看原书依据

      During the expand phase, developers add the replacement method in the Widgets Administration service, and developers refactor other services to call the Widgets Administration service. Initially, the new method acts as a pass-through to the stored procedure until the team can invisibly replace the functionality in well-tested code. During this period, the application supports calls to either the service or the stored procedure. In the

    参考来源

    - 位置:《Building Evolutionary Architectures Automated Software Governance, 2nd Edition》第06章《Evolutionary Data》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Evolutionary Architectures Automated Software Governance, 2nd Edition/_epub-src/OEBPS/ch06.html;段落定位:Initially, the new method acts as a pass-through) - 结论依据:原文对“迁出存储过程也要渐进”的定义或案例,支撑“迁出数据库行为可先增加服务接口,由接口暂时转发旧存储过程,让调用者逐步转向服务;再用测试保护的代码替换内部实现,最后确认无人直调旧过程后删除”的归纳。据其上下文,也可以选择更大的数据上下文以保留现有能力,应比较数据搬运、事务与运维代价后决定。 - 原始内容:During the expand phase, developers add the replacement method in the Widgets Administration service, and developers refactor other services to call the Widgets Administration service. Initially, the new method acts as a pass-through to the stored procedure until the team can invisibly replace the functionality in well-tested code. During this period, the application supports calls to either the service or the stored procedure. In the