Cette page est affichée en anglais. Une traduction française est en cours.
ConfigsApr 12, 2026·2 min de lecture

Tornado — Python Async Web Framework and Networking Library

Tornado is a Python web framework and asynchronous networking library originally developed at FriendFeed (acquired by Facebook). Non-blocking I/O, WebSockets, long polling, and thousands of simultaneous connections. One of the earliest async Python web frameworks.

Introduction

Tornado is a Python web framework and asynchronous networking library originally developed at FriendFeed (acquired by Facebook in 2009). One of the earliest non-blocking I/O frameworks for Python, Tornado is designed for long-lived connections like WebSockets, long polling, and server-sent events. Used at Facebook, Quora, and other high-concurrency applications.

What Tornado Does

  • Non-blocking I/O — event loop based
  • Web framework — routing, templates, auth, XSRF
  • WebSocket — native support
  • HTTP client — async HTTP requests
  • Coroutinesasync def / await (modern) or gen.coroutine (legacy)
  • asyncio compatible — integrates with Python asyncio loop

Comparison

Framework Async Model WebSocket Era
Tornado IOLoop (asyncio) Built-in 2009
FastAPI ASGI (asyncio) Via Starlette 2018
Sanic uvloop Built-in 2016
aiohttp asyncio Built-in 2014

FAQ

Q: Are new projects still using Tornado? A: For new projects, FastAPI or Starlette is recommended. Tornado is mainly for maintaining old projects or scenarios needing a custom IOLoop.

Sources

Discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires