[Tutor] Asynchronous http requests in Python
Alan Gauld
alan.gauld at yahoo.co.uk
Thu Oct 11 13:10:21 EDT 2018
On 10/10/18 23:17, Lulu wrote:
> Hi everyone,
> I am using python 2.7 and I wanted to ask the list the best way> to issue multiple concurrent http requests from a Django application:
This may be better addressed on the Django mailing list
since Django may well have its own support for this. However
in regular Python code there are multiple options and the
best solution depends on the exact requirements on how these
are to be processed.
modules to research include threading, multiprocessing,
and asyncio.
But there are several other options besides. Which one
is "best" depends on exactly what you need to do, your
server environment, even your OS... That's why the Django
users may be a more useful resource.
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos
More information about the Tutor
mailing list