Forgot your password?
typodupeerror
Programming Social Networks The Internet News

Facebook Releases Open Source Web Server 113

Posted by timothy
from the what-is-this-facebook-you-speak-of dept.
Dan Jones writes "Ah the irony. The week Facebook is being asked to cough up source code to satisfy an alleged patent infringement, the company releases an open source Web server. The Web server framework that Facebook will offer as open source is called Tornado, was written in the Python language and is designed for quickly processing thousands of simultaneous connections. Tornado is a core piece of infrastructure that powers FriendFeed's real-time functionality, which Facebook maintains. While Tornado is similar to existing Web-frameworks in Python, it focuses on speed and handling large amounts of simultaneous traffic."
This discussion has been archived. No new comments can be posted.

Facebook Releases Open Source Web Server

Comments Filter:
  • by DaveDerrick (1070132) on Friday September 11, 2009 @05:42AM (#29387395)
    "Thats not IRONY chumps & chumpettes, its just coincidental".
  • That's not ironic! (Score:4, Insightful)

    by bs7rphb (924322) on Friday September 11, 2009 @06:19AM (#29387539) Homepage

    It's just coincidental!

  • by Anonymous Coward on Friday September 11, 2009 @06:20AM (#29387541)

    That's pretty bold to claim your framework has better performance then another one that's not publicly available.

  • by BitZtream (692029) on Friday September 11, 2009 @07:11AM (#29387753)

    I don't know, Java, C++ and python all run at fine speeds if you write proper code for the language. C++ is probably the fastest in most cases, but Java is going to be a real close second written properly and on the right VM. While I don't like python myself, theres a reason it gets used in games, it can perform well enough to be used extensively if you can deal with compile time, which wouldn't really matter for long running process like a web server.

    Perl isn't HORRIBLE, again, startup time is its biggest problem. PHP has issues, but when zend, precompiling and caching again, it works better than most expect.

    I know nothing at all of Erlang so I won't speak to it.

    MySQL is known for being fast as hell under the right workload, just gotta use it the right way.

    Mix in some memcached and you can server a lot of hits.
    Considering the number of extremely high traffic websites that use a mix of software about like this one, I think you'd have to be pretty stupid to put the blame on the software thats used.

    Do you run a server farm that gets more traffic than Wikipedia, Yahoo or MySpace? I'll talk some shit about languages and say that everything should be written in C at the highest, by proper programmers so we don't end up with OSes that need gigs of ram to boot ... but ...

    While possible, even I'm not arrogant enough to call them stupid.

    I don't find anything about Wikipedia's setup 'impressive', but its certainly done properly. Their mix of php, python and mysql is all used exactly as is should be and serves a massive amount of people on a relatively low amount of processing power.

    But again ... stupid? No, they are hardly stupid.

  • by 0100010001010011 (652467) on Friday September 11, 2009 @08:18AM (#29388051)

    Irony deals with opposites; it has nothing to do with coincidence. If two baseball players from the same hometown, on different teams, receive the same uniform number, it is not ironic. It is a coincidence. If Barry Bonds attains lifetime statistics identical to his fatherâ(TM)s it will not be ironic. It will be a coincidence. Irony is "a state of affairs that is the reverse of what was to be expected; a result opposite to and in mockery of the appropriate result." For instance:

    * If a diabetic, on his way to buy insulin, is killed by a runaway truck, he is the victim of an accident. If the truck was delivering sugar, he is the victim of an oddly poetic coincidence. But if the truck was delivering insulin, ah! Then he is the victim of an irony.

    * If a Kurd, after surviving bloody battle with Saddam Husseinâ(TM)s army and a long, difficult escape through the mountains, is crushed and killed by a parachute drop of humanitarian aid, that, my friend, is irony writ large.

    * Darryl Stingley, the pro football player, was paralyzed after a brutal hit by Jack Tatum. Now Darryl Stingleyâ(TM)s son plays football, and if the son should become paralyzed while playing, it will not be ironic. It will be coincidental. If Darryl Stingleyâ(TM)s son paralyzes someone else, that will be closer to ironic. If he paralyzes Jack Tatumâ(TM)s son that will be precisely ironic.
    -
    The late and great, George Carlin.

  • by MostAwesomeDude (980382) on Friday September 11, 2009 @09:06AM (#29388335) Homepage

    As we say in #python, "Programming is hard!"

    Learning Twisted is so much easier than rolling your own networking mini-library. Sure, a lot of people are kicking and screaming in the beginning, but once they actually sit down and start coding, they usually say something like, "Oh, hey, this is nice."

    There's a reason it's popular.

  • by costas (38724) on Friday September 11, 2009 @09:54AM (#29388739) Homepage

    They explicitly states that they looked at Twisted and chose to write something more user-friendly. Having looked at Twisted (3-4 years ago though) and at Tornado's samples and benchmarks I think they succeeded. Twisted seems to be going the way of Zope: an interesting platform that did everything its own way and shut itself out from the rest of the Python universe, eventually losing relevancy.

    I think a Tornado/Django mashup (Tornado infrastructure, Django front-end/application bootstrapping) would be realllly interesting....

  • by ShecoDu (447850) on Friday September 11, 2009 @10:34AM (#29389127) Homepage

    Bret Taylor [appspot.com] says:

    When we started, we did use Twisted. In practice, I found Twisted tedious. The deferred abstraction works, but I didn't love it in practice. Likewise, the HTTP/web support in Twisted is very chaotic (see http://twistedmatrix.com/trac/wiki/WebDevelopment [twistedmatrix.com] ... - even they acknowledge this). In general, it seems like Twisted is full of demo-quality stuff, but most of the protocols have tons of bugs.
    Given all those factors, it didn't seem to provide a lot of value. Our core I/O loop is actually pretty small and simple, and I think resulted in fewer bugs than would have come up if we had used Twisted.

  • I never made it past the kicking and screaming part :-).

  • Re:Shitty argument (Score:4, Insightful)

    by Unoti (731964) on Friday September 11, 2009 @12:17PM (#29390361) Journal
    True, you can. But Facebook is at the forefront, the bleeding edge. They're doing stuff that nobody else is doing yet. So it'd be more like complaining about a surgeon killing a patient during a procedure that no one has ever tried before, like a heart transplant in 1973. And they do successfully serve most of their customers. I'm no facebook fanboy, I'm just saying they are pushing the limits, and also doing what they can to advance the technology.

"Maintain an awareness for contribution -- to your schedule, your project, our company." -- A Group of Employees

Working...