Top of the big era
Chapter 698 How to improve the loading speed of web pages?
Boss Zhou was very happy, "There are still many big websites like Friends.com in China, such as Qzone, which has a fancy skin design and takes 10 seconds to load. There are also Taobao, with so many product pictures, it is difficult to open the webpage. Very slow. Let's help out!"
Zhang Yiming poured cold water on it, "This matter is not that easy, it involves many aspects."
"what happened?"
"This matter has been discussed by the technical committee. The search business, browser business and Friends.com can be carried out simultaneously. The three projects are launched at the same time and linked with each other. But the project funds are a bit large, so it was rejected."
Then, Zhang Yiming simply explained the principle of this.
The logic behind the loading process of web pages is not simple.
Users need to interact with the website through a "handshake" through the browser, and after obtaining the permission of the website, they enter the website server to extract their website data.
Then the data is rendered and becomes a web page presented on the user's screen.
If the extracted data is linear, then the presentation of the network cable is the traditional way of one module after another. If the parallel extraction is distributed, the loading of the website can be like a waterfall from top to bottom, very quickly.
But no one else has this technology.
And, that's only part of the story of faster page loads.
During this process, the browser needs to perform a series of network agreements with the website, three handshakes and four handshakes. After the agreement is reached, the data can be extracted.
The process is too cumbersome.
If you can simplify this process, your pages will load faster.
In addition, the browser and the web server have a sequential and linear execution relationship, and the server must wait for the browser's request, which will cause the server to be idle. When the browser is working, the server is waiting, and when the server is working, the browser is waiting, which is also a waste of time.
If both sides can work at the same time, in parallel, you can increase the speed.
Parallel is distributed.
The third point is that when users use the website, it is the process of interaction between the browser and the website server. During this period, signals need to be sent continuously, browser application, server permission, application, permission, application, permission... non-stop Handshake, non-stop interaction.
If these follow-up processes are omitted as much as possible and the server sends fewer requests, it can greatly save the load on the website server and bring performance improvements...
Zhou Buqi could hear it like a cloud, but he basically understood it.
That is, the reading process of web pages is too complicated, and too many network protocols are involved behind it. In order to change this situation, in addition to improving the information supply method of the website itself, it is necessary to modify the old network protocol, or find a way to bypass it through technical means.
Zhang Yiming said: "We are currently in the era of web 2.0, and the core technology is AJAX, which has a certain technical threshold. Today's mainstream websites generally use this technology. The slow loading speed of pirated websites is due to poor servers. The reason is that there is no such AJAX."
"oh."
Zhou Buqi was dumbfounded.
Zhang Yiming added: "But with the development of the times, AJAX technology has not kept up with the times. According to statistics, it takes an average of 4.5 seconds to open a web page, which is too unacceptable. New technical means must emerge. Instead of traditional solutions, distribution is an opportunity.”
Zhou Buqi is very interested in technology, but he can't understand it well. He has a feeling of looking at Huangshan Mountain in the early morning. The mist is beautiful and beautiful, just like a fairyland.
This is probably the benefit of laymen.
Because it is far away, I feel very beautiful, so I am willing to buy a ticket to enter. If he is really an insider, knowing how difficult it is to climb the mountain, I am afraid that he will not bother to visit if he is given the ticket for nothing.
Unless you are a real mountaineering enthusiast with introspective interests and pursuits.
"Just tell me how to do it?"
"A total of 9 related projects have been applied for this time. I think it is necessary to start the three projects of Friends.com, search and browser as soon as possible."
"oh?"
"As I said on Friends.com, the search project...is a website optimization done by Weidian Search. The traditional way to open a web page is to directly go to the web server to collect data from the browser. There are a lot of agreements in this process. If Weidian Click search to set up a department and back up the website. When users use micro search, they don't need to visit the website server anymore, but can directly read from our backup library, which is equivalent to bypassing the agreement .”
Zhou Buqi tentatively said: "It also saves the time of jumping from search engines to outbound sites?"
Zhang Yiming said with a smile: "Yes! When users use Micropoint to search, they actually enter Micropoint's server. It will be more efficient to directly read the backup webpage in Micropoint's server."
Zhou Buqi nodded, "Well, interesting."
Zhang Yiming said: "Many websites do not have enough technology to be distributed. You can put the backup in the server of Weidian, and then you can read it in a distributed way. The speed will be faster. Moreover, there is a prospect of commercialization."
"Yeah?"
"We can cooperate with the website as a promotion service of Weidian. Merchants must also hope that their website can be displayed in front of the user's computer screen faster. If their technology is not enough, they can cooperate with Weidian and pay a sum of money. , back up the text information of the website in our server, which is equivalent to helping them optimize."
Zhou Buqi said thoughtfully: "Not only that, merchants participating in the project, under the same conditions, can have a higher website weight and rank higher in the search results."
Zhang Yiming smiled and said, "Yes, that's what it means."
Zhou Buqi was surprised, "Since it is a business project, it was rejected by Wang Haoyang?"
Zhang Yiming said helplessly: "I want to buy a large-capacity server. The estimated investment for this project is 50 million. Friends.com's project funds are only 20 million."
"What about the browser project?"
"It is impossible to change the protocol, but we can optimize the handshake process between the browser and the server through distributed technology, cancel the waiting time, and let both parties work at the same time. If this is done, then using the micro-point browser to open the webpage will increase the efficiency by at least 20% «out."
Zhou Buqi asked humbly: "Using distributed interaction, can the browser's rendering speed of web pages be improved?"
Zhang Yiming said, "Yes!"
This time, Zhou Buqi understood.
No wonder a generation of king IE browsers will be defeated by Google Chrome, and finally gave up their own browser kernel and chose Google kernel.
The key factor in this is distribution.
Google is the grandfather of distributed and has the strongest strength in this field. Distributed technology is powerful, and its browser kernel will naturally be more powerful.
Google Chrome's defeat of IE is completely technically crushed, even if IE is bundled with Windows system, it is useless.
Google Chrome has not yet been born. Micropoint browser can only use the IE kernel, which can be optimized through distributed technology.
The completion of these three projects...is progressive.
Friends of the project, optimize the loading speed of their own website;
Optimize the web page loading speed of cooperative websites for micro-point search projects;
Browser project, optimize the loading speed of all webpages using Microdot browsers.
Very meaningful!
Zhou Buqi couldn't help asking: "If these three projects are completed, how long will it take for users to use Friends.com through Weidian browser and Weidian search?"
"About...efficiency can be increased by 50%. The current average loading speed of Friends.com is nearly 4 seconds. If it is done, it can be shortened to 2 seconds."
"Ah?" Zhou Buqi was a little disappointed, and felt that it was not much higher, "Didn't you say that the loading time of Friends.com's own project is only 20% of the traditional model?"
Zhang Yiming said with a smile: "This is not a concept. For Friends.com's projects, the order of loading has changed. The content of the first screen presented to the user is loaded first, and the overall loading time has not changed. It is just the impression given to the user that it seems to be loading. Time moves faster."
Zhou Buqi wanted to understand something, "Is it possible that after loading the content of the first screen, users can only watch it, but can't use it? You have to wait until all the pages are loaded before you can really use it?"
Zhang Yiming said, "Yes, that's right."
In this mode, when users open Friends.com, they can only browse and watch in the first two seconds. Because the page is still loading. After everything is loaded, the user can post a status, reply to a message, and other interactive operations.
Zhou Buqi frowned, "Is it possible to further upgrade, the content of the first screen is loaded, and the user can operate the content of the first screen. The operation and loading do not affect each other. Isn't it distributed? Parallel together Ah, don't you delay?"
Zhang Yiming was silent for a while, "Theoretically speaking, it can be done. But at present, it is technically difficult."
"Can't do it?"
"Parallel loading of different functional modules of the webpage is actually a loading module. Interactive and loading are two contradictory modules, and there is a sequence relationship. If these two modules are parallelized, the underlying framework of the webpage needs to be modified. The technical difficulty is high, and the engineering volume is also large.”
"How long will it take to make it?"
Zhang Yiming said: "I think it has to be done step by step. It is the first time for everyone to come into contact with the application of distributed algorithms. Start with the simple ones, and then go to the more difficult ones. First of all, there must be financial guarantees."
Zhou Buqi laughed and said, "There is something in your words!"
Zhang Yiming said with emotion: "I think these three projects are very important, and it is necessary to start them as soon as possible. Distributed technology is the world's cutting-edge technology, but we have made it. The engineers are very excited and eager to try. I don't think it can be delayed too much. It took a long time to cool down everyone's enthusiasm."
"Isn't it just asking for money?"
"Of course, I respect the company's decision. Financing is imminent, and it is indeed not suitable for large expenditures."
Zhou Buqi pondered for a while and asked, "How much do these three projects cost?"
Zhang Yiming said: "20 million is enough for Friends.com, and Wang Haoyang also approved it. The browser project needs 30 million, and the micro-search project needs 50 million. The latter two are not approved."
Zhou Buqi laughed and said: "This old Wang approved a project with the least cost to fill the appetite of the technical committee. It's really... okay, I'll call him right away and ask him to pay immediately! 100 million is just A small goal, I'm not short of this money!"
You'll Also Like
-
I am the zombie king of the apocalypse
Chapter 2054 27 minute ago -
Saint Ancestor of All Demons
Chapter 7190 27 minute ago -
Pick up an assassin as a wife
Chapter 10611 27 minute ago -
The Secret of the Chaotic Heavenly Emperor
Chapter 6418 27 minute ago -
Merchant of the Underworld
Chapter 2112 27 minute ago -
Superb Female Ghost Shelter
Chapter 2216 27 minute ago -
Sword Emperor of Chaos
Chapter 2429 27 minute ago -
Reborn in the Eighties as a Housewife with a Space
Chapter 4690 27 minute ago -
Divine Wish System for Total Domain Domination (All-field Godly Wish System)
Chapter 2790 27 minute ago -
Nine Star Divine Dragon Technique
Chapter 4139 27 minute ago