I am creating a django webserver that allows the user to run some "executables" on a local machine and to analyse their output through a webpage.
I have previously used a Celery tasks queue in order to run "executables" in similar situations. However, after reading up on Python concurrent.futures, I am beginning to wonder if I should use ThreadPoolExecutor
, or ProcessPoolExecutor
(or ThreadPoolExecutor
inside a ProcessPoolExecutor
:D) instead?
Googling I could only find one relevant question comparing Celery to Tornado, and it steered to using Tornado alone.
So should I use Celery or a PoolExecutor
for my simple webserver, and why?