知识卡片
无状态翻译拦截请求
无状态翻译在每次请求经过时完成映射,不保留跨请求数据。同步调用可把逻辑放在本地代理中,或交给API网关;网关还能管理多版本发布语言。多个下游共享翻译服务时,它可成为专门做集成转换的交换上下文,而不只是某个业务服务内部代码。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 通信模式 · 查看原书依据
Stateless translation happens on the fly, as incoming (OHS) or outgoing (ACL) requests are issued, while stateful translation involves a more complicated translation logic that requires a database. Let’s see design patterns for implementing both types of model translation. Stateless Model Translation For stateless model translation, the bounded context that owns the translation (OHS for
参考来源
- 位置:《Learning Domain-Driven Design》第9章《通信模式》(来源项目:book-sources;源文件:extracted/Learning Domain-Driven Design/_epub-src/OEBPS/ch09.html)
- 结论依据:原文围绕本卡所述机制给出定义、适用条件及相关取舍,以下摘录为直接依据。
- 原始内容:Stateless translation happens on the fly, as incoming (OHS) or outgoing (ACL) requests are issued, while stateful translation involves a more complicated translation logic that requires a database. Let’s see design patterns for implementing both types of model translation. Stateless Model Translation For stateless model translation, the bounded context that owns the translation (OHS for