What is Tornado? A brief introduction to Tornado
This article brings you what is Tornado? This brief introduction to Tornado has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.
Tornado is a general name for a scalable non-blocking web server and related tools. Tornado can handle thousands of connections per second, so it is an ideal web framework for real-time web services.
Tornado, as the basic framework of the FriendFeed website, was released on September 10, 2009. It has received support from many communities and has been used in a series of different scenarios. In addition to FriendFeed and Facebook, many companies are turning to Tornado.
Compared with other Python network frameworks, Tornado has the following characteristics:
Complete Web framework: Like Django and Flask, Tornado also provides URL routing mapping and Request context. , template-based page rendering technology and other essential tools for developing web applications.
is an efficient network library whose performance is comparable to underlying Python frameworks such as Twisted and Gevent: it provides asynchronous I/O support and timeout event processing, which makes Tornado not only a Web In addition to the application server framework, it can also be used for backend applications such as crawler applications, IoT gateways, and game servers.
Provide efficient HTTPClient: In addition to the server-side framework, Tornado also provides an HTTP client based on the asynchronous framework.
Provide efficient internal HTTP server: Although other Python network frameworks (Django, Flask) also provide internal HTTP servers, their HTTP servers can only be used in test environments due to performance reasons . Tornado's HTTP server is closely integrated with Tornado asynchronous calls and can be directly used in production environments.
Complete WebSocket support: WebSocket is a new standard in HTML5 that enables two-way real-time communication between the browser and the server.
Because of the above characteristics of Tornado, Tornado is often used as an interface service framework for large sites, rather than focusing on building complete large websites like Django.
In addition, user authentication is a necessary function for almost all websites, especially for social networking sites such as FriendFeed and Facebook, the source of Tornado development. Therefore, the Tornado framework itself integrates the richest user authentication functions than other Python frameworks. Using this framework, developers can quickly develop secure and powerful user identity authentication mechanisms, such as cookie mechanisms, user identity authentication, preventing cross-site attacks, etc.
The above is the detailed content of What is Tornado? A brief introduction to Tornado. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Solution to permission issues when viewing Python version in Linux terminal When you try to view Python version in Linux terminal, enter python...

How to avoid being detected when using FiddlerEverywhere for man-in-the-middle readings When you use FiddlerEverywhere...

When using Python's pandas library, how to copy whole columns between two DataFrames with different structures is a common problem. Suppose we have two Dats...

How does Uvicorn continuously listen for HTTP requests? Uvicorn is a lightweight web server based on ASGI. One of its core functions is to listen for HTTP requests and proceed...

Fastapi ...

How to teach computer novice programming basics within 10 hours? If you only have 10 hours to teach computer novice some programming knowledge, what would you choose to teach...

Using python in Linux terminal...

Understanding the anti-crawling strategy of Investing.com Many people often try to crawl news data from Investing.com (https://cn.investing.com/news/latest-news)...
