So if I had a single django application running that has API routes running on an EC2 instance, and 300+ requests were made from other machines, how do these frameworks handle this? Is it all async or multithreaded? Or synchronous? Or handled by the webserver (NGINX, gunicorn, etc)?
Asked
Active
Viewed 87 times
0
-
1It can be async, but asyinc is fairly new to python and not commonly used for django. Gunicorn / uwsgi do multiprocessing - running several python applications. Flask and django are not inherently multithreaded. You can use something like nginx to queue requests as long as the volume spikes are not constant. – erik258 Oct 03 '22 at 23:06