minor clarification on rate limiting

This commit is contained in:
Justin Cooper 2021-03-08 15:26:01 -06:00
parent 9510ac85ef
commit 6d8d5a6fec

View file

@ -10,6 +10,6 @@ If you have [upgraded to an Adafruit IO Plus account](https://io.adafruit.com/pl
**One data record modification** is any action that creates, updates, or deletes a single Data record.
**A best practice is to only save or modify data within the hot part of your code loop.** You want to handle authentication and any other API requests before you start your main code loop where you save data.
**A best practice is to only save or modify data within the hot part of your code loop.** You want to handle authentication and any other API requests (creating/getting feeds, etc) before you start your main code loop where you save data.
We have general API throttles to ensure the API isn't being improperly used either by accident or for nefarious purposes. This throttle level is higher than any data rate limit throttles, but you may run into it if your code isn't optimized. One example would be if in the main loop of your code you are not only sending data, but also authenticating, retrieving all feeds, or anything else that doesn't involve saving or modifying data to a feed. In that scenario, you would be hitting the API 3x more times than necessary, and could get throttled, even if you're saving data within your allotted rate limit.