5

我注意到在 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 的上限并且只是没有记录(或在其他地方记录)?还是限制是其他东西(或不存在)?

4

2 回答 2

5

Python 的限制只是没有记录在该页面中,而是在另一个页面中,其中说(在本节最后一段的中间):

该应用程序最多可以同时进行 10 个异步 URL Fetch 调用。

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

于 2010-06-30T04:41:16.313 回答
1

嗯 - 对于不可计费的应用程序可能是这样,但在计费应用程序中试试这个:

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))

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

于 2010-09-05T21:36:01.083 回答