知识卡片
聚合器持久收齐消息
聚合器是保存相关消息的有状态过滤器,在消息集完整后生成一条综合结果。工作流引擎能保存已收消息并设置超时,不必让线程一直阻塞。业务通常只需要某个具体场景的几条回复;聚合仍需处理消息先到的情况,否则未就绪的接收节点会漏掉输入。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 工作流引擎与集成挑战 · 查看原书依据
Use a stateful filter, an Aggregator, to collect and store individual messages until a complete set of related messages has been received. Then, the Aggregator publishes a single message distilled from the individual messages. As you guessed, the word “stateful” hints at a workflow engine. You can implement such an aggregator with BPMN as shown
参考来源
- 位置:《Practical Process Automation》第9章《工作流引擎与集成挑战》(来源项目:book-sources;源文件:extracted/Practical Process Automation (Bernd Ruecker)/_epub-src/OEBPS/ch09.xhtml)
- 结论依据:原文给出的机制、实例与边界支持本卡的解释。
- 原始内容:Use a stateful filter, an Aggregator, to collect and store individual messages until a complete set of related messages has been received. Then, the Aggregator publishes a single message distilled from the individual messages. As you guessed, the word “stateful” hints at a workflow engine. You can implement such an aggregator with BPMN as shown