1 year ago

#368955

test-img

Milan Kocic

why increasing worker numbers increase request time in gunicorn, wsgi, django

I am using gunicorn with wsgi and django for my rest beckend app. When I used gunicorn with one sync worker and send 20 same parallel requests, request execution time is about 100ms. When I increased number of workers to 4 and do the same thing execution time of request is four time bigger. I am using AWS and my app is in docker. How this could be possible? Should times be the same in both cases?

django

amazon-web-services

django-rest-framework

gunicorn

wsgi

0 Answers

Your Answer

Accepted video resources