
- #Getting throttled meaning how to#
- #Getting throttled meaning update#
- #Getting throttled meaning code#
The CSOM/REST script is updating a large number of files at a high frequency, which triggers throttling.
#Getting throttled meaning update#
These apps include sync engines, backup providers, search indexers, classification engines, data loss prevention tools, and any other tool, which attempts to reason over the entirety of data and apply changes to it.įor example, after migrating files to SharePoint Online, you run a custom CSOM or REST script to update metadata on the files. Failing to follow best practices for scanning applications that process files in bulk will likely result in throttling.
#Getting throttled meaning code#
The most common causes of per-user throttling in SharePoint Online are client-side object model (CSOM) or Representational State Transfer (REST) code that performs too many actions too frequently.Ĭonstant load or repetitive complex queries against SharePoint Online must be optimized for low impact. Common throttling scenarios in SharePoint Online In these cases, SharePoint Online will attempt to prioritize interactive user requests over background activities. Every application in SharePoint Online has its own available resources per tenant, but multiple applications running against the same tenant ultimately share from the same resource bucket and in rare occurrences can cause rate limiting. In addition to throttling by user account, limits are also applied to each application in a tenant. If the offending process continues to exceed usage limits, SharePoint Online might completely block the process in this case, you won't see any successful requests and Microsoft will notify you of the block in the Office 365 Message Center.
For all other requests, including CSOM or REST calls, SharePoint Online returns HTTP status code 429 ("Too many requests") or 503 ("Server Too Busy") and the requests will fail. For requests that a user performs directly in the browser, SharePoint Online redirects you to the throttling information page, and the requests fail. All user actions are throttled while the throttle is in effect. When a user exceeds usage limits, SharePoint Online throttles any further requests from that user account for a short period. What happens when you get throttled in SharePoint Online? For example, you spin up 10 machines and have a sync client going on all 10. That doesn't mean that there aren't other ways to get throttled, just that they're less common. If you do get throttled, 99% of the time it is because of custom code. The service is robust, and it is designed to handle high volume. That said, it is rare for a user to get throttled in SharePoint Online. Throttling limits the number of user actions or concurrent calls (by script or code) to prevent overuse of resources. SharePoint Online uses throttling to maintain optimal performance and reliability of the SharePoint Online service. What's going on and what can you do to make it stop? What is throttling? What should you do if you get blocked in SharePoint Online?ĭoes this sound familiar? You're running a CSOM process - for example, to migrate files in SharePoint Online - but you keep getting throttled. GitHub CSOM code samples: SharePoint Online Throttling.
#Getting throttled meaning how to#
How to decorate your traffic to avoid getting throttled?. Common throttling scenarios in SharePoint Online. Includes sample client-side object model (CSOM) and REST code you can use to make your task easier. Find out about throttling in SharePoint Online, and learn how to avoid being throttled or blocked.