The art of software Engineering in Web development (Web programmers come in and talk, especially programmers with background development of large portal sites)

Source: Internet
Author: User
Close to the beginning of a large-scale comprehensive portal site management system (accurate content management system) design
and planning, the website development technology has a more profound understanding. From the advent of the Internet to the present, website development technology has 4 processes:
1. Static website, the page is static, no database support.

2. Dynamic website, which is the most commonly used technology of medium and small-sized website, namely database-driven
The website

3. Dynamic content static publishing technology. This is the current comparative advanced Web development technology. As the number of user visits increases
, the load of the Web server increased rapidly, reaching full loads and even overloading, greatly reducing
The efficiency of the system even causes the system to be difficult to run, although upgrades from the DBMS and hardware facilities can be properly addressed
This efficiency bottle is a problem, but this greatly increases the cost. In addition, we need to improve the application in search engines. Search
The robot in the engine encounters dynamic Web pages during the search process, such as: News.asp? year=2003&
MONTH=12&DATE=19, the robotic program encounters "?" in retrieving this string. and "&" will go into the dead loop, so the robot program avoids the "Robot Trap program" that goes into the dead loop, and at this point it can only search
News.asp the content of this page. And we use dynamic content of static release technology after news.aspyear=2003&
month=12&date=19 this URL into a static news/2003121911062033.htm, the content of this static page is news.aspyear=2003&month=12&date= 19 generated content, not only improve the probability of being searched,
And make the system a lot more efficient (because when a Web user requests access to this page, there is no need to request to the database system
Data). This technology is widely used in large and medium-sized comprehensive websites, such as Sina, Sohu.

4. The release technology based on cache (reverse proxy).
Used to do a number of times before the application has been used in some ways: After the first visit to save the generated content into a cache file, the next request from the cache directory read cache files, content updates, the application of the content from the cache directory deleted, thereby reducing access to the database. Although this can also carry a larger load, but such a content management and caching system is difficult to separate.

If another idea: through a certain division of the current content management and caching mechanism of the separation of 2, you will find that no matter which side of the choice is very large. It is even possible to take advantage of the current content management system, which is already "functional", and make all the "efficiency" problems are more professional by the foreground, and is very easy to distribute the cache server solution: can be through the open source of squid to do reverse proxy web acceleration, can be a dedicated cache hardware devices, Even a professional caching service provider.

Dynamic caching must have a parameter parsing process based on the static link itself, and many professional content management system systems are made of the module of the Web server by the parametric parsing mechanism.

We can change the previous http/get mode of the Key=value to directly by the/value1/value2 way to pass, thus realizing the dynamic page static URL form. Caching only needs to be preceded by a cache server, for example: Squid. Dynamic caching of Web site dynamic content can be achieved.

This is the most advanced Web site development technology, the realization of a real sense of software engineering, the realization of the development process
The real division of labor Development, the development process of interdependence greatly reduced, improve the development speed. The art of the template
Design, page Planner also just layout planning, web programmers only the development of functional modules, and system integration of programmers
Only the page template and program module calls and logic integration, to achieve a completely separate interface and content, that is WYSIWYG, in the Web site management, art can not understand the program to maintain templates, and technical administrators do not consider the interface to deal with the program.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.