The Google Calendar API has changed how we manage API usage

Posted by Charles Maxson, Developer Advocate The Google Calendar API has changed how it manages API usage. Previously, queries were monitored and limited on a daily basis. As of May 2021, queries started to be monitored and limited on a per-minute ba…


This content originally appeared on Google Developers Blog and was authored by Google Developers

Posted by Charles Maxson, Developer Advocate

The Google Calendar API has changed how it manages API usage. Previously, queries were monitored and limited on a daily basis. As of May 2021, queries started to be monitored and limited on a per-minute basis. This introduces better behavior when your quota is exceeded, as requests are rate-limited until quota is available rather than failing all requests for the rest of the day. This also helps developers recognize issues around quota enforcements faster and shouldn't affect the performance of existing projects.

To view your usage and quota limits, have a look in the Google API console.

Image of Calendar API

To help you manage your quotas, we’ve put together a few helpful tips:

  • Use push notifications instead of polling.
  • If you cannot avoid polling, make sure you only poll when necessary (for example poll very seldomly at night).
  • Make sure to use randomized timing so that requests from your users spread out evenly instead of creating bursts.
  • Use incremental synchronization with sync tokens for all collections instead of repeatedly retrieving all the entries.
  • Increase page size to retrieve more data at once by using the maxResults parameter.
  • Update events when they change, avoid recreating all the events on every sync.
  • Use exponential backoff for error retries to make rate-limiting work properly.

For further details into managing quotas please review the manage quotas documentation. You can also find more details on error handling on the resolve errors documentation.

To stay on top of news and updates around Google Workspace APIs and developer platform please sign up to our developer newsletter.


This content originally appeared on Google Developers Blog and was authored by Google Developers


Print Share Comment Cite Upload Translate Updates
APA

Google Developers | Sciencx (2021-07-09T17:01:00+00:00) The Google Calendar API has changed how we manage API usage. Retrieved from https://www.scien.cx/2021/07/09/the-google-calendar-api-has-changed-how-we-manage-api-usage/

MLA
" » The Google Calendar API has changed how we manage API usage." Google Developers | Sciencx - Friday July 9, 2021, https://www.scien.cx/2021/07/09/the-google-calendar-api-has-changed-how-we-manage-api-usage/
HARVARD
Google Developers | Sciencx Friday July 9, 2021 » The Google Calendar API has changed how we manage API usage., viewed ,<https://www.scien.cx/2021/07/09/the-google-calendar-api-has-changed-how-we-manage-api-usage/>
VANCOUVER
Google Developers | Sciencx - » The Google Calendar API has changed how we manage API usage. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/07/09/the-google-calendar-api-has-changed-how-we-manage-api-usage/
CHICAGO
" » The Google Calendar API has changed how we manage API usage." Google Developers | Sciencx - Accessed . https://www.scien.cx/2021/07/09/the-google-calendar-api-has-changed-how-we-manage-api-usage/
IEEE
" » The Google Calendar API has changed how we manage API usage." Google Developers | Sciencx [Online]. Available: https://www.scien.cx/2021/07/09/the-google-calendar-api-has-changed-how-we-manage-api-usage/. [Accessed: ]
rf:citation
» The Google Calendar API has changed how we manage API usage | Google Developers | Sciencx | https://www.scien.cx/2021/07/09/the-google-calendar-api-has-changed-how-we-manage-api-usage/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.