Performance: Gunicorn as WSGI server
MEDIUM IMPACT
Gunicorn affects how quickly your Django app starts handling requests and manages concurrent users, impacting server response time and throughput.
gunicorn myproject.wsgi:application --workers 3 --threads 2
gunicorn myproject.wsgi:application --workers 1 --threads 1
| Pattern | Concurrent Requests | Response Latency | CPU Utilization | Verdict |
|---|---|---|---|---|
| Single worker, single thread | 1 at a time | High under load | Low CPU usage | [X] Bad |
| Multiple workers, multiple threads | Many in parallel | Low | Efficient CPU usage | [OK] Good |