<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic REST Call Throttling/Rate Limiting in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/REST-Call-Throttling-Rate-Limiting/m-p/253300#M14619</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With APIV1 you could make a single REST call and get all of a user's shared folder data and all of the members of each of those shared folders. Now with the new and Improved APIV2 you need to make a separate REST call for every shared folder to get that shared folder's members. So if a user has 100 shared folders the overhead went from One (1) REST call to One&amp;nbsp;Hundred and&amp;nbsp;One (101) REST calls - that's right, two orders of magnitude more REST calls. That is a ridiculously large overhead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway I have put threaded the calls and that saves some time. But now I'm bumping into this little problem (I think), from the Dropbox APIV2 documentation:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/reference/data-ingress-guide" target="_blank" data-saferedirecturl="https://www.google.com/url?hl=en-GB&amp;amp;q=https://www.dropbox.com/developers/reference/data-ingress-guide&amp;amp;source=gmail&amp;amp;ust=1511022071135000&amp;amp;usg=AFQjCNEm3T486lNoyEwq-lbrdUA2nD8ERA"&gt;https://www.dropbox.com/&lt;WBR /&gt;developers/reference/data-&lt;WBR /&gt;ingress-guide&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Rate Limits&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Rate limit errors occur when your app is trying to make more requests in a specific window of time than is allowed. There are many technical and non-technical reasons why these rate limits exist but they are set high enough such that legitimate uses of the API should rarely encounter them.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dropbox does not/will not tell me when these limits kick in. My application checks shared folder membership every minute (remember it used to be 1&amp;nbsp;REST&amp;nbsp;call a minute, NOW it's&amp;nbsp;82&amp;nbsp;REST&amp;nbsp;calls a minute in this instance). So with 81 shared folders the following is consistently observed:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;79 Folders get members: between .6 and 1.2 seconds (averaging around .7 seconds)&lt;/LI&gt;
&lt;LI&gt;80th folder around 5.8 seconds&lt;/LI&gt;
&lt;LI&gt;81st folder around 122 seconds&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Clearly this is ridiculous, the throttling of the&amp;nbsp;REST response is, for one folder,&amp;nbsp; twice the interval I have available to me to get ALL folders' members' data. I am hoping there is some other reason why this is happening that I can fix, but:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone confirm that this is within the bounds of reality that Rest response throttling may be occurring in this situation?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Certainly the empirical evidence suggests so.&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:17:15 GMT</pubDate>
    <dc:creator>Kevin B.36</dc:creator>
    <dc:date>2019-05-29T09:17:15Z</dc:date>
    <item>
      <title>REST Call Throttling/Rate Limiting</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/REST-Call-Throttling-Rate-Limiting/m-p/253300#M14619</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With APIV1 you could make a single REST call and get all of a user's shared folder data and all of the members of each of those shared folders. Now with the new and Improved APIV2 you need to make a separate REST call for every shared folder to get that shared folder's members. So if a user has 100 shared folders the overhead went from One (1) REST call to One&amp;nbsp;Hundred and&amp;nbsp;One (101) REST calls - that's right, two orders of magnitude more REST calls. That is a ridiculously large overhead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway I have put threaded the calls and that saves some time. But now I'm bumping into this little problem (I think), from the Dropbox APIV2 documentation:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/reference/data-ingress-guide" target="_blank" data-saferedirecturl="https://www.google.com/url?hl=en-GB&amp;amp;q=https://www.dropbox.com/developers/reference/data-ingress-guide&amp;amp;source=gmail&amp;amp;ust=1511022071135000&amp;amp;usg=AFQjCNEm3T486lNoyEwq-lbrdUA2nD8ERA"&gt;https://www.dropbox.com/&lt;WBR /&gt;developers/reference/data-&lt;WBR /&gt;ingress-guide&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Rate Limits&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Rate limit errors occur when your app is trying to make more requests in a specific window of time than is allowed. There are many technical and non-technical reasons why these rate limits exist but they are set high enough such that legitimate uses of the API should rarely encounter them.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dropbox does not/will not tell me when these limits kick in. My application checks shared folder membership every minute (remember it used to be 1&amp;nbsp;REST&amp;nbsp;call a minute, NOW it's&amp;nbsp;82&amp;nbsp;REST&amp;nbsp;calls a minute in this instance). So with 81 shared folders the following is consistently observed:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;79 Folders get members: between .6 and 1.2 seconds (averaging around .7 seconds)&lt;/LI&gt;
&lt;LI&gt;80th folder around 5.8 seconds&lt;/LI&gt;
&lt;LI&gt;81st folder around 122 seconds&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Clearly this is ridiculous, the throttling of the&amp;nbsp;REST response is, for one folder,&amp;nbsp; twice the interval I have available to me to get ALL folders' members' data. I am hoping there is some other reason why this is happening that I can fix, but:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone confirm that this is within the bounds of reality that Rest response throttling may be occurring in this situation?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Certainly the empirical evidence suggests so.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:17:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/REST-Call-Throttling-Rate-Limiting/m-p/253300#M14619</guid>
      <dc:creator>Kevin B.36</dc:creator>
      <dc:date>2019-05-29T09:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: REST Call Throttling/Rate Limiting</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/REST-Call-Throttling-Rate-Limiting/m-p/253543#M14635</link>
      <description>Thanks for the detailed post and feedback. API v2 does separate out some things like this, where API v1 would return everything in one call. This was done partly because the API v1 calls didn't scale well, and sometimes failed when there were too many items to return in a single call. &lt;BR /&gt;&lt;BR /&gt;Also, the Dropbox API does have a rate limiting system, but it doesn't operate by slowing down the HTTPS response itself. If an API call gets rate limited, it will just return a specific error response with a 429 error code, per:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#error-handling" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#error-handling&lt;/A&gt; &lt;BR /&gt;&lt;A href="https://www.dropbox.com/developers/reference/data-ingress-guide" target="_blank"&gt;https://www.dropbox.com/developers/reference/data-ingress-guide&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;How long it actually takes to retrieve the requested information will depend on the specific shared folder and members though. In your sample, it sounds like the 80th folder, and especially the 81st folder, may have large member lists that take longer to retrieve than the others.</description>
      <pubDate>Mon, 20 Nov 2017 18:30:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/REST-Call-Throttling-Rate-Limiting/m-p/253543#M14635</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-11-20T18:30:59Z</dc:date>
    </item>
  </channel>
</rss>

