知识卡片
事件流由初始与派生事件接力
事件驱动拓扑包含初始事件、事件代理、事件处理器和派生事件。原书零售订单例中,下单事件经代理交给订单处理器;它完成写入后发布“订单已创建”,通知、付款、库存处理器并行响应并各自发布结果。处理器只负责自己的步骤,整个事件流在所有派生事件处理完后停止;各处理器可独立扩容。[[派生事件记录不同处理结果]]
结构图:
flowchart LR
A[初始事件] --> B[事件代理]
B --> C[首个处理器]
C --> D[派生事件]
D --> B
B --> E[其他处理器]
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Event-Driven Architecture Style · 查看原书依据
The four primary architectural components of its topology are an initiating event, an event broker, an event processor (usually just called a service), and a derived event.
参考来源
- 位置:《Fundamentals of Software Architecture》原书第15章《Event-Driven Architecture Style》(阅读计划第18项;源文件:`OEBPS/ch15.html`)
- 结论依据:单元02:四个拓扑组件及零售订单接力。
- 原始内容:The four primary architectural components of its topology are an initiating event , an event broker , an event processor (usually just called a service ), and a derived event .