Forum Discussion
When does we get 429 rate limits in sharepoint online
We are working on sharepoint and we are making various api calls for online version. We have gone through the documentations, and we come to know that sharepoint throws a rate limiting 429 status code if we cross 1200 api calls per minute. Now we are working on multithreads, but we have made sure that we are not crossing this limit by giving enough amount of sleep. We have cross verified the number of api calls when we get 429 codes. That comes out to be 600 to 700. Now we are not sure why we are getting this. Does it have some rate limiting at a smaller scale like n calls per second or something other rate limit. We have tried running in single threaded environment and we do not get any 429 statuses. So I am pretty sure we are missing some limiting but don't know what
- Rate-limit should is dynamic and an application can only use 80% of resources, any more and sharepoint will send RateLimit headers, you need to work with this and throttle your application abit when there's only 10% resources left to avoid being throttled by SharePoint.
TIP: Don't create multiple application to get around this, You will end up being blocked :Smile:
Bert Jansen has an fantastic presentation that he went through on ESPC 2022, this should cover it you question on throttle limit and anything regarding this!
https://www.youtube.com/watch?v=vnBW66ncs80
https://github.com/OneDrive/samples/blob/master/scenarios/throttling-ratelimit-handling/readme.md