I am very grateful to the friends of the park to put forward so many good ideas, I accept all. Again, the main purpose of this article is to explore the Web server optimization scheme, I am not a systematic analysis, but from one point of view to illustrate my idea. Optimization is a very learned lesson, and not be able to get the canon overnight. In order not to mislead friends, I deliberately changed the title of the article, plus "(from the picture angle)". I suggest breaking up to learn to strengthen.
I upload this piece of file to do more, for some different customers different needs summed up several practical ways to upload files, I hope to share with you.
We know that now a good site is facing the problem of traffic. High-volume Web server pressure probably comes from the following two areas:
First: The database, a large number of data query operations will consume most of the time.
Second: The Web server itself, a large number of pictures and JS file loading.
Here I will say for the second item most websites in (picture processing aspect) may carry on the optimization operation. Personal opinion:
We can put the site in the same picture unified on a separate server, here I call the picture server. All the pictures in the program are linked to the picture server. The problem is that there are a lot of pictures are not the beginning of existence, most of them are added through the background, modified upload up, Like a news picture or something. asp.net upload components can only upload pictures to the appropriate server on the program. Here we can use the FtpWebRequest class below. NET to implement the FTP function, through it may achieve similar FTP software related functions, at least upload and download, This may be easy to implement the picture
Completely separated from the program.