Home > other >  Multithreading in Django
Multithreading in Django

Time:12-08

I'm working on a Django project, in which I will need the use of multithreading and multiprocessing concepts (Send and receive data from other servers such as PACS server/ I/O Threads... ).

The question I have is Django capable of applying multithreading /multiprocessing?

Thank you

CodePudding user response:

By far the most popular tool in the Django world for doing this is Celery Here is a good intro tutorial

There are some more lightweight packages like Dramatiq and django-db-queue, which are intended for use cases where the configuration associated with Celery could be considered overkill.

You could, of course, 'roll-your-own' with the threading module, as sketched out in this answer

  • Related