Python:friendfeed's Tornado Web Server__python

Source: Internet
Author: User
Tags web services

The code is very simple, less than 5k lines. But the idea is good, changed to non-blocking after the efficiency is able to improve a lot, especially considering that the modern web app all need to communicate with other
HTTP server, blocking the price is too great.

Tornado is a open source version of the scalable, non-blocking Web server and tools, power FriendFeed. The FriendFeed application is written using a web framework this looks a bit like or Google's WebApp, but with Addi tional tools and optimizations to take advantage of the underlying non-blocking.
The framework is distinct from most mainstream Web server frameworks (and certainly most Python frameworks) because it is non-blocking and reasonably fast. Because it is non-blocking and uses epoll, it can handle thousands of simultaneous standing, connections which it are Ideal for real-time Web services. We built the Web server specifically to handle FriendFeed ' s real-time features-every active user of FriendFeed maintains An open connection to the FriendFeed servers. (For further information on scaling servers to support thousands of clients, which is the c10k problem.)
The Tornado documentation for a detailed walkthrough the framework.

Tornado:facebook releases Python Framework as Open Source


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.