知识卡片

问题卡 · 5367.c.1

通知携带数据解除共同写入

理解等级:高级

工单完成服务原本写调查表的完成时间与专家,调查服务写发送时间和答案,形成共同写入。若把调查表加进工单数据域,又会逐步合回大库。利用本来就要发的调查启动事件携带这些字段,让调查服务唯一写表,可避免额外跨schema连接;调查记录创建随之成为独立异步活动,需要接受这个事务边界变化。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 数据所有权与分布式事务 · 查看原书依据

      Since the Ticket Completion Service is already sending a notification event, the necessary ticket information can be passed along with that event, thus eliminating the need for the Ticket Completion Service to have any access to the Survey table.

    参考来源

    - 位置:《Software Architecture: The Hard Parts》第09章《数据所有权与分布式事务》(来源项目: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/ch09.xhtml) - 结论依据:所引连续原文给出本卡机制或取舍;条件与示例结合本节已读上下文解释。 - 原始内容:Since the Ticket Completion Service is already sending a notification event, the necessary ticket information can be passed along with that event, thus eliminating the need for the Ticket Completion Service to have any access to the Survey table.