扩展时可以使用Polly Rate限制
我们有一项服务,可以与我们的各个合作伙伴进行集成。集成可能涉及调用API。这样的API可能具有速率限制,即60秒内不超过10个请求。据我所读到的波莉可以通过利率限制策略来处理这一点。
在您有多个服务运行的情况下,这种工作会起作用吗?
We have a service that handles integrations with our various partners. An integration may involve calling an api. One such api could have a rate limit ie no more than 10 requests in 60 seconds. From what I have read Polly can handle this with the Rate Limit policy.
Would this work in a scenario where you have multiple instances of the service running?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 ocelot 实现速率限制。您需要一个实例,您的所有服务实例都将调用。
You can use Ocelot to implement rate limiting. You'll need a single instance that all your service instances will call into.