I use tornado in my project with high-concurrency,Can I use gunicorn replace tornado httpserver and whether if it work more effective?
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.