扩展时可以使用Polly Rate限制

发布于 2025-01-24 08:39:57 字数 130 浏览 2 评论 0原文

我们有一项服务,可以与我们的各个合作伙伴进行集成。集成可能涉及调用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

旧时浪漫 2025-01-31 08:39:57

您可以使用 ocelot 实现速率限制。您需要一个实例,您的所有服务实例都将调用。

You can use Ocelot to implement rate limiting. You'll need a single instance that all your service instances will call into.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文