简体   繁体   中英

Can flask rest api application can run on gunicorn alone?

I'm currently developing HTTP Rest API server using Flask. I don't have any static media, and all url are being served by @app.route pattern in Flask Framework. Can Flask run on Gunicorn alone with out webserver?

  1. Flask - logic to respond to HTTP request
  2. gunicorn - Helps manage concurrency for these HTTP requests, logging, worker timeouts
  3. nginx - scalability and protection. If the load for your application is higher, Nginx would help for load balancing without crashing your Application Server, helps to serve static content if any

So if load for your application is less and no static content to serve, in my opinion, flask + gunicorn should be OK.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM