Reply content:
Because PHP is a scripting language, Java is a compiled language.
The core problem of large-scale Internet systems is scale (expansion, especially horizontal scaling), which is not a language solution. So we will look at the architecture of these systems. Facebook is primarily a content-based system plus a messaging system, and its main problem is data access and messaging, which are unrelated to the "front-end (generalized)".
Because the core problem is not directly related to the "front End (generalized)", it is an independent problem. So the logic is:
- What language is used in founder, and which language is used in founder's relationship network. These two factors are the first.
- The scripting language has a faster cycle of testing and deployment, and the ecosystem is simpler.
- Java's JDK is rocket technology, but its mandate has always been a problem, greatly affecting the entire technology buyers choice.
These factors are taken for granted without Java, and the use of other scripting languages is a possibility that happens. Language issues are not important to companies of this level on Facebook, but the standards they consider are certainly different from what we normally do on a project. Facebook has a large number of excellent engineers who can transform PHP at the language level. And, it is said that PHP is the glue language for Facebook.
The advantage of the EE is that it allows a large number of low-level engineers to work together to develop a system that can be used. Other languages have not been in the actual development of projects, bad comments.
The general feeling is that Facebook's level has led to the development goals of any language they adopt, and it is still a good choice for a general company to do enterprise-level development with either Java EE or. Net. If you want to be agile, use PHP or Python better. Because the author is good at PHP at the beginning of the project, ask which project is not the reason, other explanations are their own 1. Facebook uses PHP
2. Facebook has developed the hiphop, which greatly improves performance
3. The distributed architecture of the database is good, the user Login verification table on both fields, the other all split out
4. There's something else that should be done in C + +.
PHP itself is the language for the development of the Internet, very suitable for web development, and the class library is very rich, the development efficiency is very high, and the implementation is very good.
Java was originally designed for embedded devices language, the development of the web or slightly cumbersome, in fact, most of the internet companies are using PHP. This two years of Android development has also cultivated a lot of people to do Java development.
In comparison, Java maintainability is better than PHP, Java code is more readable than PHP, see a bunch of $ sign is a bit dizzy ah. PHP rack in front of the backend with some Java and c++fb certainly not PHP, PHP is a skin