Tornado (web server)

Source: Wikipedia, the free encyclopedia.
Original author(s)FriendFeed
Developer(s)Ben Darnell, Meta, Bret Taylor
Initial release2009; 15 years ago (2009)
Stable release
6.4.0[1] Edit this on Wikidata / 29 November 2023; 6 months ago (29 November 2023)
Apache licence 2.0 Edit this on Wikidata

Tornado is a scalable,

open-sourced soon after.[3]


Tornado is noted for its high performance. Its design enables handling a large number of concurrent connections (i.e., tries to solve the "C10k problem").


  • An asynchronous MongoDB driver called Motor.
  • CouchDB
    drivers called corduroy and trombi.
  • Asynchronous driver for PostgreSQL wrapping psycopg called Momoko


The following code shows a simple web application that displays "Hello World!" when visited:[4]

import asyncio

import tornado.web

class MainHandler(tornado.web.RequestHandler):
    def get(self):
        self.write("Hello, world")

def make_app():
    return tornado.web.Application([(r"/", MainHandler),])

async def main():
    app = make_app()
    await asyncio.Event().wait()

if __name__ == "__main__":

See also


  1. ^ "Release 6.4.0". 29 November 2023. Retrieved 19 December 2023.
  2. ^ "Home - tornado - GitHub". GitHub. Retrieved 2009-09-10.
  3. CNet. Archived from the original
    on 2012-01-30. Retrieved 2009-09-10.
  4. ^ "Hello, world". Retrieved 2022-09-14.

External links