知识卡片
错误交给工作流代理修复
原书工作流事件模式让消费者遇到异步消息错误后,把消息和错误交给代理并继续处理队列;代理尝试自动修复、重新入队,无法判断时转人工处理。股票订单例中“8756 SHARES”不能解析为整数,代理去掉多余单词后重投。该修复只适用于可确定的格式错误,不能推断任意交易错误都可自动纠正;重投还会改变处理顺序。[[修复重投打乱同账户交易顺序]]
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Event-Driven Architecture Style · 查看原书依据
If the event consumer experiences an error while processing the data, it immediately delegates that error to the Workflow Processor service and moves on to the next message in the event queue.
参考来源
- 位置:《Fundamentals of Software Architecture》原书第15章《Event-Driven Architecture Style》(阅读计划第18项,单元11;源文件:`OEBPS/ch15.html`)
- 结论依据:工作流事件模式与交易指令格式例子。
- 原始内容:If the event consumer experiences an error while processing the data, it immediately delegates that error to the Workflow Processor service and moves on to the next message in the event queue.