PDA

View Full Version : Facebook releases open source project


openAdmin
09-12-2009, 04:00 AM
Facebook announced that they are open sourcing the non-blocking web server and the tools that power FriendFeed under the name Tornado Web Server (http://www.tornadoweb.org/). Friendfeed is the social sharing site that Facebook acquired about a month ago.Tornado's framework is written in Python and is designed to handle thousands of connections at the same time, which the company says makes it ideal for real-time web services.

In Facebook Director of Products, Bret Taylor’s blog (http://bret.appspot.com/entry/tornado-web-server), he describes Tornado:


All the basic site building blocks - Tornado comes with built-in support for a lot of the most difficult and tedious aspects of web development, including templates (http://www.tornadoweb.org/documentation#templates), signed cookies (http://www.tornadoweb.org/documentation#cookies-and-secure-cookies), user authentication (http://www.tornadoweb.org/documentation#user-authentication), localization (http://www.tornadoweb.org/documentation#localization), aggressive static file caching (http://www.tornadoweb.org/documentation#static-files-and-aggressive-file-caching), cross-site request forgery protection (http://www.tornadoweb.org/documentation#cross-site-request-forgery-protection), and third party authentication (http://www.tornadoweb.org/documentation#third-party-authentication) like Facebook Connect. You only need to use the features you want, and it is easy to mix and match Tornado with other frameworks.
Real-time services - Tornado supports large numbers of concurrent connections. It is easy to write real-time services via long polling (http://en.wikipedia.org/wiki/Push_technology#Long_polling) or HTTP streaming with Tornado. Every active user of FriendFeed maintains an open connection to FriendFeed's servers.
High performance - Tornado is pretty fast relative to most Python web frameworks. We ran some simple load tests (http://www.tornadoweb.org/documentation#performance) against some other popular Python frameworks, and Tornado's baseline throughput was over four times higher than the other frameworks.
Download Tornado at tornadoweb.org (http://www.tornadoweb.org/).