原文地址http://www.quora.com/Facebook-Engineering/What-is-Facebooks-architecture
为quora上的一个提问,回答内容为DataStax公司的一个工程师自己对Faceebook框架的理解。
*Web front-end written in PHP. Facebook’s HipHop then converts it to C++ and compiles it using g++, thus providing a high performance templating and Web logic execution layer.
Facebook前端由PHP语言编写,HipHop将其转换成C++,并使用g++编译,因此可以提供一个高性能的模版和Web逻辑业务层。
* Business logic is exposed as services using Thrift . Some of these services are implemented in PHP, C++ or Java depending on service requirements (some other languages are probably used…)
Facebook提供的
商业逻辑是一些使用Thrift编写的的服务,根据对这些服务的要求可以使用PHP、C++、Java以及其他一些语言编写。
* Services implemented in Java don’t use any usual enterprise application server but rather use Facebook’s custom application server. At first this can look as wheel reinvented but as these services are exposed and consumed only (or mostly) using Thrift, the overhead of Tomcat, or even Jetty was probably too high with no significant added value for their need.