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

Falcon

86
201
+ 1
89
Tornado

436
407
+ 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.

Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
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?
    See which teams inside your own company are using Falcon or Tornado.
    Sign up for StackShare EnterpriseLearn 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.
    ExpressJS
    Express is a minimal and flexible node.js web application framework, providing a robust set of features for building single and multi-page, and hybrid web applications.
    Django REST framework
    It is a powerful and flexible toolkit that makes it easy to build Web APIs.
    Sinatra
    Sinatra is a DSL for quickly creating web applications in Ruby with minimal effort.
    FastAPI
    It is a modern, fast (high-performance), web framework for building APIs with Python 3.6+ based on standard Python type hints.
    See all alternatives