Flask vs Tornado: What are the differences?
What is Flask? a microframework for Python based on Werkzeug, Jinja 2 and good intentions. Flask is intended for getting started very quickly and was developed with best intentions in mind.
What is Tornado? A Python web framework and asynchronous networking library, originally developed at FriendFeed. By using non-blocking network I/O, Tornado can scale to tens of thousands of open connections, making it ideal for long polling, WebSockets, and other applications that require a long-lived connection to each user.
Flask belongs to "Microframeworks (Backend)" category of the tech stack, while Tornado can be primarily classified under "Frameworks (Full Stack)".
"Lightweight" is the top reason why over 261 developers like Flask, while over 34 developers mention "Open source" as the leading cause for choosing Tornado.
Flask and Tornado are both open source tools. It seems that Flask with 44.8K GitHub stars and 12.6K forks on GitHub has more adoption than Tornado with 17.9K GitHub stars and 4.97K GitHub forks.
reddit, Lyft, and MIT are some of the popular companies that use Flask, whereas Tornado is used by Keen, Lensley, and dotCloud. Flask has a broader approval, being mentioned in 502 company stacks & 509 developers stacks; compared to Tornado, which is listed in 69 company stacks and 16 developer stacks.
What is Flask?
What is Tornado?
Want advice about which of these to choose?Ask the StackShare community!
Flask is a light, yet powerful Python web framework perfect for quickly building smaller web applications. It's a "micro-framework" that's easy to learn and simple to use, so it's perfect for those new to web development as well as those looking to rapidly develop a web application.
I use Flask for times when I need to create a REST API that interfaces with other Python code, or there is no specific reason why I'd want to use Node.JS. I prefer Flask because of its small learning curve, allowing me to get started coding as quickly as possible
SpreadServe's RealTimeWebServer is built in Tornado. Spreadsheets loaded into SpreadServeEngine instances are projected into browsers using Tornado. Server side recalcs are pushed to the browser using web sockets.
This lightweight web framework enables quick REST API development while enabling easy clustering, and the usage of multiple worker processes required to scale the REST API service to meet high volume requirements.
setup an api for a client with tornado backend. incredibly fast and lightweight. unfortunately breaks down when using third party libraries which block internally.
Service to query NOAA weather forecasts data and service to build tidal current forecast maps using AWS EC2 and Geoserver
Tornado with Async/Await coroutines provided in Python 3.5 make up for an excellent stack for a micro-service.
Flask drives our APIs, both the Website APIs and the majority of the REST Messaging APIs