知识卡片
可见性超时允许重复执行
队列可先把取出的任务暂时隐藏,收到完成确认后再真正移除;执行者崩溃时,超时让其他工作者接管。但原工作者可能只是慢,随后两个执行者会同时工作,所以必须把重复视为正常故障情形。幂等、结果去重或资源端的有效所有权约束负责保护业务效果。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 12. Event-Driven Batch Processing · 查看原书依据
This initial removal hides the message from other workers, but it doesn’t actually remove it from the queue. When the work has been processed, a second “completed” message is sent to the queue, which permanently removes the work from the queue. Typically a message queue has a timeout
参考来源
- 位置:《Designing Distributed Systems, 2nd Edition》第12章《Chapter 12. Event-Driven Batch Processing》(来源项目 book-sources;源文件:extracted/Designing Distributed Systems, 2nd Edition/_epub-src/OEBPS/ch12.html)
- 结论依据:原文隐藏/完成确认/超时序列明确导致慢工作者与重投重叠。
- 原始内容:This initial removal hides the message from other workers, but it doesn’t actually remove it from the queue. When the work has been processed, a second “completed” message is sent to the queue, which permanently removes the work from the queue. Typically a message queue has a timeout