A method and system for accessing web pages

By introducing a resource management mechanism for sub-rendering servers and a main rendering server, the performance problem of the source server when handling diverse terminal personalized needs is solved, and efficient web page rendering and resource scheduling are achieved.

CN115858979BActive Publication Date: 2026-03-31HEBEI TUKUN INFORMATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-06
Publication Date
2026-03-31

AI Technical Summary

Technical Problem

When the source server handles the personalized needs and diverse formats of different terminals, its performance is significantly affected, resulting in a decrease in efficiency.

Method used

By introducing sub-rendering servers, resources are allocated through the main rendering server, and web pages are rendered on the sub-rendering servers according to individual needs. The amount of physical resources is adjusted based on terminal activity and resource idle rate to reduce the burden on the source server.

Benefits of technology

It effectively reduces the impact of personalized requirements on the performance of source servers and terminals, improves resource utilization efficiency, and meets the personalized needs of different terminals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115858979B_ABST
    Figure CN115858979B_ABST
Patent Text Reader

Abstract

This application relates to the Internet field, and more particularly to a webpage access method and system, comprising: a source server receiving a webpage access request sent by a terminal, and parsing the webpage access request to obtain a set of personalized requirements and the model of the terminal; the source server organizing webpage data according to the webpage access request, and sending the webpage data and the set of personalized requirements to a sub-rendering server serving the terminal model; the sub-rendering server rendering the webpage data according to the set of personalized requirements to generate the requested webpage; and the sub-rendering server sending the rendered webpage to the terminal for display. This application reduces the impact of personalized requirements and terminal type on the performance of the source server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the Internet field, and more particularly to a webpage access method and system. Background Technology

[0002] The Internet has wide applications in daily life, and users can request web page data from origin servers through their terminals. However, because users often have personalized needs for the web page data displayed on their terminals, and because users use different types of terminals, different styles of web page formats are usually set in the origin server to meet different personalized needs and requests from different terminals.

[0003] With the rapid growth of terminal types and the continuous improvement of personalized services, the number of web page styles that need to be set on the origin server has also increased explosively. Setting a large number of web page styles on the origin server will inevitably affect the performance of the origin server.

[0004] Furthermore, the origin server will search for a webpage format style that matches the corresponding personalized needs and terminal type based on the terminal's request, and then send the webpage data along with the webpage format style to the terminal for rendering and display in the terminal's browser. Searching for the webpage format style on the origin server will inevitably affect the performance of the origin server.

[0005] Therefore, how to reduce the impact of personalized needs and terminal types on the performance of the source server is a technical problem that urgently needs to be solved by those skilled in the art. Summary of the Invention

[0006] This application provides a webpage access method and system to reduce the impact of personalized needs and terminal types on the performance of the source server.

[0007] To solve the above-mentioned technical problems, this application provides the following technical solution:

[0008] A webpage access method includes the following steps: Step S110: The source server receives a webpage access request sent by a terminal and parses the webpage access request to obtain a set of personalized requirements and the model of the terminal; Step S120: The source server organizes webpage data according to the webpage access request and sends the webpage data and the set of personalized requirements to a sub-rendering server serving the terminal model; Step S130: The sub-rendering server renders the webpage data according to the set of personalized requirements to generate the requested webpage; Step S140: The sub-rendering server sends the rendered webpage to the terminal and displays it on the terminal.

[0009] In the webpage access method described above, preferably, the terminal generates a webpage access request, wherein the webpage access request includes the model of the terminal that sent the webpage access request and the set of personalized requirements required by the user.

[0010] In the webpage access method described above, preferably, each time webpage data and terminal model are received from the source server, the activity level corresponding to the terminal model is also recorded; the physical resource idle rate of the sub-rendering server is calculated, and the physical resource quantity of the sub-rendering server is adjusted based on the resource idle rate and the activity level recorded in the data statistics area.

[0011] In the webpage access method described above, preferably, a comprehensive evaluation index of personalized needs for the webpage access request is obtained based on a set of personalized needs; the calculated comprehensive evaluation index of personalized needs for the webpage access request is compared with the comprehensive evaluation value of each personalized webpage format stored in the sub-rendering server, and the personalized webpage format with the smallest difference is selected; the webpage data is rendered in the selected personalized webpage format to obtain the webpage requested by the terminal.

[0012] In the webpage access method described above, preferably, the sub-rendering server sends the rendered webpage to the terminal that issued the webpage access request, and the terminal displays the webpage in its browser after receiving it.

[0013] A web page access system includes: a terminal, a source server, and a main rendering server, wherein the main rendering server includes multiple sub-rendering servers; the source server receives web page access requests sent by the terminal and parses the web page access requests to obtain a set of personalized requirements and the model of the terminal; the source server organizes web page data according to the web page access requests and sends the web page data and the set of personalized requirements to the sub-rendering servers serving the terminal model; the sub-rendering servers render the web page data according to the set of personalized requirements to generate the requested web page; the sub-rendering servers send the rendered web page to the terminal and display it on the terminal.

[0014] In the web page access system described above, preferably, the terminal generates a web page access request, wherein the web page access request includes the model of the terminal that sent the web page access request and the set of personalized requirements required by the user.

[0015] In the web page access system described above, preferably, each time the main rendering server receives web page data and terminal model from the source server, it records the activity level corresponding to the terminal model; calculates the physical resource idle rate of the sub-rendering server; and adjusts the physical resource quantity of the sub-rendering server based on the resource idle rate and the activity level recorded in the data statistics area.

[0016] In the webpage access system described above, preferably, the sub-rendering server obtains a comprehensive evaluation index of personalized needs for the webpage access request based on a set of personalized needs; and compares the calculated comprehensive evaluation index of personalized needs for the webpage access request with the comprehensive evaluation value of each personalized webpage format stored in the sub-rendering server, selecting the personalized webpage format with the smallest difference; and renders the webpage data in the selected personalized webpage format to obtain the webpage requested by the terminal.

[0017] In the web page access system described above, preferably, the sub-rendering server sends the rendered web page to the terminal that issued the web page access request, and the terminal displays the web page in its browser after receiving it.

[0018] Compared to the aforementioned background technology, since the web page access method and access system provided in this application can render web pages according to personalized needs through sub-rendering servers, both the source server and the terminal avoid the impact of personalized needs on their performance. Furthermore, since the sub-rendering server that provides personalized needs can adjust resources, it can meet the requirements of different types of terminals. The main rendering server can independently provide personalized value-added services to the source server and the terminal, reducing the burden on the source server and the terminal. Attached Figure Description

[0019] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For those skilled in the art, other drawings can be obtained based on these drawings.

[0020] Figure 1 This is a flowchart of the webpage access method provided in the embodiments of this application;

[0021] Figure 2 This is a schematic diagram of the web page access system provided in the embodiments of this application. Detailed Implementation

[0022] Embodiments of the present invention are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and should not be construed as limiting the present invention.

[0023] Example 1

[0024] Please see Figure 1 , Figure 1 This is a flowchart of a webpage access method provided in an embodiment of this application.

[0025] This application provides a method for accessing a webpage, including the following steps:

[0026] Step S110: The source server receives the web page access request sent by the terminal and parses the web page access request to obtain the set of personalized requirements and the model of the terminal.

[0027] The terminal generates a webpage access request, which includes the model of the terminal sending the request and the user's desired set of personalized requirements; the terminal model is B. j Let j = 1, 2, ..., j, ..., m, and the set of personalized needs be A = {A1, A2, ..., A...}. i A n A1 represents the first personalized requirement, and A2 represents the second personalized requirement. i For the i-th personalized requirement, A n For the nth personalized request, for example: A1 is the personalized request for an animated image on the webpage, A2 is the personalized request for the font size on the webpage, A... i Customizing the display style of webpage titles, A n To personalize web pages by adding background music.

[0028] The terminal sends the generated webpage access request to the origin server. After receiving the webpage access request, the origin server parses the webpage access request and obtains the model B of the terminal that sent the webpage access request. j And personalized needs combined with A.

[0029] Step S120: The source server organizes web page data according to the web page access request, and sends the web page data and personalized request set to the sub-rendering server serving the terminal of that model.

[0030] The origin server organizes the corresponding web page data based on the received web page access request; that is, the web page data required by the origin server to organize the web page access request. After the web page data is organized, it sends the web page data and the parsed personalized request set A to the service provider B for that model. j On the terminal's sub-rendering server, the webpage will be rendered based on the personalized requirements in the personalized requirements set A.

[0031] In this context, a sub-rendering server is a virtual server allocated by the main rendering server. Therefore, the main rendering server includes multiple sub-rendering servers, and these multiple sub-rendering servers are grouped together to form a sub-rendering server set C = {C1, C2, ..., C...} j …C mC1 is the first sub-rendering server, C2 is the second sub-rendering server, and C... j For the j-th sub-rendering server, C m This is the m-th sub-rendering server. Each sub-rendering server serves a specific type of terminal. Specifically, sub-rendering server C1 renders web pages for requests from terminal B1, sub-rendering server C2 renders web pages for requests from terminal B2, and so on. j For model B j The terminal sends a webpage access request, and the sub-rendering server C renders the webpage. m For model B m The terminal sends a webpage access request and then renders the webpage.

[0032] However, as terminals continue to develop and new models of terminals emerge, the usage of new models of terminals gradually increases, while older models of terminals are gradually phased out and their usage gradually decreases. Therefore, the number of terminals of a certain model served by each sub-rendering server will change. Consequently, the main rendering server will adjust the physical resource allocation of the sub-rendering servers based on the terminal model included in the web page access request.

[0033] Specifically, the main rendering server has a data statistics area that records every webpage data received from the source server and the terminal's model B. j At that time, the activity level α corresponding to the model of the terminal is recorded in the data statistics area, or the activity level α corresponding to the model of the terminal is updated in the data statistics area, i.e., α+1, where the activity level α is the activity level within a predetermined time interval, that is, the activity level α will be reset within the predetermined time interval.

[0034] Furthermore, the physical resource idle rate β of the sub-rendering server is calculated. Based on the resource idle rate β and the activity level α recorded in the data statistics area, the physical resource quantity of the sub-rendering server is adjusted, such as the amount of memory, hard disk and CPU. This allows the amount of memory, hard disk and CPU to be released or increased based on the original amount of physical resources.

[0035] Calculate the physical resource idle rate β of the sub-rendering server. If the sub-rendering server is running, the physical resource idle rate β is calculated using formula (1). If the sub-rendering server is in a stopped state, the physical resource idle rate β is calculated using formula (2). Specifically, u1 is the current memory occupancy rate, and U1 is the influence factor of memory occupancy rate on physical resource idle rate β; u2 is the current CPU utilization rate, and U2 is the influence factor of CPU utilization rate on physical resource idle rate β; u3 is the current hard disk occupancy rate, and U3 is the influence factor of hard disk occupancy rate on physical resource idle rate β; d(y, δ) is u y Its corresponding standard physical resource utilization rate u yδ The gap between them.

[0036] Based on the above, according to the formula Calculate the amount of each physical resource required by the sub-rendering server, where D x E represents the amount of physical resources required by the sub-rendering server for the xth physical resource. x Let α be the activity level, α′ be the activity level, and α′ be the predetermined standard activity level. x The xth predetermined standard physical resource quantity corresponding to the predetermined standard activity level α′.

[0037] After calculating the amount of physical resources required by each sub-rendering server, the main rendering server allocates physical resources to the sub-rendering server so that the sub-rendering server can fully serve a certain type of terminal and make fuller use of the resources of the main rendering server.

[0038] Step S130: The sub-rendering server renders the webpage data according to the personalized requirement set to generate the requested webpage.

[0039] Based on the personalized needs set A, the comprehensive evaluation index of personalized needs for this webpage access request is obtained. Among them, A′ i For A i The corresponding preset standard value, ||A i -A′ i || 2 For A i With A′ i The difference between them, ||A k -A l || 2 For any two personalized needs A in set A k and A l The gap between them.

[0040] The comprehensive evaluation index G of the personalized needs of the web page access request is calculated and compared with the comprehensive evaluation value of each personalized web page format stored in the sub-rendering server. The personalized web page format with the smallest difference between the calculated comprehensive evaluation index G of the personalized needs of the web page access request and the one stored in the sub-rendering server is selected. The received web page data is then rendered in the selected personalized web page format to obtain the web page requested by the terminal.

[0041] Step S140: The sub-rendering server sends the rendered webpage to the terminal and displays it on the terminal.

[0042] The sub-rendering server sends the rendered webpage to the terminal that made the webpage access request. After receiving the webpage, the terminal displays it in its browser.

[0043] Example 2

[0044] Please see Figure 2 , Figure 2 This is a schematic diagram of the web page access system 200 provided in the embodiments of this application.

[0045] This application provides a web page access system, including: a terminal 210, a source server 220, and a main rendering server 230, wherein the main rendering server 230 includes multiple sub-rendering servers 231.

[0046] The source server 220 receives the web page access request sent by the terminal 210 and parses the web page access request to obtain the set of personalized requirements and the model of the terminal 210.

[0047] Terminal 210 generates a webpage access request, which includes the model of terminal 210 that sent the request and the user's desired set of personalized requirements; the model of terminal 210 is B. j Let j = 1, 2, ..., j, ..., m, and the set of personalized needs be A = {A1, A2, ..., A...}. i A n A1 represents the first personalized requirement, and A2 represents the second personalized requirement. i For the i-th personalized requirement, A n For the nth personalized request, for example: A1 is the personalized request for an animated image on the webpage, A2 is the personalized request for the font size on the webpage, A... i Customizing the display style of webpage titles, A n To personalize web pages by adding background music.

[0048] Terminal 210 sends the generated webpage access request to source server 220. After receiving the webpage access request, source server 220 parses the webpage access request and obtains the model B of terminal 210 that sent the webpage access request. j And personalized needs combined with A.

[0049] The source server 220 organizes web page data according to the web page access request, and sends the web page data and personalized request set to the sub-rendering server 231 serving the terminal 210 of this model;

[0050] The source server 220 organizes the corresponding web page data based on the received web page access request. That is, the source server 220 organizes the web page data required to organize the web page access request. After the web page data is organized, it sends the web page data and the parsed personalized request set A to the service provider B for that model. j On the sub-rendering server 231 of the terminal 210, the webpage will be rendered according to the personalized requirements in the personalized requirements set A.

[0051] Among them, the sub-rendering server 231 is a virtual server allocated by the main rendering server 230. Therefore, the main rendering server 230 includes multiple sub-rendering servers 231, and the multiple sub-rendering servers 231 are grouped together to form a sub-rendering server set C = {C1, C2, ..., C...} j …C m C1 is the first sub-rendering server, C2 is the second sub-rendering server, and C... j For the j-th sub-rendering server, C m This is the m-th sub-rendering server. Each sub-rendering server serves a specific type of terminal. Specifically, sub-rendering server C1 renders web pages for requests from terminal B1, sub-rendering server C2 renders web pages for requests from terminal B2, and so on. j For model B j The terminal sends a webpage access request, and the sub-rendering server C renders the webpage. m For model B m The terminal sends a webpage access request and then renders the webpage.

[0052] However, as terminals continue to develop and new models of terminals emerge, the usage of new models of terminals gradually increases, while older models of terminals are gradually phased out and their usage gradually decreases. Therefore, the number of terminals of a certain model served by each sub-rendering server will change. Consequently, the main rendering server will adjust the physical resource allocation of the sub-rendering servers based on the terminal model included in the web page access request.

[0053] Specifically, the main rendering server has a data statistics area. Each time the main rendering server receives webpage data from the source server and the terminal model B... j At that time, the activity level α corresponding to the model of the terminal is recorded in the data statistics area, or the activity level α corresponding to the model of the terminal is updated in the data statistics area, i.e., α+1, where the activity level α is the activity level within a predetermined time interval, that is, the activity level α will be reset within the predetermined time interval.

[0054] Furthermore, the physical resource idle rate β of the sub-rendering server is calculated. Based on the resource idle rate β and the activity level α recorded in the data statistics area, the physical resource quantity of the sub-rendering server is adjusted, such as the amount of memory, hard disk and CPU. This allows the amount of memory, hard disk and CPU to be released or increased based on the original amount of physical resources.

[0055] Calculate the physical resource idle rate β of the sub-rendering server. If the sub-rendering server is running, the physical resource idle rate β is calculated using formula (1). If the sub-rendering server is in a stopped state, the physical resource idle rate β is calculated using formula (2). Specifically, u1 is the current memory occupancy rate, and U1 is the influence factor of memory occupancy rate on physical resource idle rate β; u2 is the current CPU utilization rate, and U2 is the influence factor of CPU utilization rate on physical resource idle rate β; u3 is the current hard disk occupancy rate, and U3 is the influence factor of hard disk occupancy rate on physical resource idle rate β; d(y, δ) is u y Its corresponding standard physical resource utilization rate u yδ The gap between them.

[0056] Based on the above, according to the formula Calculate the amount of each physical resource required by the sub-rendering server, where D x E represents the amount of physical resources required by the sub-rendering server for the xth physical resource. x Let α be the activity level, α′ be the activity level, and α′ be the predetermined standard activity level. x The xth predetermined standard physical resource quantity corresponding to the predetermined standard activity level α′.

[0057] After calculating the amount of physical resources required by each sub-rendering server 231, the main rendering server 230 allocates physical resources to the sub-rendering server 231 so that the sub-rendering server 231 can fully serve a type of terminal 210 and make fuller use of the resources of the main rendering server 230.

[0058] Sub-rendering server 231 renders web page data based on the personalized requirement set to generate the requested web page.

[0059] Based on the personalized needs set A, the comprehensive evaluation index of personalized needs for this webpage access request is obtained. Among them, A′ i For A i The corresponding preset standard value, ||A i -A′ i || 2 For A i With A′ i The difference between them, ||A k -A l || 2 For any two personalized needs A in set A k and A l The gap between them.

[0060] The comprehensive evaluation index G of the personalized needs of the web page access request is calculated and compared with the comprehensive evaluation value of each personalized web page format stored in the sub-rendering server. The personalized web page format with the smallest difference between the calculated comprehensive evaluation index G of the personalized needs of the web page access request and the one stored in the sub-rendering server is selected. The received web page data is then rendered in the selected personalized web page format to obtain the web page requested by the terminal.

[0061] Sub-rendering server 231 sends the rendered webpage to terminal 210, where it is displayed.

[0062] The sub-rendering server 231 sends the rendered webpage to the terminal 210 that issued the webpage access request. After receiving the webpage, the terminal 210 displays it in its browser.

[0063] Since this application renders web pages based on personalized needs through sub-rendering servers, the performance of both the source server and the terminal is not affected by personalized needs. Furthermore, since the sub-rendering servers that provide personalized needs can adjust resources, they can meet the requirements of different types of terminals. The main rendering server can independently provide personalized value-added services to the source server and the terminal, reducing the burden on the source server and the terminal.

[0064] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the invention can be implemented in other specific forms without departing from its spirit or essential characteristics. Therefore, the embodiments should be considered in all respects as exemplary and non-limiting, and the scope of the invention is defined by the appended claims rather than the foregoing description. Thus, all variations falling within the meaning and scope of equivalents of the claims are intended to be included within the present invention. No reference numerals in the claims should be construed as limiting the scope of the claims.

[0065] Furthermore, it should be understood that although this specification describes embodiments, not every embodiment contains only one independent technical solution. This narrative style is merely for clarity. Those skilled in the art should consider the specification as a whole, and the technical solutions in each embodiment can also be appropriately combined to form other embodiments that can be understood by those skilled in the art.

Claims

1. A method of accessing a web page, characterized by, The method comprises the following steps: Step S110, the source server receives the webpage access request sent by the terminal and parses the webpage access request to obtain the personalized demand set and the model of the terminal; Step S120, the source server organizes webpage data according to the webpage access request and sends the webpage data and the personalized demand set to a sub-rendering server serving the terminal of the model; Upon receiving the webpage data and the model of the terminal sent by the source server, the active degree corresponding to the model of the terminal is recorded, the physical resource idle rate of the sub-rendering server is calculated, and the physical resource amount of the sub-rendering server is adjusted according to the resource idle rate and the active degree recorded by the data statistical area; Step S130, the sub-rendering server performs webpage rendering on the webpage data according to the personalized demand set to generate the requested webpage; Step S140, the sub-rendering server sends the rendered webpage to the terminal and displays the webpage on the terminal.

2. The web page access method of claim 1, wherein, The terminal generates a webpage access request, wherein the webpage access request contains the model of the terminal sending the webpage access request and the personalized demand set required by the user.

3. The web page access method according to claim 1 or 2, characterized by, According to the personalized demand set, the comprehensive evaluation index of the personalized demand of the webpage access request is obtained; The calculated comprehensive evaluation index of the personalized demand of the webpage access request is compared with the comprehensive evaluation value of each personalized webpage format stored in the sub-rendering server, and the personalized webpage format with the smallest gap is selected; The webpage data is rendered in the selected personalized webpage format to obtain the webpage requested by the terminal.

4. The web page access method according to claim 1 or 2, characterized by, The sub-rendering server sends the rendered webpage to the terminal sending the webpage access request, and the terminal displays the webpage in the browser after receiving the webpage.

5. A web page access system characterized by comprising: The method comprises: a terminal, a source server and a total rendering server, wherein the total rendering server comprises a plurality of sub-rendering servers; The source server receives the webpage access request sent by the terminal and parses the webpage access request to obtain the personalized demand set and the model of the terminal; The source server organizes webpage data according to the webpage access request and sends the webpage data and the personalized demand set to a sub-rendering server serving the terminal of the model; Upon receiving the webpage data and the model of the terminal sent by the source server, the total rendering server records the active degree corresponding to the model of the terminal, calculates the physical resource idle rate of the sub-rendering server, and adjusts the physical resource amount of the sub-rendering server according to the resource idle rate and the active degree recorded by the data statistical area; The sub-rendering server performs webpage rendering on the webpage data according to the personalized demand set to generate the requested webpage; The sub-rendering server sends the rendered webpage to the terminal and displays the webpage on the terminal.

6. The web page access system of claim 5, wherein, The terminal generates a webpage access request, wherein the webpage access request contains the model of the terminal sending the webpage access request and the personalized demand set required by the user.

7. The web page access system according to claim 5 or 6, wherein According to the personalized demand set, the comprehensive evaluation index of the personalized demand of the webpage access request is obtained; The calculated comprehensive evaluation index of the personalized demand of the webpage access request is compared with the comprehensive evaluation value of each personalized webpage format stored in the sub-rendering server, and the personalized webpage format with the smallest gap is selected; The web page data is rendered in the selected personalized web page format to obtain a web page requested by the terminal.

8. The web page access system according to claim 5 or 6, wherein The sub-rendering server sends the rendered web page to the terminal which issues the web page access request, and the terminal displays the received web page in a browser.

Citation Information

Patent Citations

  • Webpage file sending method, webpage rendering method and device and webpage rendering system

    CN106897336A