0

I'm working on a flask API and found that Flask has a very limited QPS. I tried different ways to solve this, like

app.run(threaded=True)

which didn't work at all;

I also tried to use gunicorn with gevent, which works well under around 30 QPS, but not working with higher QPS.

I am trying to have an API to receive high volume web hooks and I'm not sure whether Flask can make this work or not. Any help is appreciated, thanks!

davidism
  • 121,510
  • 29
  • 395
  • 339
JoshJoshJosh
  • 897
  • 2
  • 11
  • 20
  • Thou shalt not use the built-in development server in production. Read the docs section about [deployment](https://flask.palletsprojects.com/en/1.1.x/deploying/)! – Klaus D. Mar 05 '20 at 05:51
  • Try using uwsgi and then increase the number of processes there in uwsgi config file. https://uwsgi-docs.readthedocs.io/en/latest/WSGIquickstart.html – HerculesOfHell Mar 05 '20 at 05:52

0 Answers0