知识卡片
交付语义约束重复与丢失
至少一次允许重复,依靠重试降低丢失风险;至多一次允许未送达,限制重复。所谓恰好一次需明确作用范围与故障假设,不能仅凭消息接收次数推出业务效果只发生一次。信用卡扣款例子展示重复的危险,但至多一次加人工重试并不是完整的支付正确性方案。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 2. Important Distributed System Concepts · 查看原书依据
The first is “at least once” delivery. As its name suggests, at least once ensures that a message or a request will be delivered at least once to the recipient. The “at least” part is the important part, because with at least once delivery there are no guarantees
参考来源
- 位置:《Designing Distributed Systems, 2nd Edition》第02章《Chapter 2. Important Distributed System Concepts》(来源项目 book-sources;源文件:extracted/Designing Distributed Systems, 2nd Edition/_epub-src/OEBPS/ch02.html)
- 结论依据:原文分别定义at least/at most并指出exactly once困难;保留其范围限制而不将扣款例子写成可直接实施协议。
- 原始内容:The first is “at least once” delivery. As its name suggests, at least once ensures that a message or a request will be delivered at least once to the recipient. The “at least” part is the important part, because with at least once delivery there are no guarantees