At work I'm not allowed to use perl for web services. Python is allowed however.
What I need to do is serve up the results of some very slow c++ binaries. Each exe takes up to 20 seconds to run. In perl I'd just use mojolicious's non blocking event loop ( an example.of which is given here. http://blogs.perl.org/users/joel_berger/2014/01/writing-non-blocking-applications-with-mojolicious-part-3.html )
How would one go about doing this with django and python?
socket
, which is very simple and low-level, or any of the reactor frameworks listed in the answers below (which are usually more powerful, but might be overkill, depending on what you're looking for) – Scenography$work
into letting you use the right tool for the job :-) – Honduras