知识卡片

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

有状态翻译聚合信息

理解等级:中级

需要批处理请求、把细粒度消息合并为一条,或把多个来源信息统一为目标模型时,翻译逻辑要保存中间状态。单次请求代理不足以完成这些工作,需要持久化和状态处理。前端后端模式也常组合多服务数据;独立防腐层可把集成复杂度从核心业务逻辑中移走。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

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

      Model transformation that aggregates incoming data cannot be implemented using an API gateway, and thus requires more elaborate, stateful processing. To track the incoming data and process it accordingly, the translation logic requires its own persistent storage (see Figure 9-9). Figure 9-9. Stateful model transformation In some use cases, you can avoid implementing a custom

    参考来源

    - 位置:《Learning Domain-Driven Design》第9章《通信模式》(来源项目:book-sources;源文件:extracted/Learning Domain-Driven Design/_epub-src/OEBPS/ch09.html) - 结论依据:原文围绕本卡所述机制给出定义、适用条件及相关取舍,以下摘录为直接依据。 - 原始内容:Model transformation that aggregates incoming data cannot be implemented using an API gateway, and thus requires more elaborate, stateful processing. To track the incoming data and process it accordingly, the translation logic requires its own persistent storage (see Figure 9-9). Figure 9-9. Stateful model transformation In some use cases, you can avoid implementing a custom