Joke Collection Website - Public benefit messages - What is the basic structure of the website?

What is the basic structure of the website?

Website architecture is divided into hard architecture and soft architecture according to the production steps.

First, the hard architecture

1. computer room: When choosing computer room, you can choose single computer room or double computer room such as Netcom and Telecom according to the geographical distribution of website users.

2. Bandwidth: Estimate the daily traffic of the website and choose the appropriate bandwidth according to the traffic. The calculation of bandwidth mainly involves two indicators: peak traffic and page size.

3. Servers: Select the required servers, such as picture server, page server, database server, application server and log server. For a website with a large number of visits, it is quite necessary to separate a separate picture server from a page server.

Second, soft architecture.

1. website framework: There are many choices for PHP framework, such as CakePHP, Symfony and Zend Framework, which are selected according to the familiarity of the creative team with each framework.

2. Logical stratification

1) presentation layer: all logic related to presentation layer should be included in the category of presentation layer.

2) Application layer: The main function is to define what users can do and feed back the operation results to the presentation layer.

3) Domain layer: a layer containing domain logic, which tells users the specific operation process.

4) Persistence layer: that is, the database, where the domain model is kept, including the architecture and logical relationship of the website.

Extended data

Website classification

1, depending on the programming language used by the website: such as asp website, php website, jsp website, Asp. Net website, etc.

2. Classify websites according to their uses, such as portal websites (comprehensive websites), industry websites and entertainment websites.

3. Classify websites according to their functions, such as single website (enterprise website), multifunctional website (online mall) and so on.

4. Classify websites according to their owners, such as personal websites, commercial websites, government websites and educational websites.

5. According to the business purpose of the website, it is divided into profit-making websites (industry websites and forums) and non-profit websites (enterprise websites, government websites and educational websites).

Baidu Encyclopedia-Website Architecture

Baidu Encyclopedia-Website