0

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)?

davidism
  • 121,510
  • 29
  • 395
  • 339
CTH
  • 75
  • 4
  • 1
    It 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

0 Answers0