← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 2277.o.9.a

准入控制早拒绝超载请求

理解等级:高级

当扩容无法跟上时,继续接收会让队列里大部分请求一起超时。准入控制可按已等待时间、队列长度或在途请求数拒绝超额工作;早按深度拒绝比做完大量工作后超时更省资源,也可两者结合。目标是保持已接受请求的可预测服务,而非永不报错。简单规则可作基线,高级算法只有经实际对比取得足够收益才值得增加复杂度。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 构建稳定系统 · 查看原书依据

      We can implement admission control through either a request timeout or using a queue length limit. With the former method, we reject requests that have taken more than a timeout value.

    参考来源

    - 位置:《Software Architecture and Decision-Making》第12章《Building Stable Systems》(来源项目:book-sources;源文件:extracted/Software Architecture and Decision-Making Leveraging Leadership, Technology, and Product Management to Build Great Products… (Srinath Perera)/_epub-src/ch12.xhtml) - 结论依据:摘录说明当扩容无法跟上时,继续接收会让队列里大部分请求一起超时。其余条件结合本章相邻例子与取舍说明,数字示例不作当前性能承诺。 - 原始内容:We can implement admission control through either a request timeout or using a queue length limit. With the former method, we reject requests that have taken more than a timeout value.