What programming language is Facebook written and developed in?There areWebsite construction companyShangpin China tells you:
Facebook uses LAMP (Linux, Apache, MySQL, PHP) as its technical architecture.The foreground development language is mainly PHP, and some background applications use Python, Perl and Java, as well as some gcc and Boost.
LAMP Linux+Apache+MySQL+Perl/PHP/Python, a group of open source software commonly used to build dynamic websites or servers, are all independent programs, but because they are often used together, they have increasingly high compatibility, and together form a powerful Web application platform.
1. The Web front end is written by PHP.Facebook's HipHop will convert PHP into C++and compile it with g++, so that it can provide high performance for the template and Web Logos business layer.
2. Business logic exists in the form of service, which uses Thrift.These services are implemented by PHP, C++or Java according to different requirements.
3. Services written in Java do not use any enterprise class application server, but use Facebook's own customized application server.It seems to be a reinvention of the wheel, but these services are only exposed to Thrift (the vast majority of them are). Tomcat is too heavyweight, even Jetty may be too much, and its added value is meaningless to what Facebook needs.
In addition to the language level, there are many architectures, most of which are open source architectures, and many of which are designed and made open source by Facebook according to its own business needs.
With the vigorous development of open source trend, open source LAMP has been integrated with J2EE andNet commercial software has formed a tripartite confrontation, and the investment cost of the software development project is low, so it has attracted the attention of the entire IT industry.
LAMP is an open resource network development platform based on Linux, Apache, MySQL and PHP. PHP is a programming language that can sometimes be replaced by Perl or Python.The term comes from Europe, where these programs are often used as a standard development environment.The name comes from the first letter of each program.Each program complies with open source standards in its ownership: Linux is an open system;Apache is the most common network server;MySQL is a relational database with additional tools based on network management;PHP is a popular object scripting language, which contains the excellent features of most other languages to make its network development more effective.Developers using these tools in the Linux environment under the Windows operating system are called using WAMP.