1

A recent flask application I wrote needed to be on an apache2 server. I successfully completed connecting apache and flask but I still wonder why using apache and wsgi is better than just saying "python main.py" and just running the server on port 8080 with port 80 forwarding to 8080?

josneville
  • 449
  • 2
  • 5
  • 15

1 Answers1

2

If you run your sever directly with python on a port, using Flask, then the server will be single threaded with your requests. Your performance will suffer.

How many concurrent requests does a single Flask process receive?

Community
  • 1
  • 1
jmq
  • 10,110
  • 16
  • 58
  • 71