知识卡片
服务层与处理层的组合
外部状态允许API和事件处理器成为两个执行体,分别采用适合的语言和并行度。它们仍属于同一上下文,应共用所有权并共同构建、测试和部署;API可在处理器失败时继续服务旧数据,须披露陈旧性。此模式不能推导为不同业务服务应直接共享数据库。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Integrating Event-Driven and Request-Response Microservices · 查看原书依据
While this pattern has two microservices operating on a single data store, there’s still just a single bounded context. These two microservices are treated as a single composite service. They reside within the same code repository and are tested, built, and deployed together.
参考来源
- 位置:《Building Event-Driven Microservices Leveraging Organizational Data at Scale (Adam Bellemare)》第13章《Integrating Event-Driven and Request-Response Microservices》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Event-Driven Microservices Leveraging Organizational Data at Scale (Adam Bellemare)/_epub-src/OEBPS/ch13.xhtml;规范化段落起句:While this pattern has two microservices)
- 结论依据:原文对该对象的定义、运行说明或对比支持以下归纳:外部状态允许API和事件处理器成为两个执行体,分别采用适合的语言和并行度。本卡同时保留其适用条件与失败边界。
- 原始内容:While this pattern has two microservices operating on a single data store, there’s still just a single bounded context. These two microservices are treated as a single composite service. They reside within the same code repository and are tested, built, and deployed together.