Monster Battle--parsing the reason for the slow opening of the website

Source: Internet
Author: User

Before the beginning, bloggers first Baidu under the "Why XX Open Slow", the results are as follows

Traditional giants

Baidu 30,200,000 Sina 48,200,000 Sohu 4,420,000

New nobility

47,100,000 Watercress 6,230,000 Youku 2,310,000

Why the Internet technology to today, still can not completely solve the problem of Web site open slowly? Is it a stubborn disease in the IT industry?

From the data can be seen that although the emerging aristocracy, but its web site is more slowly than the traditional giant Baidu more, almost with Sina, Sina has a few decades to open the accumulation of slow, only to narrow the know, knowing that as the late only show really impressive.

And Youku is the opening of the lowest number of slow, it can be seen that the major Internet companies in the technology reserves and use of the difference.

The user opens the browser, enters the URL, and the page is loaded. This simple behind the hidden what monster, so that the major Internet forces are busy?

First, take a look at a chart, which is the timetable for the browser to open a page and what the browser has done.

In advanced browsers such as Chrome, you can get these data through the JS script window.performance.timing, ONEAPM's browser Insight is based on this to develop the

Look at a bunch of English, you must faint, in fact, I also faint.

Usually diagnose the website to open slowly, the timetable can be divided into 3 simple process, to analyze it, each process contains some details

1 Network link time (Fetchstart-responsestart)

2 Browser accepts data build page (Responsestart-domcontentloadedeventstart)

3 page load resource and render page (Domcontentloadedeventstart-loadeventend)

Fen Beast

Causes the website to open slowly the first monster must be the network link time, the internet company local tyrants reluctantly and this monster to draw a tie, other internet companies are early mingjinshoubing.

Because this monster will be split, first of all, as a telecommunications network and Unicom network, and then are divided into 34 administrative regions, if you think you open the site is very fast, but some areas of users to open the site is very slow, it must be the region's monster is too strong to deal with the beast's usual weapons

1 DNS acceleration such as dnspod, speed up your domain name resolution in the country

2 site mirroring, to solve the problem of multi-line interoperability, such as Unicom Telecom Mobile

3 CDN Acceleration, so that your resources closer to users, open faster natural faster

Unfortunately, these 3 strokes are all burning money, the whole use of breath, not local tyrants can not afford, so to analyze their own visitor group where, targeted to spend some silver

The Beast of Metamorphosis

Cause the website to open the second monster is to accept the speed of the data, in the solution of the first monster, can affect the speed of receiving data is mainly the response time of the server, especially when the user volume is larger, the data is more complex, the business is more complicated, the monster will follow the transformation, such as high concurrency under the Distributed transaction Lock ), fast retrieval of massive data (search), image, video fast loading (multimedia)

And this monster combat, mainly rely on talent and year-round technology accumulation, the major Internet companies are only consistent, are embracing open source + monopoly personnel measures, which is why recent years of fresh graduates of the price increasingly high, the battle of monopoly talent began here.

Split Beast

Causes the website to open slowly The third monster has appeared in recent years, the previous page is simpler, the bearer business is also single, with the passage of time, a page more and more complex, and then the problem followed.

This is a split beast, this monster usually like to stay with the user, but you play the game of mystery, now mainly divided into IE, Firefox, Chrome, mobile version of the major browsers and domestic mobile phone on the domestic browser, domestic too complex is not listed.

Here a Sina Weibo, for example, the home page after Weibo, the cumulative launch of 281 requests to load a variety of resources, a simple microblogging pages are so complex, not to mention that we usually use other systems.

This is the error log

Major internet companies in the fight with the split beast in the process, win more than a few, such a record, small and medium-sized companies are difficult to match

The reasons are as follows

11 pages are loaded with so many resources, a site N page load more problems will be more encountered, see and fen beast fighting is more abrasive, not a large number of technical personnel, and accurate analysis, difficult to win, the first-line internet company because in this piece has a rich accumulation, so the draw is mostly, You see Sina also took nearly 10 seconds to complete the loading of all the resources.

2 The management of these resources need to use the front-end engineers, and the Web page becomes complex is the matter of recent years, the front-end engineers to cultivate a process, in addition to the old Internet companies have technical reserves and talent reserves to stabilize the position, other companies are struggling to fight such as casually hit QQ mall http:/ /www.wanggou.com/an e-commerce home page, the report JS error, as for this error shadow does not affect the business, I do not know

The collection and analysis of JS error log is also a complex thing, because the greater the volume of traffic, the larger the amount of data, in addition to large companies, small companies do their own business is not enough, let alone browser logs to collect these and business unrelated things.

The server can randomly hit the log, look at the log, and the browser can only close the eyes, guess! What fault users encounter often only call porcelain after Remote Desktop, to know, efficiency is very low.

Monster Battle--parsing the reason for the slow opening of the website

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.