使用 Azure AD Graph 的调用请求限制 API

Limit of call requests using Azure AD Graph API

我目前正在使用 Azure AD B2C 身份验证,我需要使用 Azure AD Graph API(不是 MS Graph,如此处所述:official doc)对用户完成一些任务。 我知道使用 Azure AD Graph API 可能会出现一些限制策略,但我没有找到我必须遵守的真实速率限制以避免这种副作用。

您知道我可以向端点发出的平均请求数以避免此错误吗?评估的限制是按注册应用程序(Azure 注册应用程序)还是按租户评估的?

您知道在应用限制策略后重试之前我必须参加的典型秒数是多少吗?

我认为 Azure Graph API 的限制在任何地方都没有记录。

但是你可以从这个link

检查和处理节流的可能性

有关 Azure AD Graph API 的限制指南,请参阅:

  1. Throttling guidance | Graph API concepts
  2. Azure AD Graph API Throttling Guidance

有关单个应用程序 and/or 从单个 IP 地址读取限制的信息,请参阅第二篇文章:

"There is an entry point that controls traffic into the Graph API service. From working with the product support there is a limit of 1000 requests per second to this entry point from a single source IP. Secondly, there is also a separate ApplicationID+TenantID limit in place and this is 120 requests per second. If you require more than this, then you should look to spread the requests across multiple source IPs and applications."