Use URL rewriting with caution)

Source: Internet
Author: User
Address: http://www.cnblogs.com/csky/archive/2006/08/09/urlrewrite.html

In order to make the URL address more friendly (of course there may be other reasons), many sites use URL rewriting, such as rewrite (c: \ windows \ Microsoft. net \ framework \ v1.1.432 \ aspnet_isapi.dll), and. config is configured accordingly, and finally the corresponding processing program is written. We do this in most cases, and so does bke Park. This does not seem to be a problem.

However, for a long time, bke Park has encountered performance problems. Many Dudu and garden friends have also tried many ways to improve performance and achieved remarkable results, but they are still not ideal, I also came up with a strong idea, because I like the buke park very much. I learned a lot in the garden, basically reading the above articles in the morning and evening, after a friend from a technical group asked me a question about URL rewriting last night, he suddenly realized that the performance problem of bke Park was probably caused by URL rewriting.

My friend's problem is:
Locate (the link has expired now) are located through URL rewriting to the same page http://www.wodecity.com/page/food.aspx, are using the same processing program, the only difference is to deal with the listen 20times, he is using loadrunnerto test, he is very gloomy to this result. I felt incredible at the beginning ,*. * and *. what is the difference between HTML ,*. * All the requests on the page, including CSS files and all image files, are processed using the URL rewriting handler written by him ,*. HTML does not exist. It's just a request. The problem is here. Why? What should we do? Because they want to use logging? There are two methods: Method 1: Convert the folder where the image is stored into a virtual directory, and then move it to the virtual directory *. * ing, so that his URL rewriting program will not process image files. Of course, other files that do not require URL rewriting must be processed similarly like image folders, method 2: Create a site, such.

Everything is okay. He told me that he went to the company to test it this morning.

To verify my ideas, I wrote a program to test today, and the performance is nearly 20 times different. Good, my idea is correct.

Maybe my thoughts or test results are incorrect. Here, PK is welcome. MSN: cxbsky # hotmail.com.

I also hope this article will be helpful to the performance problems of the bucket, because the problems may be very similar to those of my friends.

PS: When I wrote this article, I asked my friend about the test result. He said, "It turns out that only 50 people can be supported. At present, there is no problem with more than 700 ."

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.