Chinaunix首页 | 论坛 | 博客
  • 博客访问: 325919
  • 博文数量: 104
  • 博客积分: 3025
  • 博客等级: 中校
  • 技术积分: 1150
  • 用 户 组: 普通用户
  • 注册时间: 2005-02-02 11:12
文章分类

全部博文(104)

文章存档

2013年(1)

2011年(2)

2010年(30)

2009年(29)

2008年(8)

2007年(15)

2006年(17)

2005年(2)

我的朋友

分类:

2010-03-26 15:15:10

I’m here at the Facebook Technology Tasting, where the social network is showcasing their newly open sourced PHP technology, HipHop. The new technology effectively transforms PHP into C++, resulting in a significant savings of CPU cycles on web servers. Facebook is streaming the event live, and we’ve embedded the live stream below.

Facebook Senior Open Programs Manager David Recordon kicked off the event by walking the audience through some of the challenges Facebook faces, particularly with the dynamic pages it has to generate. He spoke about some of the benefits of various programming languages, and also the CPU costs of each. As it scaled, Facebook encountered problems with PHP, including high CPU and memory costs and difficulty developers faced to build extensions. But Facebook has a slew of talented PHP developers, and it didn’t make sense to rewrite the site.

The solution Facebook came up with is HipHop for PHP, which started as a hackathon project from a single developer named Haiping Zhao (though he had some team members as the project progressed). The technology transforms PHP into C++, using g++ to compile it.

Facebook has found that the technology uses 50% less CPU with equal traffic on its web tier, and 30% less CPU usage with doubled traffic on its API tier.

Facebook started deploying HipHop six months ago (initially it was only on internal servers). It’s now been ramped up to 90% of Facebook’s production servers.

Zhao took the stage to give a highly technical walkthrough of the benefits of the technology (watch the video below for the details).



Facebook Open Source Developer Advocate Scott MacVicar presented a roadmap for the future of the open source project. Among Facebook’s goals:
-Catch up with PHP 5.3
-Support Apache as a web server option
-Evolve based on usage outside of FB.

阅读(513) | 评论(0) | 转发(0) |
0

上一篇:(转)CASSANDRA

下一篇:fan火箭

给主人留下些什么吧!~~