How urlfetch quotas work?

时光怂恿深爱的人放手 提交于 2019-12-13 03:08:10

问题


The following quotas are given at GAE docs:

  • request size: 1 megabyte
  • response size: 32 megabytes

If my GAE app receives upload file, 1 megabyte quota is applied? If my GAE app sends (POST) the file to another server with urlfetch, still 1 megabyte is the the limit?


回答1:


Imcoming bandwidth quota: Each incoming HTTP request can be no larger than 32MB.

So an HTTP request from a browser directly to your application (suchas uploading a file) cannot exceed 32MB.

Urlfetch quota: request size 1 megabyte

So you can't POST a request larger than 1MB using urlfetch

If you need to have an outside service process large files from your app; Upload the files into the blobstore, and then post a link to the external service so that it can fetch the file. If you do not control the external service, and their api does not have a method for fetching files via URL, you might have to rethink and maybe send the file to the external service first rather that to your AE app.



来源:https://stackoverflow.com/questions/6971448/how-urlfetch-quotas-work

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!