#Deploying a django app that contains both sync and async views.

1 messages · Page 1 of 1 (latest)

tough goblet
#

Hello all I want to know how I should deploy a django app that contains both async and sync views.
One way could be using nginx + gunicorn+ uvicorn for all views and another could be using both gunicorn and uvicorn sockets and divert the requests according to their path from nginx.
What should I use? If there's another way please guide me to deploy through it.

Note that I'm not using channels here, it's pure async function with async redis.

low harness
#

The second I believe

tough goblet
# low harness The second I believe

For the second, if I'm deploying the web app, how many workers should I choose?
Like when I'm running gunicorn alone for sync I set it to 3.