Is it feasible to use gunicorn in replace of tornado httpserver?

525 views Asked by At

I use tornado in my project with high-concurrency,Can I use gunicorn replace tornado httpserver and whether if it work more effective?

1

There are 1 answers

1
Ben Darnell On BEST ANSWER

If your application is WSGI-based, then gunicorn is much better than Tornado's HTTPServer. Tornado does not support concurrency for WSGI applications

If your application is a native Tornado application, then you can use gunicorn with the --worker-class=tornado option to serve your application. The concurrency and performance of this configuration will be the same as using Tornado alone (it is a wrapper around Tornado's HTTPServer). The advantage of using gunicorn in this case is that you would be able to monitor, configure, and manage your server using gunicorn's interfaces and tools.