Channels and web concurrency #1822
Unanswered
dan-developer
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Yes… Under Django 3.x, requests to Django views are essentially single-threaded, due to the thread sensitive nature of ORM calls wrapped in You can try Django 4.0, which introduces a per-request async context. It would be interesting to see how that compares for you. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Good Morning.
I'm doing the following calculations in a view to use multiple processors:
But there is a problem when I activate the "channels" app, which is: while there is a calculation running, new connections (another browser and ips (another clients)) are not accepted http processing (request -> processing -> response). It is waiting, while it does not finish the calculation, it does not respond to more connections. I had to return to the WSGI application which the problem does not occur.
Beta Was this translation helpful? Give feedback.
All reactions