知识卡片
扣款超时结果不明
信用卡扣款REST请求报网络异常,不能判断故障发生在请求送达前还是扣款成功后的回包途中,甚至可能远端处理时崩溃。因此客户端无法仅凭异常断言未扣款;无条件重试有重复扣款风险,放弃处理又可能留下未知资金状态。参见[[查询或撤销未知扣款]]。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 工作流引擎与集成挑战 · 查看原书依据
Now assume that this REST call yields a network exception. There is no way to know if the network problem occurred when sending the request to the credit card service or when getting the response back. It is even possible that the credit card service crashed while processing the request. In other words: you have no idea if a credit card was just charged or not.
参考来源
- 位置:《Practical Process Automation》第9章《工作流引擎与集成挑战》(来源项目:book-sources;源文件:extracted/Practical Process Automation (Bernd Ruecker)/_epub-src/OEBPS/ch09.xhtml)
- 结论依据:原文完整描述请求途中、回包途中及远端处理时故障三种可能,结论是网络异常后无法判定信用卡是否已经扣款;这直接支撑资金结果不明的根因。
- 原始内容:Now assume that this REST call yields a network exception. There is no way to know if the network problem occurred when sending the request to the credit card service or when getting the response back. It is even possible that the credit card service crashed while processing the request. In other words: you have no idea if a credit card was just charged or not.