For the site team, can be divided into the front-end, back-end, the framework of three roles.
- Front end: Responsible for all products that interact with the user, including the Web and mobile client
- Backend: Responsible for the development of various business APIs, as well as the development of other systems on the server side
- Architecture: Responsible for design and implementation of key system architecture, server maintenance and development process management, team building
The reason that the front-end uses PHP, is that it is flexible, quick to use, easy to modify, release fast, the disadvantage is easy to make mistakes (common such as spelling errors, SQL injection, upload execution, etc.), execution efficiency is not high, lack of global cache.
The reason behind the use of Java in the backend is that it is stable, reliable, efficient (especially after the advent of the JIT), not prone to mistakes (strong typing, precompilation, the need to intercept exceptions, etc.), the disadvantage is that the development and release efficiency is relatively low.
In general, close to the user's front end, the use of PHP can be faster to complete the front-end frequent and trivial updates, free to respond to changes in demand. The structural adjustment of the page, basic validation of user input, simple logic related only to user interaction, etc. are well suited to PHP development, and can even be migrated to the front-end team with template technology like Smarty. And the basic business logic and data update using Java development, can effectively improve the reuse, improve performance and throughput, avoid security issues. And the development of a slight reduction in exchange for maintainability of the promotion, the release speed is not a problem, because usually the basic business logic adjustment is often the overall modification, and layer test confirmation to be released.
Therefore, the large-scale web site production front-end using the PHP backend Java, both good and good maintenance, system stability and high performance, even security has greatly increased. Code reuse and completeness of documentation have all improved.
Large Web site production front-end using PHP background logic with Java