Why use Tornado and Flask together?

According to this question it is because Flask is blocking and Tornado is non-blocking.

If one uses Tornado as a WSGI server and Flask for URL routing and templates (undocumented) there shouldn’t be any overhead. With this approach you aren’t using Flask’s web server, so there isn’t really an extra layer of abstraction.

However, if one is using Flask just for the templates they could use Tornado with Jinja2 which is the template engine that Flask uses.

Leave a Comment