Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.8k views
in Technique[技术] by (71.8m points)

web applications - How do Google Apps Script quotas work for doGet and doPost functions in web apps?

I've read https://developers.google.com/apps-script/guides/services/quotas and understand what the quotas are and how they work.

What I can't figure out is how the quotas apply to web apps, specifically with the doGet and doPost functions?

For example:

  • Say a web app serves static HTML content via doGet -- is Script 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?

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

The following quotas(consumer edition) apply:

  • Script runtime 6min/execution
  • Trigger total runtime: 90min/day These seem to be excluded here
  • Simultaneous execution: 30

UrlFetch quotas (like 50MB/Post size) may also apply to doPost().

Note however that these quotas typically don't apply to you, but to the user, if script is set to execute as "User accessing the webapp". Therefore, a single user can't simultaneously execute script 30 times in a short time(if published to execute as "User accessing the web-app")


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...