Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the function of BigPipe?

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains the "what is the role of BigPipe", the content of the explanation is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "what is the role of BigPipe" bar!

BigPipe is a redesigned basic dynamic web service system. The general idea is to break down the web page into small pieces called Pagelets, and then set up pipes through the Web server and browser and manage their operation at different stages. This is a pipelined execution process similar to that of most modern microprocessors: multiple instruction pipelines pass through different processor execution units to achieve optimal performance. Although BigPipe is a redesign of the basic process of the existing service network, it does not need to change the existing web browser or server, it is implemented entirely using PHP and JavaScript.

BigPipe motivation

In order to better understand BigPipe, we need to understand the existing dynamic Web service system, its history can be traced back to the early days of the World wide Web, but it has not changed much compared to the early days. Modern websites are much more dynamic and interactive than they were 10 years ago, but the traditional web service system has long been unable to keep up with the requirements of today's Internet speed. In traditional mode, the life cycle of a user request is as follows:

1. The browser sends a HTTP request to the Web server.

The 2.Web server parses the request, then reads the data storage layer, formulates an HTML file, and sends it to the client with an HTTP response.

The 3.HTTP response is sent to the browser over the Internet.

4. The browser parses the response from the Web server, builds a DOM tree using the HTML file, and downloads the referenced CSS and JavaScript files.

After the 5.CSS resources are downloaded, the browser parses them and applies them to the DOM tree.

After the 6.JavaScript resources are downloaded, the browser parses them and executes them.

The role of BigPipe

The traditional mode is very inefficient in modern websites, because the operation sequence of many systems cannot overlap each other. Some optimization techniques, such as delayed loading JavaScript and parallel download, have been widely adopted by the network community to overcome some limitations. However, these optimizations rarely involve bottlenecks caused by the execution order of Web servers and browsers. When the Web server is busy generating a page, the browser is idle, wasting its cycle doing nothing. When the Web server finishes generating the page and sends it to the browser, the browser becomes a performance bottleneck and the Web server cannot help it. By overlapping the generation time of the Web server and the rendering time of the browser, we can not only reduce the final time delay, but also make the web page display the user's visible area to the user earlier, thus greatly reducing the user's perception of the delay.

Thank you for your reading, the above is the content of "what is the role of BigPipe", after the study of this article, I believe you have a deeper understanding of the role of BigPipe, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report