知识卡片

普通读书笔记卡 · 1968.f.2.a

异步翻译保护内部事件

理解等级:中级

异步消息代理订阅来源事件,转换模型并过滤无关消息,再发送给目标订阅者。开放主机服务不应只翻译同步对象,却把内部领域事件原样公开;事件也应转换为发布语言,区分内部事件与对外集成事件,避免暴露模型实现细节。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 通信模式 · 查看原书依据

      Asynchronous model translation is essential when implementing an open host service. It’s a common mistake to design and expose a published language for the model’s objects and allow domain events to be published as they are, thereby exposing the bounded context’s implementation model. Asynchronous translation can be used to intercept the domain events and convert

    参考来源

    - 位置:《Learning Domain-Driven Design》第9章《通信模式》(来源项目:book-sources;源文件:extracted/Learning Domain-Driven Design/_epub-src/OEBPS/ch09.html) - 结论依据:原文围绕本卡所述机制给出定义、适用条件及相关取舍,以下摘录为直接依据。 - 原始内容:Asynchronous model translation is essential when implementing an open host service. It’s a common mistake to design and expose a published language for the model’s objects and allow domain events to be published as they are, thereby exposing the bounded context’s implementation model. Asynchronous translation can be used to intercept the domain events and convert