知识卡片
同步调用会传递吞吐限制
原书假设拍卖服务在多场拍卖同时结束时同步请求支付服务,而后者每500毫秒只能处理一笔:上游突发量超过下游能力,就会出现请求失败。消息队列可缓冲短时突发,但若长期生产速率高于消费速率,队列仍会溢出。这里说明服务特征不匹配的容量传播,并未描述重复扣款等资金正确性根因。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- The Scope of Architectural Characteristics · 查看原书依据
if the Auction service continually sends more messages than Payment can handle, it will eventually overflow the message queue.
参考来源
- 位置:《Fundamentals of Software Architecture》第09章《The Scope of Architectural Characteristics》(源文件:`OEBPS/ch07.html`)
- 结论依据:原文给出支付服务吞吐与同步调用场景,同时说明异步队列并非无限缓冲。
- 原始内容:if the Auction service continually sends more messages than Payment can handle, it will eventually overflow the message queue.