<?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 Re: Upload/Download files via API using AWS Lambda - Rate Limiting in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-Download-files-via-API-using-AWS-Lambda-Rate-Limiting/m-p/234589#M12819</link>
    <description>&lt;P&gt;Thanks. It sounds like I need to do some trial-and-error. Marking this solved - but I may be back &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 29 Jul 2017 12:52:13 GMT</pubDate>
    <dc:creator>Andrew N.8</dc:creator>
    <dc:date>2017-07-29T12:52:13Z</dc:date>
    <item>
      <title>Upload/Download files via API using AWS Lambda - Rate Limiting</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-Download-files-via-API-using-AWS-Lambda-Rate-Limiting/m-p/234457#M12801</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am designing a system to copy files to/from Dropbox via the HTTP API using AWS Lambda functions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We may be copying large quantities of files (up to 10,000 in a batch) using a single API key. As you may know, AWS Lambda can fire thousands of Lambda functions simultaneously. This could mean that the API gets hit with thousands of requests in a very short period of time (a window of a few seconds) I think I will probably start running into 429 responses (rate limiting) if we send this volume of requests to in such a&amp;nbsp;short window.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know what the best practice would be for this use case? Is there a maximum number of simultaneous connections allowed by the Dropbox API?&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:20:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-Download-files-via-API-using-AWS-Lambda-Rate-Limiting/m-p/234457#M12801</guid>
      <dc:creator>Andrew N.8</dc:creator>
      <dc:date>2019-05-29T09:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Upload/Download files via API using AWS Lambda - Rate Limiting</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-Download-files-via-API-using-AWS-Lambda-Rate-Limiting/m-p/234524#M12810</link>
      <description>The Dropbox API does have a rate limiting system, but we don't have any specific numbers documented. &lt;BR /&gt;&lt;BR /&gt;Also note that not all 429s and 503s indicate rate limiting, but in any case that you get a 429 or 503 the best practice is to retry the request, respecting the Retry-After header if given in the response, or using an exponential back-off, if not.&lt;BR /&gt;&lt;BR /&gt;There's also a guide here that may be helpful:&lt;BR /&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;</description>
      <pubDate>Fri, 28 Jul 2017 18:45:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-Download-files-via-API-using-AWS-Lambda-Rate-Limiting/m-p/234524#M12810</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-07-28T18:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Upload/Download files via API using AWS Lambda - Rate Limiting</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-Download-files-via-API-using-AWS-Lambda-Rate-Limiting/m-p/234556#M12816</link>
      <description>&lt;P&gt;Hey Greg,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for this info.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I understand the exponential backoff&amp;nbsp;and&lt;SPAN&gt;&amp;nbsp;the Retry-After header, no problem. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I'm trying to understand what happens in a hypothetical situation in which a lot of Lambda functions fire in parallel. Let's say we have 200 functions all making API calls within a few seconds, and (hypothetically) the 143rd&amp;nbsp;Lambda triggers rate limiting. The 144th through 200th functions will be already attempting to make API calls before the 143rd function could circulate a message that the other Lambda functions that they should not attempt API calls until after the time specified in the Retry-After header.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Will we be penalized in any way for the remaining functions (144-200) attempting to call Dropbox endpoints before the time&amp;nbsp;specified in the Retry-After header in the response to 143?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 23:30:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-Download-files-via-API-using-AWS-Lambda-Rate-Limiting/m-p/234556#M12816</guid>
      <dc:creator>Andrew N.8</dc:creator>
      <dc:date>2017-07-28T23:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: Upload/Download files via API using AWS Lambda - Rate Limiting</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-Download-files-via-API-using-AWS-Lambda-Rate-Limiting/m-p/234578#M12818</link>
      <description>There's no accumulating penalty. The additional calls will just receive the 429 response with the Retry-After value. The Retry-After value is generally not more than a few minutes. (I believe the Retry-After value may effectively get reset with each rate limited call within the rate limiting window, but if they're all getting sent at the same time anyway like you describe, this shouldn't make any meaningful difference.)&lt;BR /&gt;&lt;BR /&gt;By the way, for the upload case, make sure you read about "lock contention" in the data ingress guide I linked earlier. That has important information about a 429 error you can hit in that case, which isn't explicit rate limiting, and offers a solution.</description>
      <pubDate>Sat, 29 Jul 2017 03:16:36 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-Download-files-via-API-using-AWS-Lambda-Rate-Limiting/m-p/234578#M12818</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-07-29T03:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Upload/Download files via API using AWS Lambda - Rate Limiting</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-Download-files-via-API-using-AWS-Lambda-Rate-Limiting/m-p/234589#M12819</link>
      <description>&lt;P&gt;Thanks. It sounds like I need to do some trial-and-error. Marking this solved - but I may be back &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jul 2017 12:52:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-Download-files-via-API-using-AWS-Lambda-Rate-Limiting/m-p/234589#M12819</guid>
      <dc:creator>Andrew N.8</dc:creator>
      <dc:date>2017-07-29T12:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Upload/Download files via API using AWS Lambda - Rate Limiting</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-Download-files-via-API-using-AWS-Lambda-Rate-Limiting/m-p/235196#M12900</link>
      <description>Do you have a source to your system design that you would like to share?</description>
      <pubDate>Wed, 02 Aug 2017 21:48:17 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-Download-files-via-API-using-AWS-Lambda-Rate-Limiting/m-p/235196#M12900</guid>
      <dc:creator>McLickin</dc:creator>
      <dc:date>2017-08-02T21:48:17Z</dc:date>
    </item>
  </channel>
</rss>

