Hi,on my django project, at a point i resize an image with pilow before associating it to django field, then saving the instance.is there any benefit in making the image resize / saving on disk async ?
I heard that since django is a non async framework, there is no interest in doing so. But is there ?
To implement this sort of feature, you need to have a worker queue - Celery is the heavy duty answer for this; if you just need a cheap and cheerful answer, RQ is a fairly easy-to-use option, or you can roll-your-own in the database without too much trouble.
--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/bHtaOx9eHYg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJxq849Zua8%2BPMCRkAeT7nAXuJnshORcjnJLjv3SAgFSoJ6bxg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
To implement this sort of feature, you need to have a worker queue - Celery is the heavy duty answer for this; if you just need a cheap and cheerful answer, RQ is a fairly easy-to-use option, or you can roll-your-own in the database without too much trouble.Thank you Russel, for the informative answer. It’s all pretty clear, and it is a great news to learn that some async patch will make it into Django.Just to be perfectly clear…. you talk about celery and indeed i’ve seen some tutorials about it.But most were written before 3.5 python.Specifically for the image processing, do I need to install celery, can’t I just use async / await for this task ?