DEV Community

Cover image for A Comprehensive Overview of Backend Servers for Django Applications

A Comprehensive Overview of Backend Servers for Django Applications

Pragati Verma on April 10, 2023

Django is a popular web framework that is widely used by developers to build powerful and scalable web applications. One of the key components of a...
Collapse
 
anubhavitis profile image
Anubhav Singhal •

This article justifies it's title. Very comprehensive.

Collapse
 
corentinbettiol profile image
Corentin Bettiol •

Nice article! I personally use Apache + Gunicorn, it works well too.

Collapse
 
pragativerma18 profile image
Pragati Verma •

Thanks for reading, I have primarily used Ngnix + Gunicorn, that's why I have focused a lot there.

Collapse
 
alkadohs profile image
Alkado heneliko •

Please Pragati, can you write another article showing how to configure Ngnix + Gunicorn.
I will be thankful of that!
Overall thank you for this helpful article

Thread Thread
 
pragativerma18 profile image
Pragati Verma •

Sure, that makes a good topic. Will try to work on it in the next few weeks. Thanks for reading.😁

Collapse
 
mezieb profile image
Okoro chimezie bright •

Well done 👍👍👍and thanks for sharing

Collapse
 
pragativerma18 profile image
Pragati Verma •

Thank you, I am glad that you liked it 😁

Collapse
 
mezieb profile image
Okoro chimezie bright •

you are welcome

Collapse
 
alec profile image
Alexey Poimtsev •

There are another one interesting web server - traefik.io

Collapse
 
priyansh2 profile image
Priyansh Agrawal • • Edited

If I'm behind a proxy such as Nginx I don't need to set up the load balancing algorithm for different workers of Gunicorn ? For instance, consider below configuration using least connection algorithm :
upstream gunicorn {
least_conn;
server localhost:8000;
server localhost:8001;
server localhost:8002;
server localhost:8003;
}

server {
listen 80;
server_name your_domain.com;

location / {
    proxy_pass http://gunicorn;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
Enter fullscreen mode Exit fullscreen mode

}

Collapse
 
augusta_kozey_a9a4c43d080 profile image
Augusta Kozey •

hi what is the best choise for a estate website which addresses large amount of high-resolution images.