Tornado
Tornado is a Python web framework and asynchronous networking library designed for high-concurrency scenarios. Built on non-blocking I/O and an event loop, a single Tornado process can maintain thousands of simultaneous connections — making it especially well-suited for real-time applications such as long-polling, WebSocket-based chat rooms, and live data feeds.
This section covers Tornado from basics to advanced practice:
- Getting Started — framework overview, installation, first application, routing, debug mode, multi-process deployment
- Requests and Responses — query strings, route parameters, request body, response methods, cookies, static files
- Advanced Views and Routing — view lifecycle hooks, URL alias, output buffering, user authentication
- Template Engine — template syntax, inheritance, built-in functions, XSRF protection
- Coroutines and Async I/O — sync vs. async, generators, async/await, async HTTP requests, parallel coroutines
- WebSocket — full-duplex communication, WebSocketHandler, multi-user chat room example
Last updated on