As the exact code implementation was not mentioned. I'd first like to mention to be sure to use multiple requests in one HTTP call using JSON batching. This will greatly mitigate potential throttling issue from occurring. As Each individual request can be tested with try...retry to avoid processing delays.
Please Note some limitations in JSON batch processing.
- How do I identify what limit I have reached?
- We currently have a new preview product Microsoft Graph Developer Proxy v0.7 which allows you to simulate behaviors on any API. using a list of API URLs to simulate errors (including throttling & server issues).
- When I hit 80% quota, I see the response headers show that RateLimit-Limit is 1250 - Why is this lower than the expected 3600 Resource Units?
- Note that *RateLimit *headers are currently in beta and subject to change so it may not always be accurate.
- RateLimit headers - preview (It's from SPO however it's the same source to calculate the rate)
The
RateLimit
headers are returned on a best-efforts basis, so applications may not receive the headers under all conditions. Additionally, there are other limits that aren't presented in theRateLimit
headers, so applications can get throttled even before reaching the limit described in theRateLimit
headers. Below is the list of limits that we support theRateLimit
headers for. The policies and values are subject to change:
- Are there any other limits aside from the 2000 requests per second per app across tenants and the graph API limits that I am missing?
- Please note that rate specific limits can be reference here.
You can further review the Application Throttling documentation and any feedback or updates for that page can be submitted via feedback.
One last item for consideration solutions that need to extract a large volume of data from Microsoft Graph should use Microsoft Graph Data Connect instead of the Microsoft Graph REST APIs. Microsoft Graph Data Connect allows organizations to extract Microsoft 365 data in bulk without being subject to throttling limits.
--please don't forget to upvote
and Accept as answer
if the reply is helpful--