Google Apps脚本配额如何用于Web应用程序中的doGet和doPost函数? [英] How do Google Apps Script quotas work for doGet and doPost functions in web apps?
问题描述
我已阅读 https://developers.google.com/apps -script/guides/services/quotas 并了解配额是什么以及它们如何工作.
I've read https://developers.google.com/apps-script/guides/services/quotas and understand what the quotas are and how they work.
我不知道配额是如何应用于Web应用程序的,特别是doGet
和doPost
函数?
What I can't figure out is how the quotas apply to web apps, specifically with the doGet
and doPost
functions?
例如:
- 说一个Web应用程序通过
doGet
提供静态HTML内容-Script runtime
是唯一适用的配额吗? - 说一个Web应用程序通过
doGet
为动态HTML内容提供服务,该内容可以从工作表中提取并显示数据-适用哪些配额? - 如果网络应用还接受使用
doPost
的表单提交怎么办?那么
- Say a web app serves static HTML content via
doGet
-- isScript runtime
the only quota that would apply? - Say a web app services dynamic HTML content via
doGet
that pulls and displays data from a Sheet -- which quotas apply? - What if the web app also accepts form submissions using
doPost
-- then what?
我了解将配额应用到用户如何拥有Web应用程序.我只是想不通哪些配额适用于Web内容.显然Script runtime
适用,但还有什么?
I understand the quotas are applied to the user how owns the web app. I just can't figure out which quotas apply for the web content side of things. Obviously Script runtime
applies but what else?
推荐答案
以下 quotas (消费版)适用:
- 脚本运行时6分钟/执行
- 触发总运行时间:90分钟/天
- 同时执行:30
UrlFetch
配额(如50MB/帖子大小)也可能适用于doPost()
.
UrlFetch
quotas (like 50MB/Post size) may also apply to doPost()
.
这篇关于Google Apps脚本配额如何用于Web应用程序中的doGet和doPost函数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!