知识卡片
远程延迟会在调用链累积
远程调用比本地函数调用多网络往返;串行服务链会把各跳耗时叠加。原书假设每跳平均100毫秒,十跳便增加约1秒,这是教学估算,不是本仓库实测。选分布式粒度时还要看第95至99百分位等尾部延迟;可对照[[平均响应时间会掩盖尾部]],不能只凭平均值或“网络很快”下结论。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Foundations · 查看原书依据
Chaining service calls together to perform a particular business function adds 1,000 ms to the request!
参考来源
- 位置:《Fundamentals of Software Architecture》第12章《Foundations》(源文件:`OEBPS/ch09.html`)
- 结论依据:原文比较本地与远程调用,并用100毫秒假设和长尾分位说明影响。
- 原始内容:Chaining service calls together to perform a particular business function adds 1,000 ms to the request!