Need advice about which tool to choose?Ask the StackShare community!

Falcon

86
201
+ 1
89
Tornado

445
408
+ 1
167
Add tool

Falcon vs Tornado: What are the differences?

Key Differences between Falcon and Tornado

Falcon and Tornado are both popular Python web frameworks, but they have some key differences that set them apart.

  1. Asynchronous Support: One major difference is in their approaches to handling asynchronous requests. Tornado is known for its native support for coroutines and asynchronous I/O, making it a good choice for high-performance applications that require handling a large number of concurrent connections. Falcon, on the other hand, does not provide built-in asynchronous support but can be integrated with other libraries like gevent or asyncio to achieve similar results.

  2. Size and Simplicity: Falcon aims to be lightweight and barebones, providing only the essential features needed for building REST APIs. It prioritizes simplicity and minimalism, making it a good choice for small to medium-sized projects. Tornado, on the other hand, offers a more comprehensive set of features, including a built-in templating engine, support for websockets, and a full-featured web server. This makes Tornado a better fit for larger, more complex applications with additional requirements beyond just REST APIs.

  3. Routing: Tornado and Falcon handle routing in different ways. Tornado uses regular expressions for routing, allowing for more flexibility and complex patterns. Falcon, on the other hand, uses a simpler routing system based on URI templates. This makes Falcon easier to learn and use for developers who are new to web development or prefer a more straightforward approach.

  4. Middleware Support: Both frameworks support middleware, but the way they handle it is different. Tornado uses a middleware stack that allows you to apply middleware to specific handlers or the entire application. Falcon, on the other hand, uses a more lightweight middleware system where middleware functions are called for each request and response. This gives Falcon more flexibility in terms of when and how middleware is applied.

  5. Performance: Tornado is designed to prioritize performance and scalability, making it a popular choice for high-performance web applications. Its asynchronous architecture allows it to handle a large number of concurrent connections efficiently. Falcon, on the other hand, is also performant but focuses more on simplicity and ease of use. It may be a better fit for smaller projects or situations where performance is not the primary concern.

In Summary, Falcon and Tornado differ in their approach to handling asynchronous requests, their size and simplicity, routing mechanisms, middleware support, and performance focus. Both frameworks have their strengths and are suited for different types of applications.

Manage your open source components, licenses, and vulnerabilities
Learn More
Pros of Falcon
Pros of Tornado
  • 13
    Python
  • 11
    FAST
  • 10
    Minimal
  • 8
    Open source
  • 8
    REST oriented
  • 8
    Well designed
  • 6
    Powerful
  • 6
    Really Light Weight
  • 5
    Documentation
  • 5
    Easy to develop and maintain applications
  • 3
    Easy to get started
  • 3
    Easy to deploy
  • 2
    Its simple while not limited
  • 1
    Faster
  • 0
    Kkk
  • 37
    Open source
  • 31
    So fast
  • 27
    Great for microservices architecture
  • 20
    Websockets
  • 17
    Simple
  • 14
    Asynchronous
  • 11
    Python
  • 7
    Lightweight
  • 3
    Handles well persistent connexions

Sign up to add or upvote prosMake informed product decisions

Cons of Falcon
Cons of Tornado
    Be the first to leave a con
    • 2
      Event loop is complicated

    Sign up to add or upvote consMake informed product decisions

    - No public GitHub repository available -

    What is Falcon?

    Falcon is a minimalist WSGI library for building speedy web APIs and app backends. We like to think of Falcon as the Dieter Rams of web frameworks.

    What is Tornado?

    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.

    Need advice about which tool to choose?Ask the StackShare community!

    What companies use Falcon?
    What companies use Tornado?
    Manage your open source components, licenses, and vulnerabilities
    Learn More

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with Falcon?
    What tools integrate with Tornado?

    Sign up to get full access to all the tool integrationsMake informed product decisions

    Blog Posts

    What are some alternatives to Falcon and Tornado?
    Flask
    Flask is intended for getting started very quickly and was developed with best intentions in mind.
    JavaScript
    JavaScript is most known as the scripting language for Web pages, but used in many non-browser environments as well such as node.js or Apache CouchDB. It is a prototype-based, multi-paradigm scripting language that is dynamic,and supports object-oriented, imperative, and functional programming styles.
    Python
    Python is a general purpose programming language created by Guido Van Rossum. Python is most praised for its elegant syntax and readable code, if you are just beginning your programming career python suits you best.
    Node.js
    Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.
    HTML5
    HTML5 is a core technology markup language of the Internet used for structuring and presenting content for the World Wide Web. As of October 2014 this is the final and complete fifth revision of the HTML standard of the World Wide Web Consortium (W3C). The previous version, HTML 4, was standardised in 1997.
    See all alternatives