【发布时间】:2020-04-22 01:02:49
【问题描述】:
产品:WSO2 API 管理器
版本:2.6.0.1
用例:
我们已经为我们的一些 API 定义了限制政策,这些政策目前的配置方式比我们与客户商定的方式更为宽松。
主要原因是我们仍在学习使用该工具,虽然配置看起来没问题,但我们不确定在出现问题时停止限制对给定订阅的请求的“正确”方法。
For example:
a client calls one of our APIs with 2000 calls/min due to a bug on their side,
while we have configured the throttling policy to 10000 calls/24hours.
in such a case, their requests will be throttled after 5 minutes, but even if they were to fix their
bug in the next hour, no new call would be pass through for the next 24 hours.
如果发生这种情况,我们目前看到两种选择:
- 修改 API 配置,并增加高级限制策略以容纳更多调用,但这意味着向所有客户端提供这种增加,并且必须在计算中吸收原来的多余部分
- 为客户端创建一个新应用程序,并让它订阅 api
这两个选项似乎都不适合满足用例,因此我们一直在寻找另一种方法,在给定订阅的 api 调用计数的“重置”行中。
任何指向描述如何实现这一点(或为什么不应该实现这一点)的文档的指针将不胜感激。
【问题讨论】:
标签: wso2 wso2-am throttling