Django is getting ASYNC, what about DRF ?

132 views
Skip to first unread message

Dennis

unread,
Nov 22, 2019, 8:10:19 AM11/22/19
to Django REST framework
As per Andrew Godwin presentation at DjangoCon2019 the plan is:
- 3.0 --> ASGI server, ASGIHandler
- 3.1 --> Async Views
- 3.2/4.0 --> Async ORM

What about DRF ?

Xavier Ordoquy

unread,
Nov 22, 2019, 8:12:10 AM11/22/19
to django-res...@googlegroups.com
What about it ?
I don’t think DRF we use anything that is async incompatible outside Django itself.

Regards,
Xavier O.
Linovia.

--
You received this message because you are subscribed to the Google Groups "Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-fram...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-rest-framework/774dbd4d-b368-4dd5-87b6-d660f137fa3d%40googlegroups.com.

Carl Nobile

unread,
Nov 22, 2019, 9:14:17 AM11/22/19
to django-res...@googlegroups.com
I do async all the time with DRF, sometimes I have DB connection issues, but for the most part it all works fine.




--
-------------------------------------------------------------------------------
Carl J. Nobile (Software Engineer)
carl....@gmail.com
-------------------------------------------------------------------------------

Денис Матвеев

unread,
Nov 23, 2019, 7:37:35 AM11/23/19
to django-res...@googlegroups.com
Hi, Carl !
It is very strange you use DRF inside async operations because DRF is sync and, respectively, blocks the loop.
Could you please provide some code example ?

пт, 22 нояб. 2019 г. в 16:14, Carl Nobile <carl....@gmail.com>:
You received this message because you are subscribed to a topic in the Google Groups "Django REST framework" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-rest-framework/pE_oLgnaRsE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-rest-fram...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-rest-framework/CAGQqDQ%2Bdxh5ydYsJ%3DaDBXyibkjbs251nwxJJ4-s4LYjUDoxupQ%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages