Which of the following is a suitable solution for pseudo-static and real-static websites?

Source: Internet
Author: User

From: http://hi.baidu.com/nirvanan/blog/item/4d7a09f5195279e67709d786.html

 

1. use of pseudo-static data
some users think that the actual amount of pseudo-static data is quite different from that of real-static data. Otherwise, from your personal perspective, are you going to determine whether a post is static or pseudo-static?
the estimation is hard to see, because the so-called static means that the address does not contain a question mark, but does not contain a question mark. Is it true or false? Can the search engine see it?
In fact, whether it is true or false, it is the same for the search engine. The search engine did not say that you are false. I will not include you.
Why does the search engine not include websites with question marks? Because the search engine is afraid of entering an endless loop due to question marks (in the past, there was such a vulnerability on the mobile network, and the spider went in and crashed), the address with question marks won't be included in many times, pseudo-static is actually static for search engines. Because there is no question mark in the address, there is no real static statement much more than pseudo-static statement.
2. why choose pseudo-static
many users say: Is it true or not static? Why not use static data? Isn't access faster? Isn't the load better? Wait... here, we only use one question to answer: Why MySQL. many users may not understand why MySQL databases have been used as a storage mechanism in many large forums. Most of them all think about it: "Because DZ uses MySQL, It is MySQL ". otherwise, let's imagine why DZ has survived on the days when the Program of so many forums coexist and is proud to laugh, the big reason is that DZ uses MySQL. imagine if the program modified by Big C was a text forum, would there be a DZ today? Or from another perspective, why do so many large websites choose MySQL instead of text as the storage mechanism? The so-called text forum is similar to the real static statement. It stores data in space, reads and writes a large number of hard disks, and so on... why is this writing method obsolete? I believe the answer is not what the teacher said:
"discuz.net currently has 2129867 posts. If HTML is stored, the answer is about 20799 MB, that is, about 20 GB. This does not calculate the space waste caused by the disk storage mechanism (the space occupied by 100 1 K files may be 200 K ). "
from my personal point of view, this reason cannot be a sufficient reason for users not to use static data.
however, another reason is worth thinking about, that is, why most websites do not choose to generate static data: "deleting and updating these HTML content will lead to a large number of disk Io operations and a large number of disk fragments. "

As mentioned above, in practice, a large number of disk I/O operations (input, output) and a large number of I/O operations can be imagined, A large number of disk fragments may even cause bad sectors on the hard disk.
Therefore, for static generation, it is better to use text forums to better address your needs. (vice W is to do text Forum was born, the name was ofStar http://www.ofstar.net/, after the development difficulties into MySQL, PW generates static pages, that is, the original PW text method, which is slightly improved to attract users' attention)
Of course, if you have a good memory, you can remember that during pw4, the PW forum could not be accessed for a long time, and the data was recovered some time ago, the official statement is that the hard disk is damaged due to attacks. In fact, this statement is not credible. As a result, the hard disk is damaged due to attacks or a large number of I/O operations, I personally prefer the latter.
Of course, if you are more concerned about 5d6d, you should know that 5d6d was inaccessible one day a few days ago. According to unofficial news, the hard disk was broken, the reason for the damage is that a large number of users perform a large number of I/O operations. Imagine that in our forum, disk I/O operations are performed only when the administrator updates the cache, every member in 5d6d is an administrator. How big is the test of the disk? So I am not surprised that the 5d6d hard disk is broken.
Of course, you may be reading this article Article Many of my friends have used BT, and I have heard that Bt is very harmful to the hard disk and cannot be opened much. The so-called Damage refers to the same thing as what we refer to here, A large number of I/O results in disk fragments and even bad disk channels.
Here are some practical examples to illustrate the problem.
3. disadvantages of pseudo-static
Of course, as the author of an article said, "if the traffic is slightly larger and pseudo-static is used, the CPU usage is overloaded, and more than 300 online users will be suspended at the same time, when no pseudo-static data is used, more than 500 online users will not be suspended at the same time. My number of ISS is 1000. This is true because pseudo-static data uses regular expressions instead of real addresses, the responsibility for determining which page is displayed is determined by the CPU directly. Therefore, the increase in CPU usage is indeed the biggest drawback of pseudo-static.
4. What should we do?
Let's summarize.
1. There is no difference between using true or false static resources for Seo.
2. Using true or static data may damage the hard disk and affect the Forum performance.
3. Use of pseudo-static will occupy a certain amount of CPU share, and a large amount of use will cause CPU overload
4. The most important thing is that we should use static resources for Seo.
So.
1. The real static method can be used to eliminate it directly, because no matter how it is generated, it is very bad for the hard disk.
2. Since the authenticity and static effect are the same, we can choose pseudo static.
3. However, excessive use of pseudo-static data may result in excessive CPU usage.
4. We only need to use it in large quantities.
5. Since static data is only for Seo, we only need to give it to Seo with pseudo static data and do not need it for users.
6. Therefore, we only need to use pseudo static data in the archiver dedicated to Seo crawling.
7. Thank you for your patience in reading my article.
8. If you have any questions or have different opinions, please submit them.

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.