Posts

Showing posts with the label google-app-engine

GAE Standard Async Fetch not working

GAE Standard Async Fetch not working I'm following the docs and yet it appears the requests are still being made synchronously. https://cloud.google.com/appengine/docs/standard/python/issue-requests Here is my code: rpcs = for url in urls: rpc = urlfetch.create_rpc() urlfetch.make_fetch_call(rpc, url) rpcs.append(rpc) result = for rpc in rpcs: result.append(rpc.get_result().content) return result I did some profiling and compared using requests.get and they both take exactly the same amount of time. requests.get The urls i'm fetching are from different sites so I'm sure that I don't have concurrent limitations on the server side. Running on GAE Standard, Python 2.7 I followed the docs myself and can confirm that the calls are made asynchronously. Why you think requests are still synchronous? I believe that you are missing the point here. Difference between async and sync is that sync request blocks the client until operation...