知识卡片
队列缓冲削平请求峰值
队列负载平衡在高峰请求与有限后端之间加入持久缓冲,使后端按可承受速度处理。它以等待时间换稳定性,需要定义接收与完成状态、容量和失败恢复;若业务必须立即获得最终结果,则不一定适用。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Connecting the Dots · 查看原书依据
APIs and events can also be combined for application integration purposes; for example, in a situation in which APIs are flooded with too many concurrent requests. This can result in services failing because the overload prevents them from responding to requests in a timely manner. To solve this problem, you can combine APIs and events to create a queue that acts as a buffer holding
参考来源
- 位置:《Data Management at Scale》第07章《Connecting the Dots》(来源项目 a19c7933-4eda-4176-aebd-30fe7e1ad292,源文件:extracted/Data Management at Scale/_epub-src/OEBPS/ch07.html)
- 结论依据:原文对queue-based load leveling的解释、约束及上下文支持本卡;内容为中文归纳,不把架构建议当作所有组织的必然规律。
- 原始内容:APIs and events can also be combined for application integration purposes; for example, in a situation in which APIs are flooded with too many concurrent requests. This can result in services failing because the overload prevents them from responding to requests in a timely manner. To solve this problem, you can combine APIs and events to create a queue that acts as a buffer holding