tornado - (a) on tornado

1.1 Tornado is why the matter

Tornado full name Tornado Web Server, is written in Python Web server and Web application framework used by the company in its own website FriendFeed FriendFeed, the later was acquired by Facebook framework is open to the public in the form of open source software in September 2009.

Features:

  • As a Web framework, is a lightweight Web framework, similar to the other Python web framework Web.py, its own way of handling asynchronous non-blocking IO's.
  • As a Web server, Tornado has more excellent resistance to load capacity, with the official nginx reverse proxy deploy Tornado and other Python web application framework to compare the results maximum page views nearly 40% more than second place.

Performance: Tornado has excellent performance. It C10k trying to solve the problem, that is greater than or equal treatment ten thousand concurrent, the following table is and some other Web frameworks and server comparison:

Composition alternatives a full stack WSGI with Tornado frame and the server. Used alone or tornado tornaod http web server framework WSGI container, there are some limitations, to maximize the use of the performance of the tornado, it recommended use of the network and HTTP server framework tornado

 


 

1.2 Tornado given Django

Django

Django is to take large and direction, focusing on the efficient development , it is best known for its fully automated management background: Since only need to use ORM, do simple object definitions, it can automatically generate the database structure, as well as full-featured management background.

Django provides convenient, but also means Django ORM built with a high degree of coupling other modules, the application must use the built-in Django ORM, or can not enjoy the offer within the framework of various ORM based on their convenience within the framework.

  • session function
  • Backstage management
  • SNAKE

Tornado

Tornado is taking small but efficient direction, focusing on superior performance , it is best known for asynchronous non-blocking design.

  • HTTP server
  • Asynchronous Programming
  • WebSockets
 

Guess you like

Origin www.cnblogs.com/tom-blogs/p/11202721.html