知识卡片
编舞通过事件协作
编舞让服务订阅事件并独立作出反应,而不是由中心逐个直接调用。发布者与消费者围绕消息契约协作,因此新消费者更容易加入。代价是流程分散到多个参与方,整体追踪、数据一致性和失败恢复更难。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Monoliths and Microservices · 查看原书依据
Choreography in microservices architecture represents a decentralized approach to service interaction, contrasting with the centralized nature of orchestration. In choreography, each service is designed to operate independently, reacting to events and communicating with other services through a shared event mechanism without relying on a central coordinator.
参考来源
- 位置:《Building Distributed Systems Designing scalable architectures with microservices, event-driven patterns, and robust deployment…》第02章《Monoliths and Microservices》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Distributed Systems Designing scalable architectures with microservices, event-driven patterns, and robust deployment…/_epub-src/OPS/ch02.xhtml)
- 结论依据:原文以服务职责、依赖或运行情境展开本卡主题;本卡保留其作用条件与代价,不把局部优势推广为无条件保证。
- 原始内容:Choreography in microservices architecture represents a decentralized approach to service interaction, contrasting with the centralized nature of orchestration. In choreography, each service is designed to operate independently, reacting to events and communicating with other services through a shared event mechanism without relying on a central coordinator.