← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 1980.z.4.e.2.b

源表变更不等于契约兼容

理解等级:中级

源数据库允许的列新增、删除、重命名或改类型,未必符合公共事件的演进规则。查询和日志捕获常在变更已发生后才发现冲突;应用内的捕获表可把兼容检查融入发布流程。应把内部模型、捕获中间表示和输出schema一起测试,破坏性变化按新契约迁移,而不是让消费者临时猜缺失字段。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《Building Event-Driven Microservices Leveraging Organizational Data at Scale (Adam Bellemare)》第04章《Integrating Event-Driven Architectures with Existing Systems》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Event-Driven Microservices Leveraging Organizational Data at Scale (Adam Bellemare)/_epub-src/OEBPS/ch04.xhtml;规范化段落起句:Valid alterations to the data set) - 结论依据:原文对该对象的定义、运行说明或对比支持以下归纳:源数据库允许的列新增、删除、重命名或改类型,未必符合公共事件的演进规则。本卡同时保留其适用条件与失败边界。 - 原始内容:Valid alterations to the data set under capture may not be valid changes for the liberated event schema. This incompatibility will cause breaking schema changes that will impact all downstream consumers of the event stream.