How urlfetch quotas work?

2019-09-15 11:29发布

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条回答
男人必须洒脱
2楼-- · 2019-09-15 11:41

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.

查看更多
登录 后发表回答