知识卡片

普通读书笔记卡 · 3333.i.2

契约隔离数据库变更

理解等级:高级

限界上下文把服务及其拥有的数据封装起来,其他服务经拥有者的接口读取。接口可保留与表不同的字段名、类型和兼容值,使删列等内部调整不必同时传染消费者。愿望清单取消有效期时,拥有者可先把接口有效期保持为零或远期值;这需要明确兼容含义,不能把数据库模式直接当接口。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 拆分操作数据 · 查看原书依据

      The advantage of the bounded context is that the data sent to Service C can be a different contract than the schema for Database D. This means that a breaking change to some table in Database D impacts only Service D and not necessarily the contract of the data sent to Service C. In other words, Service C is abstracted from the actual schema structure of Database D.

    参考来源

    - 位置:《Software Architecture: The Hard Parts》第06章《拆分操作数据》(来源项目:book-sources;源文件:extracted/Software Architecture The Hard Parts Modern Trade-Off Analyses for Distributed Architectures (Neal Ford, Mark Richards, Pramod Sadalage etc.)/_epub-src/OEBPS/ch06.xhtml) - 结论依据:所引连续原文给出本卡机制或取舍;条件与示例结合本节已读上下文解释。 - 原始内容:The advantage of the bounded context is that the data sent to Service C can be a different contract than the schema for Database D. This means that a breaking change to some table in Database D impacts only Service D and not necessarily the contract of the data sent to Service C. In other words, Service C is abstracted from the actual schema structure of Database D.