[BangPypers] Asynchronous method calls in python

Anand Chitipothu anandology at gmail.com
Fri Oct 10 10:50:00 CEST 2014


On Fri, Oct 10, 2014 at 2:06 PM, Okan bhan <rajalokan at gmail.com> wrote:

> Hi,
>
> I'm working on an appengine + flask application which makes multiple
> requests to third party APIs as part of one request. All of these are
> independent.
>
> So I was hoping what should be the best way to make these method calls
> asynchronously. Whatever I know:
>
> * *Using multi-threading in python*: I've heard not to try multithreaded in
> your application itself it you are not sure. Rather rely on application
> server.
> * *Using something like Twisted*: Not an options as my stack doesn't allow
> it.
>
> Please suggest me what should be the best solution here?
>

Have you looked at app engine API for making async fetch requests?

https://cloud.google.com/appengine/docs/python/urlfetch/asynchronousrequests

Anand


More information about the BangPypers mailing list