我可以同时运行的异步 urlfetch 调用数量是否有限制?

发布于 2024-09-07 23:26:47 字数 541 浏览 1 评论 0原文

我注意到 Java 实现中 urlfetch 的同时异步调用似乎存在限制(如下所述:http://code.google.com/appengine/docs/java/urlfetch/overview.html

,但不在 Python 文档中:

http://code.google.com/appengine/docs/python/urlfetch/asynchronousrequests.html

所以python 版本的 async urlfetch 是否也有 10 的上限,只是没有记录(或在其他地方记录)?或者限制是其他的东西(或者不存在)?

I noticed what appears to be a limit on simultaneous asynchronous calls of urlfetch in the Java implementation (as noted here: http://code.google.com/appengine/docs/java/urlfetch/overview.html)

but not in the python documentation:

http://code.google.com/appengine/docs/python/urlfetch/asynchronousrequests.html

So is it the case that the python version of async urlfetch also has an upper limit of 10 and it's just not documented (or documented elsewhere)? Or is the limit something else (or non-existant)?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

め七分饶幸 2024-09-14 23:26:47

Python 的限制并未记录在该页面中,而是记录在另一个页面< /a>,其中显示(在 本节):

该应用程序最多可以同时运行 10 个
异步 URL 获取调用。

如您所见,这与 Java 的限制相同。

The limit for Python is just not documented in that page but in another one, which says (in the middle of the last paragraph of this section):

The app can have up to 10 simultaneous
asynchronous URL Fetch calls.

As you see, that's the same limit as for Java.

老街孤人 2024-09-14 23:26:47

嗯 - 对于非计费应用程序来说可能是这样,但在计费应用程序中尝试一下:

from google.appengine.api import urlfetch
rpc = []
for x in range(1,30):
   rpc.append(urlfetch.create_rpc())
   urlfetch.make_fetch_call(rpc[-1],"http://stackoverflow.com/questions/3639855/what-happens-if-i-call-more-than-10-asynchronous-url-fetch")

for r in rpc:
   response = r.get_result()
   logging.info("Response: %s", str(response.status_code))

它只是有效......所以计费应用程序的限制实际上更高(但没有记录!)

umm - that may be true for non-billable apps, but try this in a billable app:

from google.appengine.api import urlfetch
rpc = []
for x in range(1,30):
   rpc.append(urlfetch.create_rpc())
   urlfetch.make_fetch_call(rpc[-1],"http://stackoverflow.com/questions/3639855/what-happens-if-i-call-more-than-10-asynchronous-url-fetch")

for r in rpc:
   response = r.get_result()
   logging.info("Response: %s", str(response.status_code))

It just works... So the limit for billable apps is in fact higher (but isn't documented!)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文