知识卡片
区分限速和用量配额
短期限速按秒、分钟等窗口控制突发,保护服务容量,常对超过限制的请求返回 429。长期配额按天、月等窗口衡量套餐使用,可支撑计费与用量提示。图表应标明时间窗口和门槛,避免把资源过载与达到套餐额度混为一谈。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 监测 API 产品与运行表现 11.2.2 Rate limits · 查看原书依据
Based on the duration of the limit, rate limits can be classified into short-term limits and long-term API quotas. Short-term rate limits are set to protect API servers from being overloaded by traffic spikes. (Some gateways, e.g., Apigee, use the term spike arrest for this.)
参考来源
- 位置:《Automating API Delivery APIOps with OpenAPI》《第 11 章 监测 API 产品与运行表现》(11.2.2 Rate limits;来源项目 book-source,extracted/Automating API Delivery APIOps with OpenAPI/_epub-src/OEBPS/Text/chapter-11.xhtml#p180)
- 结论依据:原文明确短期限制保护过载,后文将长期配额与合同及计费相连。
- 原始内容:Based on the duration of the limit, rate limits can be classified into short-term limits and long-term API quotas. Short-term rate limits are set to protect API servers from being overloaded by traffic spikes. (Some gateways, e.g., Apigee, use the term spike arrest for this.)