如何增加Google Sheets v4 API的配额限制 [英] How to increase Google Sheets v4 API quota limitations

查看:76
本文介绍了如何增加Google Sheets v4 API的配额限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

新版Google Sheets API v4当前每天有无限的读/写配额(这太好了),但每100秒限制每个帐户500个读/写,每100秒每个键100个读/写(或,我发现,多个密钥来自同一IP).对于大多数用例来说,这可能足够了,但我有一个极端的情况,那就是将经常更新的带有70个标签的Google表格放到node.js服务器上,该服务器每隔30-60秒左右(用户)将这些标签分发给用户的客户端是学生研究助理的数据注释者).当项目只有20-30个标签时,这在项目初期并不算是很糟糕,但是由于数据量很大,服务器消耗了100个配额并每10-15分钟返回一次错误.

The new Google Sheets API v4 currently has an unlimited read/write quota per day (which is fantastic), but restricted to 500 reads/writes per account per 100 seconds, and 100 read/writes per key per 100 seconds (or, I have found, multiple keys coming from the same IP). This is probably plenty for most use cases, but I have an edge case that requires bringing a frequently-updated Google Sheet with 70 tabs down to a node.js server that distributes these to user's clients every ~30-60 seconds or so (users are data annotators who are student research assistants). This wasn't so bad early in the project when there were only 20-30 tabs, but now that the data is large the server is blowing through the 100 quota and returning errors every 10-15 minutes.

问题是这样的:

  1. 频繁的数据更新:在任何给定的分钟内,仅可能更新70个标签中的1-5个数据,但是哪个标签具有新数据是随机的(因此我要抽取整整70页= 70个读数)
  2. 更新间隔:大约30秒到5分钟的间隔随机进行更新(因此,在配额内,有的是配额的3-5倍).
  3. 限制:我已尝试将更新限制在100个呼叫/100秒以内(我以前的解决方案),但这会带来大量的可用性问题,从而大大降低了可用性/生产率/工作质量.
  4. 配额增加:sheets API当前似乎没有包括增加配额的付款方式.它确实允许填写表格以请求增加配额,但是我不确定对此的平均响应时间是多少(我的请求只有几天的时间).
  5. 多个服务帐户:我尝试使用多个服务帐户来获取完整的500个请求/100秒配额(而不是每个用户的配额),因为这是一台服务器,但是Google表格的速率限制为100从给定IP请求100秒
  6. 替代方法:我认为该项目可能已经超出了Sheets易于处理的规模,但是似乎没有任何易于使用的,良好的,可自我托管的,协作式电子表格,并且界面易于使用-到那里的API.

是否建议设置/方法来实现一台服务器完整的500次呼叫/100秒?

Are there settings/methods suggested to achieve the full 500 calls/100 seconds for a server?

推荐答案

您可以在Google Cloud Platform中请求配额更新,配额更新将增加到每个帐户2500个(每个用户500个). (关于您的#4)

You can request quota update in Google Cloud Platform and it will be increased to 2500 per account an 500 per user. (about your #4)

这篇关于如何增加Google Sheets v4 API的配额限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆