← 返回刚才阅读的位置

知识卡片

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

模式兼容的读写方向

理解等级:高级

前向兼容让旧读者读新格式,帮助生产者先升级;后向兼容让新读者读旧格式,支持历史重放和消费者先部署;完整兼容同时要求二者。方向应以读者和写者版本说明,避免“向前向后”口语混淆。兼容检查覆盖哪些版本取决于实际策略,逐次兼容不能不加条件地推出任意历史版本都可读取。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Communication and Data Contracts · 查看原书依据

      Allows for data produced with a newer schema to be read as though it were produced with an older schema. This is a particularly useful evolutionary requirement in an event-driven architecture, as the most common pattern of system change begins with the producer updating its data definition and producing data with the newer schema. The consumer is required only to update its copy of the schema and code should it

    参考来源

    - 位置:《Building Event-Driven Microservices Leveraging Organizational Data at Scale (Adam Bellemare)》第03章《Communication and Data Contracts》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Event-Driven Microservices Leveraging Organizational Data at Scale (Adam Bellemare)/_epub-src/OEBPS/ch03.xhtml;规范化段落起句:Allows for data produced with a newer schema) - 结论依据:原文对该对象的定义、运行说明或对比支持以下归纳:前向兼容让旧读者读新格式,帮助生产者先升级;后向兼容让新读者读旧格式,支持历史重放和消费者先部署;完整兼容同时要求二者。本卡同时保留其适用条件与失败边界。 - 原始内容:Allows for data produced with a newer schema to be read as though it were produced with an older schema. This is a particularly useful evolutionary requirement in an event-driven architecture, as the most common pattern of system change begins with the producer updating its data definition and producing data with the newer schema. The consumer is required only to update its copy of the schema and code should it