Page data processing method and device and storage medium
By acquiring terminal performance and user information, deciding the page rendering method, solving the problem of difficulty in switching rendering modes in the prior art, and achieving efficient resource utilization and user experience improvement.
Patent Information
- Application Number
- CN202310658777.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-05
- Publication Date
- 2024-12-06
AI Technical Summary
When facing large-scale page rendering scenarios, the existing technology cannot adaptively switch different rendering modes, resulting in low server resource utilization and inability to comprehensively consider actual needs, which brings huge data processing pressure to the server.
By obtaining the current performance information and user information of the terminal, the applicable page rendering method is determined. If the amount of rendering resources is less than or equal to the preset threshold, the rendering process will be performed on the server side; if it is greater than the threshold, the page source data will be returned to the terminal for Rendering, combining terminal performance and user characteristics to select appropriate rendering modes, making full use of terminal and server resources.
It achieves balancing server overhead and user experience in different scenarios, improving resource utilization, reducing server pressure, and improving rendering efficiency.
Smart Images

Figure CN119089069A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of information processing technology, and in particular to a page data processing method, device and storage medium. Background Art
[0002] Page rendering is the process of outputting visualization results based on the resources of the web page corresponding to the URL (Uniform Resource Locator) of a web page. Page rendering is a commonly used technical means in front-end technology. With the development of network technology, web resources are becoming more and more abundant and diverse. While meeting user needs, a large number of page rendering processes also bring huge resource consumption to the server and client.
[0003] Common technical solutions to improve page rendering performance include server-side rendering, client-side rendering, offline rendering, etc. These technologies cannot be adaptively switched for different usage scenarios in actual scenarios. When facing large-scale page rendering scenarios, they cannot comprehensively consider actual needs, often bringing huge data processing pressure to the server and low resource utilization. Summary of the invention
[0004] The main purpose of the embodiments of the present application is to provide a page data processing method, device and storage medium, which realizes timely selection of appropriate page rendering mode based on terminal performance, user characteristics and its own rendering overhead, fully utilizes the resource performance of the terminal and server, achieves the effect of balancing server overhead and user experience, and improves resource utilization.
[0005] In a first aspect, an embodiment of the present application provides a page data processing method, which is applied to a source server, and the method includes: responding to a page request from a terminal, obtaining page source data specified by the page request and current performance information of the terminal; determining the amount of rendering resources required for the page source data based on user information carried in the page request; if the amount of rendering resources is less than or equal to a preset resource amount threshold, deciding a page rendering method applicable to the page source data based on the current performance information and the user information, and returning the corresponding page data to the terminal.
[0006] In one embodiment, determining the amount of rendering resources required for the page source data based on the user information includes: determining an interest category tag to which the user belongs based on the user information, determining target source data that needs to be rendered in the page source data based on the interest category tag, and determining the amount of rendering resources required for the target source data as the amount of rendering resources required for the page source data.
[0007] In one embodiment, if the interest category tag to which the user belongs includes a tag of not interested in live broadcast; determining the target source data that needs to be rendered in the page source data based on the category tag includes: replacing the live broadcast component in the page source data with the source data of a first preset image, and generating the target source data; and / or, if the category tag to which the user belongs includes a tag of not interested in video; determining the target source data that needs to be rendered in the page source data based on the category tag includes: replacing the video source data in the page source data with the source data of a second preset image, and generating the target source data.
[0008] In one embodiment, determining a page rendering method applicable to the page source data based on the current performance information and the user information, and returning the corresponding page data to the terminal, includes: judging whether the current performance value of the terminal is less than a first performance threshold based on the current performance information; if the current performance value of the terminal is less than the first performance threshold, rendering the page source data according to the user information, generating rendered full page data, and returning the full page data to the terminal.
[0009] In one embodiment, the page source data is rendered according to the user information to generate a rendered full page of data, including: determining an interest category tag to which the user belongs according to the user information; determining target source data to be rendered in the page source data according to the interest category tag, rendering the target source data, and generating the rendered full page of data; and / or determining a data block with a preset mark in the page source data as the target source data, rendering the target source data, and generating the rendered full page of data.
[0010] In one embodiment, the method of determining a page rendering method applicable to the page source data based on the current performance information and the user information, and returning the corresponding page data to the terminal, also includes: if the current performance value of the terminal is greater than or equal to the first performance threshold, determining whether the current performance value of the terminal is less than a second performance threshold, and the second performance threshold is greater than the first performance threshold; if the current performance value of the terminal is less than the second performance threshold, rendering the first source data in the page source data that needs to be displayed on the terminal home screen, generating rendered home screen page data, and returning the home screen page data and the second source data in the page source data that does not need to be displayed on the terminal home screen to the terminal.
[0011] In one embodiment, determining a page rendering method applicable to the page source data based on the current performance information and the user information, and returning the corresponding page data to the terminal, also includes: if the current performance value of the terminal is greater than or equal to the second performance threshold, returning the page source data to the terminal to instruct the terminal to render the page source data.
[0012] In one embodiment, if the rendering resource amount is greater than a preset resource amount threshold, the page source data is returned to the terminal to instruct the terminal to perform rendering processing on the page source data.
[0013] In one embodiment, the page request includes a request to access a product data page of an e-commerce platform.
[0014] In a second aspect, an embodiment of the present application provides a page data processing method, which is applied to a content distribution network, and the method includes: in response to a page request of a terminal, obtaining current performance information and a network quality level of the terminal; if the network quality level is greater than a preset level, sending the page request and the current performance information of the terminal to a source server, so that the source server decides a page rendering method applicable to the page source data based on the page request and the current performance information of the terminal, and returns the corresponding page data; if the network quality level is less than or equal to the preset level, sending a data cache request regarding the page request to the source server; receiving target page data that needs to be cached returned by the source server, caching the target page data; and sending the target page data to the terminal.
[0015] In the third aspect, an embodiment of the present application provides a page data processing method, which is applied to a terminal, including: in response to a user's query request for a target page, sending a page request to a source server, the page request carrying current performance information and user information of the terminal, so that the source server decides a page rendering method applicable to the page source data based on the page request and the current performance information of the terminal, and returns the corresponding page data; receiving the page data returned by the source server; if the returned page data includes the page source data specified by the page request, displaying the page source data after local rendering processing; if the returned page data includes rendered data, displaying the rendered data.
[0016] In a fourth aspect, an embodiment of the present application provides a page data processing device, including:
[0017] An acquisition module, configured to respond to a page request from a terminal and acquire page source data specified by the page request and current performance information of the terminal;
[0018] A determination module, which determines the amount of rendering resources required for the page source data according to the user information carried in the page request;
[0019] A decision module is used to decide a page rendering method applicable to the page source data according to the current performance information and the user information if the rendering resource amount is less than or equal to a preset resource amount threshold, and return the corresponding page data to the terminal.
[0020] In one embodiment, the determination module is used to determine the interest category tag to which the user belongs based on the user information, determine the target source data that needs to be rendered in the page source data based on the interest category tag, and determine the amount of rendering resources required by the target source data as the amount of rendering resources required by the page source data.
[0021] In one embodiment, if the interest category tag to which the user belongs includes a tag of not interested in live broadcast; the determination module is used to replace the live broadcast component in the page source data with the source data of the first preset image to generate the target source data; and / or, if the category tag to which the user belongs includes a tag of not interested in video; the determination module is used to replace the video source data in the page source data with the source data of the second preset image to generate the target source data.
[0022] In one embodiment, the decision module is used to determine whether the current performance value of the terminal is less than a first performance threshold based on the current performance information; if the current performance value of the terminal is less than the first performance threshold, the page source data is rendered according to the user information to generate rendered full page data, and the full page data is returned to the terminal.
[0023] In one embodiment, the decision module is specifically used to determine the interest category label to which the user belongs based on the user information; determine the target source data that needs to be rendered in the page source data based on the interest category label, render the target source data, and generate the rendered full page data; and / or, the decision module is specifically used to determine the data block with a preset mark in the page source data as the target source data, render the target source data, and generate the rendered full page data.
[0024] In one embodiment, the decision module is also used to determine whether the current performance value of the terminal is less than a second performance threshold if the current performance value of the terminal is greater than or equal to the first performance threshold, and the second performance threshold is greater than the first performance threshold; if the current performance value of the terminal is less than the second performance threshold, the first source data in the page source data that needs to be displayed on the terminal home screen is rendered to generate rendered home screen page data, and the home screen page data and the second source data in the page source data that does not need to be displayed on the terminal home screen are returned to the terminal.
[0025] In one embodiment, the decision module is further used to return the page source data to the terminal if the current performance value of the terminal is greater than or equal to the second performance threshold, so as to instruct the terminal to render the page source data.
[0026] In one embodiment, it further includes: a returning module, which is used to return the page source data to the terminal if the rendering resource amount is greater than a preset resource amount threshold, so as to instruct the terminal to render the page source data.
[0027] In one embodiment, the page request includes a request to access a product data page of an e-commerce platform.
[0028] In a fifth aspect, an embodiment of the present application provides a page data processing system, including: a source server, a content distribution network and a terminal, wherein:
[0029] The terminal is used to respond to a user's query request for a target page by sending a page request to a source server through the content distribution network, wherein the page request carries current performance information and user information of the terminal;
[0030] The content distribution network is used to respond to a page request from a terminal, obtain current performance information and a network quality level of the terminal, and if the network quality level is greater than a preset level, send the page request and the current performance information of the terminal to a source server;
[0031] The source server is used to determine the page rendering method applicable to the page source data and return the corresponding page data;
[0032] The terminal is also used to receive page data returned by the source server through the content distribution network; if the returned page data includes page source data specified by the page request, the page source data is displayed after being rendered locally; if the returned page data includes rendered data, the rendered data is displayed.
[0033] In a sixth aspect, an embodiment of the present application provides an electronic device, including:
[0034] at least one processor; and
[0035] a memory communicatively coupled to the at least one processor;
[0036] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the electronic device to execute the method described in any one of the above aspects.
[0037] In a seventh aspect, an embodiment of the present application provides a cloud device, including:
[0038] at least one processor; and
[0039] a memory communicatively coupled to the at least one processor;
[0040] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the cloud device to execute the method described in any one of the above aspects.
[0041] In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the method described in any one of the above aspects is implemented.
[0042] In a ninth aspect, an embodiment of the present application provides a computer program product, including a computer program, which implements the method described in any of the above aspects when executed by a processor.
[0043] The page data processing method, device and storage medium provided in the embodiments of the present application determine the amount of rendering resources required for the current page request by combining user information. If the required amount of rendering resources is less than or equal to the preset resource amount threshold, it means that the rendering overhead is not too large. The server can then decide which page rendering method to use to process the page source data based on the performance of the terminal and the classification of user information. In this way, the server selects the appropriate page rendering mode in a timely manner based on the terminal performance, user characteristics and its own rendering overhead, fully utilizing the resource performance of the terminal and the server, achieving a balanced effect between server overhead and user experience, and improving resource utilization. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application. Obviously, the drawings described below are some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor.
[0045] Figure 1 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0046] Figure 2 A schematic diagram of an application scenario of a page data processing solution provided in an embodiment of the present application;
[0047] Figure 3 A schematic diagram of an information transmission architecture of a page data processing system provided in an embodiment of the present application;
[0048] Figure 4 A schematic diagram of a flow chart of a page data processing method provided in an embodiment of the present application;
[0049] Figure 5 A schematic diagram of a specific page rendering scenario provided in an embodiment of the present application;
[0050] Figure 6 A schematic diagram of a flow chart of a page data processing method provided in an embodiment of the present application;
[0051] Figure 7 A schematic diagram of a flow chart of a page data processing method provided in an embodiment of the present application;
[0052] Figure 8 A schematic diagram of a decision rule update process for a page rendering mode provided in an embodiment of the present application;
[0053] Fig. 9 A schematic diagram of a three-terminal interaction process of a page data processing method provided in an embodiment of the present application;
[0054] Fig.10 A schematic diagram of the structure of a page data processing device provided in an embodiment of the present application;
[0055] Fig.11 A schematic diagram of the structure of a cloud device provided in an embodiment of the present application.
[0056] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0057] Here, exemplary embodiments are described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application.
[0058] The term "and / or" in this article is used to describe the association relationship of associated objects, specifically indicating that there may be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0059] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0060] In order to clearly describe the technical solution of the embodiment of the present application, the terms involved in the present application are first defined:
[0061] CDN: Content Delivery Network, content distribution network.
[0062] SSR: Server Side Rendering, server-side rendering.
[0063] CSR: Client Side Rendering, client-side rendering.
[0064] HTML: Hyper Text Markup Language.
[0065] JS: JavaScript is a lightweight, interpreted or just-in-time compiled programming language with function-first approach.
[0066] 2G: 2-Generation wireless telephone technology, second-generation mobile phone communication technology specifications.
[0067] 4G: the 4th generation mobile communication technology, the fourth generation mobile communication technology.
[0068] 5G: 5th Generation Mobile Communication Technology, fifth generation mobile communication technology.
[0069] WiFi: Wireless Fidelity, mobile hotspot.
[0070] like Figure 1As shown, this embodiment provides an electronic device 1, including: at least one processor 11 and a memory 12, Figure 1 A processor is taken as an example. The processor 11 and the memory 12 are connected via a bus 10. The memory 12 stores instructions that can be executed by the processor 11, and the instructions are executed by the processor 11 so that the electronic device 1 can execute all or part of the process of the method in the following embodiment, so as to select the appropriate page rendering mode in a timely manner based on the terminal performance, user characteristics and its own rendering overhead, give full play to the resource performance of the terminal and the server, achieve the effect of balancing the server overhead and the user experience, and improve resource utilization.
[0071] In one embodiment, the electronic device 1 may be a mobile phone, a tablet computer, a laptop computer, a desktop computer, or a large computing system composed of multiple computers.
[0072] Figure 2 Schematic diagram of a page data processing system application scenario 200 provided in an embodiment of the present application. Figure 2 As shown, the system includes: an origin server 210, a content distribution network (i.e., a network composed of CDN servers 220) and a terminal 230, wherein:
[0073] The source server 210 may be a data platform that provides page data processing services, such as an e-commerce data service platform. In actual scenarios, an e-commerce data service platform may have multiple source servers 210. Figure 2 In the figure, one source server 210 is taken as an example.
[0074] CDN is a distributed network consisting of CDN servers 220 in different regions, which is built and covered on the bearer network. Figure 2 Taking a CDN server as an example, the CDN system can redirect the user's request to the service node closest to the terminal 230 in real time based on comprehensive information such as network traffic and the connection and load status of each node, as well as the distance to the terminal 230 and the response time, and cache the resources of the source server 210 to the CDN servers 220 in each area, so that the terminal 230 can obtain data nearby, reducing the pressure of the source server 210. In this way, the CDN server 220 provides edge service capabilities. Specifically, in the process of web page access, the CDN server 220 can be used to cache page data, so that the terminal 230 can efficiently obtain page data during the page access process.
[0075] The terminal 230 may be a computer, mobile phone, tablet or other device used by a user to log in to the e-commerce data service platform. There may be multiple terminals 230. Figure 2 Two terminals 230 are taken as an example for illustration.
[0076] The terminal 230, the CDN server 220 and the source server 210 can transmit information through the Internet, so that the terminal 230 can access the data on the source server 210 through the CDN network. The above-mentioned terminal 230, the CDN server 220 and the source server 210 can all be implemented by the electronic device 1.
[0077] The page data processing solution of the embodiment of the present application can be deployed on the source server 210, or on the terminal 230 or the CDN server 220, or partially on the source server 210 and partially on the terminal 230 or the CDN server 220. In actual scenarios, it can be selected based on actual needs, and this embodiment does not limit it.
[0078] When the page data processing solution is fully or partially deployed on the source server 210 , a calling interface may be opened to the terminal 230 and / or the CDN server 220 to provide algorithm support to the terminal 230 and / or the CDN server 220 .
[0079] The method provided in the embodiment of the present application can be implemented by executing the corresponding software code by the electronic device 1, and can be implemented by exchanging data with the server. The electronic device 1 can be a local terminal device. When the method is run on the server, the method can be implemented and executed based on the cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0080] In a possible implementation, the method provided in the embodiment of the present application provides a graphical user interface through a terminal device, wherein the terminal device can be the local terminal device mentioned above, or can be the client device in the cloud interaction system mentioned above.
[0081] The page data processing method of the embodiment of the present application can be applied to any field that requires page rendering.
[0082] Page rendering is the process of outputting visualization results based on the resources of the web page corresponding to the URL (Uniform Resource Locator) of a web page. Page rendering is a commonly used technical means in front-end technology. With the development of network technology, web resources are becoming more and more abundant and diverse. While meeting user needs, a large number of page rendering processes also bring huge resource consumption to the server and client.
[0083] like Figure 3As shown, it is a schematic diagram of the information transmission architecture of a page data processing system provided in an embodiment of the application. Taking the e-commerce data service platform as an example, when a user visits, the user can send a page request to a product page on the e-commerce platform through the e-commerce client or browser on the terminal 230. The page request first goes to CND and then is sent to the server through CDN. Here, the server can be implemented by the source server 210 that provides the source data of the page.
[0084] In this process, the source data of the page accessed by the user needs to be rendered to obtain the product page that the user finally sees. With the development of the Internet, the amount of data accessed by e-commerce is increasing day by day, and a large number of page rendering processes have brought huge resource consumption to both the server and the client.
[0085] Common technical solutions to improve page rendering performance include server-side rendering, client-side rendering, and offline rendering. These technologies cannot be adaptively switched for different usage scenarios in actual scenarios. When faced with large-scale page rendering scenarios, they cannot comprehensively consider actual needs, which not only brings huge data processing pressure to the server, but also fails to bring a good page request experience to the client, and the resource utilization rate is low.
[0086] In order to solve the above problems, an embodiment of the present application provides a page data processing solution. The server determines the amount of rendering resources required for the current page request based on user information. If the server determines that the required amount of rendering resources is too large, the page source data is returned to the terminal to instruct the terminal to render the page. If the required amount of rendering resources is less than or equal to the preset resource threshold, it means that the rendering overhead is not too large. The server can decide which page rendering method to use to process the page source data based on the performance of the terminal and the classification of user information. In this way, the server selects the appropriate page rendering mode in a timely manner based on terminal performance, user characteristics and its own rendering overhead, fully utilizes the resource performance of the terminal and the server, achieves the effect of balancing server overhead and user experience, and improves resource utilization.
[0087] In one embodiment, the terminal is used to respond to a user's query request for a target page by sending a page request to a source server through a content distribution network, and the page request carries current performance information of the terminal and user information.
[0088] The content distribution network is used to respond to the page request of the terminal, obtain the current performance information and network quality level of the terminal, and if the network quality level is greater than the preset level, send the page request and the current performance information of the terminal to the source server.
[0089] Source server, used as follows Figure 4-Figure 5 The method of any corresponding embodiment returns the corresponding page data.
[0090] The terminal is also used to receive the page data returned by the source server through the content distribution network. If the returned page data includes the page source data specified by the page request, the page source data is rendered locally and then displayed. If the returned page data includes rendered data, the rendered data is displayed.
[0091] Some embodiments of the present application are described in detail below in conjunction with the accompanying drawings. In the case where there is no conflict between the embodiments, the following embodiments and the features in the embodiments can be combined with each other. In addition, the step sequence in the following method embodiments is only an example and not a strict limitation.
[0092] Please see Figure 4 , which is a page data processing method of an embodiment of the present application, the method can be Figure 1 The electronic device 1 shown is used to perform and can be applied to Figure 2-Figure 3 In the application scenario of page data processing shown in , the appropriate page rendering mode is selected in a timely manner based on terminal performance, user characteristics and its own rendering overhead, the resource performance of the terminal and the server is fully utilized, the effect of balancing server overhead and user experience is achieved, and resource utilization is improved. This embodiment takes the source server 210 as an execution end as an example, and the method includes the following steps:
[0093] Step 401 : In response to a page request from the terminal 210 , the page source data specified by the page request and the current performance information of the terminal 210 are acquired.
[0094] In this step, a page request can be issued by a client application loaded on the terminal 210. For example, an e-commerce client or a browser application is loaded on the terminal 210, and a user can trigger an access request to a certain page through the e-commerce client or the browser. The page request can be forwarded to the source server 210 through the CDN. In response to the page request, the source server 210 obtains the compressed surface source data specified by the page request from its own database. Here, the page source data refers to the original data that has not been processed by the page rendering, such as a JS file containing HTML code. The current performance information of the terminal 210 is used to characterize the ability of the terminal 210 to render a page. The current performance information of the terminal 210 can be determined by the model of the terminal 210. For example, the page request can carry an identifier of the terminal 210, such as a model identifier, and the source server 210 can determine the current performance information of the terminal 210 based on the model identifier.
[0095] In one embodiment, the page request may include a request to access a product data page of an e-commerce platform, such as a request to access a product details page of a certain pair of shoes.
[0096] Step 402: Determine the amount of rendering resources required for the page source data according to the user information carried in the page request.
[0097] In this step, the page request may also carry user information of the terminal 210, such as identification information or portrait information of the user of the terminal 210, and may include information such as the user's mobile phone number and user name. The source server 210 may parse the user information from the page request and determine the amount of rendering resources required for the page source data requested by the user based on the user information. The amount of rendering resources here refers to the amount of resources of the source server 210 required to render all or part of the page source data, such as the memory resources required for rendering, the duration of consumption, etc.
[0098] In one embodiment, step 402 may specifically include: determining the interest category tag to which the user belongs based on user information, determining the target source data that needs to be rendered in the page source data based on the interest category tag, and determining the amount of rendering resources required for the target source data as the amount of rendering resources required for the page source data.
[0099] In this embodiment, the interest category tag is used to identify the page content type that the user is interested in and / or the page content type that he is not interested in. The page content type includes but is not limited to: text, pictures, videos, and live broadcasts. For example, some users like to watch video content, and they will watch the videos contained in the pages they have browsed, indicating that they are interested in video content. Some users do ignore the video content directly, which means that they are not interested in the video content. The page browsing history of multiple users can be processed in advance through big data, from which the user's interests are classified, and each user is labeled with an interest type tag and stored in the database. When a user accesses a page, for example, the page request carries user information as a unique user name "Zhang San", the source server 210 can directly query the interest type tag corresponding to "Zhang San" in the database. The interest type tags hit by a user may include multiple types, and the target source data that needs to be rendered in the page source data is determined according to the interest category tags hit by the user. Specifically, the page content that the user is interested in is determined as the target source data that needs to be rendered, and the content that the user is not interested in can be not rendered, or replaced with a simple picture, or text or symbol, and the amount of rendering resources required for the target source data is determined as the amount of rendering resources required for the page source data. The target source data filtered out in this way can reduce rendering overhead.
[0100] In one embodiment, if the user's interest category tag includes a tag of not interested in live broadcasting, step 402 determines the target source data to be rendered in the page source data according to the category tag, specifically including: replacing the live broadcast component in the page source data with the source data of the first preset image to generate the target source data.
[0101] In this embodiment, if the page source data requested by the user name "Zhang San" contains live broadcast content, and the user name "Zhang San" hits the tag of not interested in live broadcast, it means that the user does not like to watch live broadcast. The original live broadcast component can be replaced with the address of the first preset image to generate the target source data that needs to be rendered. In this way, the source server 210 does not need to return the live broadcast component to the terminal 210, thereby reducing data transmission consumption and rendering overhead.
[0102] In one embodiment, if the category tag to which the user belongs includes a tag of not interested in videos, determining the target source data to be rendered in the page source data according to the category tag in step 402 may specifically include: replacing the video source data in the page source data with the source data of the second preset image to generate the target source data.
[0103] In this embodiment, if the page source data requested by the user name "Zhang San" contains video content, and the user name "Zhang San" hits the tag of not interested in videos, it means that the user does not like to watch videos. The original video source data can be replaced with the address of the second preset image to generate the target source data that needs to be rendered. In this way, the source server 210 does not need to return the video content to the terminal 210, thereby reducing data transmission consumption and rendering overhead.
[0104] Step 403: Determine whether the rendering resource amount is greater than a preset resource amount threshold, if so, proceed to step 404, otherwise proceed to step 405.
[0105] In this step, the preset resource quantity threshold is the maximum rendering overhead threshold that the source server 210 can bear in advance, and can be flexibly set based on the actual bearing capacity of the source server 210. For example, it can be represented by the memory or duration required for rendering. Assuming that it is represented by rendering duration, the preset resource quantity threshold can be the maximum rendering duration that the source server 210 can bear.
[0106] Step 404: Return the page source data to the terminal 210 to instruct the terminal 210 to render the page source data.
[0107] In this step, if the amount of rendering resources is greater than the preset resource amount threshold, it means that the page source data currently requested by the user needs to render a lot of content and the overhead is too large, such as the rendering time exceeds the maximum rendering time. At this time, the page source data can be rendered in a CSR manner, that is, the page source data is returned to the terminal 210 to instruct the terminal 210 to render the page source data to relieve the data processing pressure of the source server 210. CSR is a popular client-side rendering method that relies on JS running on the client. The user can only get a small part of the guiding HTML code when sending a request for the first time. The second request will request more JS files containing HTML strings. Client-side rendering is more suitable for scenarios where users and pages interact more, and can improve the interaction experience between users and pages.
[0108] In one embodiment, step 404 may specifically include: determining the interest category tag to which the user belongs based on the user information, determining the target source data to be rendered in the page source data based on the interest category tag, and returning the target source data to the terminal 210 to instruct the terminal 210 to render the page source data. In this way, the source server 210 considers the user classification. If some users do not like to watch live broadcasts or videos, the live broadcast component in the source data can be replaced with a picture, which not only saves rendering overhead, but also caters to user needs, achieving a balanced rendering overhead and user experience. The method for determining the target source data can refer to the relevant description in the aforementioned step 401, which will not be repeated here.
[0109] Step 405 : determining a page rendering method suitable for the page source data according to the current performance information and the user information, and returning the corresponding page data to the terminal 210 .
[0110] In this embodiment, if the amount of rendering resources is less than or equal to the preset resource amount threshold, it means that the rendering overhead required for the page source data currently requested by the user is within the tolerance of the source server 210, for example, the rendering time is lower than the maximum rendering time configured for the source server 210. Then, based on the decision rules, according to the current performance information and user information of the terminal 210, a flexible decision can be made on the page rendering method applicable to the page source data, so that a more appropriate page rendering method can be adopted in different scenarios, and then the page data corresponding to the determined page rendering method is returned to the terminal 210, so as to give full play to the resource performance of the terminal 210 and the server, achieve the effect of balancing server overhead and user experience, and improve resource utilization.
[0111] In one embodiment, step 405 may specifically include: determining whether the current performance value of the terminal 210 is less than the first performance threshold value according to the current performance information. If the current performance value of the terminal 210 is less than the first performance threshold value, rendering the page source data according to the user information, generating the rendered full page data, and returning the full page data to the terminal 210.
[0112] In this embodiment, the current performance value is positively correlated with the performance of the terminal 210. The larger the current performance value, the better the performance of the terminal 210. The better the performance of the terminal 210, the greater the page rendering overhead that the terminal 210 can bear. Therefore, the terminal 210 can be scored and classified according to the performance value, for example, divided into three types of terminals 210 with high, medium and low performance. Assuming that the full score is 100 points, the score within (0, 20) is a low-end machine, the score within [21, 80) is a mid-end machine, and the score within [80, 100] is a high-end machine. The performance of terminals 210 of different models can be classified into the above three types of terminals 210 according to the model of the terminal 210, and can be stored as a table. The first performance threshold is the performance threshold of the low-end machine, for example, it can be 20 points. The current performance information may include the model of the terminal 210, and the current performance value of the terminal 210 is found through the model. If the current performance value of the terminal 210 is less than the first performance threshold, it means that the terminal 210 is a low-end machine with a small page rendering capability. The decision result of the source server 210 may be to adopt the SSR rendering method. The source server 210 renders the content to be rendered in the page source data according to the user information, generates the rendered full page data, and returns the full page data to the terminal 210, thereby ensuring that the rendering overhead is within the tolerance range of the source server 210, further reducing the data processing pressure of the terminal 210 and improving the user experience.
[0113] In one embodiment, rendering the page source data according to the user information in step 405 to generate the rendered full page data specifically includes: determining the interest category tag to which the user belongs according to the user information. Determining the target source data to be rendered in the page source data according to the interest category tag, rendering the target source data, and generating the rendered full page data.
[0114] In this embodiment, the interest category tag is used to identify the page content type that the user is interested in and / or the page content type that the user is not interested in. The page content type includes but is not limited to: text, pictures, videos, and live broadcasts. For example, some users like to watch video content, and they will watch all the videos contained in the pages they have browsed, indicating that they are interested in the video content. Some users do ignore the video content directly, which means that they are not interested in the video content. The page browsing history of multiple users can be processed in advance through big data, from which the user's interests are classified, and each user is labeled with an interest type tag and stored in the database. When a user accesses a page, for example, the page request carries user information with a unique user name "Zhang San", the source server 210 can directly query the interest type tag corresponding to "Zhang San" in the database. The interest type tags hit by a user may include multiple types. The target source data that needs to be rendered in the page source data is determined according to the interest category tags hit by the user. The target source data is the page content that needs to be rendered by the source server 210.
[0115] Specifically, the page content that the user is interested in is determined as the target source data that needs to be rendered, and the content that the user is not interested in can be not rendered, or replaced by simple pictures, texts or symbols, and these replaced pictures, texts or symbols are added to the target source data, and then the source server 210 renders the target source data to generate the rendered full page data, and the terminal 210 displays the rendered full page data after receiving it. In this way, the target source data that needs to be rendered is screened by the user's interest, which can not only reduce the rendering overhead, but also meet the user's needs and improve the user experience.
[0116] like Figure 5 As shown, a specific page rendering scenario diagram of an embodiment of the present application is shown. Assuming that the user's interest category tag is interested in pictures, the decision result of the source server 210 on the picture block in the page source data can be: for special groups of people, lazy loading is not enabled and it is displayed directly. This ensures that the picture block is displayed in a timely manner on the terminal 210 to meet the needs of users. Refined control can be achieved for different preferences of different groups of people.
[0117] In one embodiment, in step 405, the page source data is rendered according to the user information to generate the rendered full page data, which may also include: determining the data block with a preset mark in the page source data as the target source data, rendering the target source data, and generating the rendered full page data.
[0118] In this embodiment, the page source data generally includes different data blocks, such as text blocks, image blocks, complex commodity display blocks, etc. Some data blocks are special and may need to be rendered by the source server 210, such as complex commodity display blocks, which can be pre-marked. Figure 5 As shown, if the page source data contains a complex product display block with the preset mark, the complex product display block belongs to the target source data, and the corresponding decision result can be to use SSR to render the complex product display block, that is, the source server 210 renders the content of the complex product display block to generate rendered full page data.
[0119] In one embodiment, for some data blocks in the page source data that can use CDN cache, the source server 210 can mark the content as cacheable in the returned content. If the CDN determines that there are blocks in the page that have been cached, it can use the cache to return to the terminal 210. Figure 4 The text blocks in the can be directly returned using the cache, saving data transmission time.
[0120] In one embodiment, step 405 may further specifically include: if the current performance value of the terminal 210 is greater than or equal to the first performance threshold, determining whether the current performance value of the terminal 210 is less than the second performance threshold, and the second performance threshold is greater than the first performance threshold. If the current performance value of the terminal 210 is less than the second performance threshold, rendering the first source data in the page source data that needs to be displayed on the first screen of the terminal 210, generating rendered first screen page data, and returning the first screen page data and the second source data in the page source data that does not need to be displayed on the first screen of the terminal 210 to the terminal 210.
[0121] In this embodiment, the second performance threshold is greater than the first performance threshold. Assuming that the full score is 100, the performance value score within (0, 20) is a low-end machine, the score within [21, 80) is a mid-end machine, and the score within [80, 100] is a high-end machine. Assuming that the first performance threshold is 20 and the second performance threshold is 80, the terminal 210 that is greater than or equal to the first performance threshold and less than the second performance threshold is a medium-end machine. For the medium-performance terminal 210, the corresponding decision result can be that the first screen uses SSR, and the rest can use CSR, balancing the server cost and user experience, that is, the first source data in the page source data that needs to be displayed on the first screen of the terminal 210 is rendered, and the rendered first screen page data is generated. The first screen page data and the second source data in the page source data that does not need to be displayed on the first screen of the terminal 210 are returned to the terminal 210, ensuring that the rendering overhead is within the tolerance of the server and balancing the user experience.
[0122] In one embodiment, step 405 may further specifically include: if the current performance value of the terminal 210 is greater than or equal to the second performance threshold, returning the page source data to the terminal 210 to instruct the terminal 210 to render the page source data.
[0123] In this embodiment, for example, the current performance value of terminal 210 is 90, which is greater than the second performance threshold of 80, indicating that terminal 210 is a high-end machine, indicating that terminal 210 has relatively good data processing capabilities. For high-performance terminals 210, the entire page can be rendered using CRS to reduce server overhead.
[0124] In the above-mentioned page data processing method, the server determines the amount of rendering resources required for the current page request in combination with user information. If the server determines that the amount of rendering resources required is too large, the page source data is returned to the terminal 210, instructing the terminal 210 to render the page. If the amount of rendering resources required is less than or equal to the preset resource amount threshold, it means that the rendering overhead is not too large. The server can decide which page rendering method to use to process the page source data in combination with the performance of the terminal 210 and the classification of the user information. In this way, the server selects the appropriate page rendering mode in a timely manner based on the performance of the terminal 210, the user characteristics and its own rendering overhead, so as to give full play to the resource performance of the terminal 210 and the server, achieve the effect of balancing the server overhead and the user experience, and improve the resource utilization rate.
[0125] Specifically, the rendering behavior of a page in different scenarios can be controlled. For example, on a terminal 210 with poor performance, use the full-page SSR to avoid the problem of insufficient computing power. Use the first-screen SSR on a terminal 210 with medium performance to balance experience and cost. Use CSR on a terminal 210 with good performance to avoid the problem of high SSR cost. At the same time, refined control can be performed based on the preferences of different groups of people.
[0126] Please see Figure 6 , which is a page data processing method of an embodiment of the present application, the method can be Figure 1 The electronic device 1 shown is used to perform and can be applied to Figure 2-Figure 3 In the application scenario of page data processing shown in , the appropriate page rendering mode is selected in a timely manner based on the performance of the terminal 210, user characteristics and its own rendering overhead, so as to give full play to the resource performance of the terminal 210 and the server, achieve the effect of balancing the server overhead and user experience, and improve resource utilization. This embodiment takes the CDN server 220 (content distribution network) as an example of the execution end, and the method includes the following steps:
[0127] Step 601: In response to a page request from the terminal 210 , obtain current performance information and network quality level of the terminal 210 .
[0128] In this step, the page request from the terminal 210 first reaches the CND server. The page request may carry the current performance information of the terminal 210 and the current network environment information of the terminal 210. The network environment information may include the network category of the terminal 210, such as 2G, 4G, 5G, WiFi and other network environments. The CDN server 220 responds to the page request, parses the current performance information and the current network environment information of the terminal 210 from the page request, and determines the current network quality level of the terminal 210 based on the current network environment information of the terminal 210. For example, different network environments are graded in advance according to network quality information such as network speed and bandwidth resources, and the current network environment information of the terminal 210 is compared with the grade conversion result to determine the current network quality level of the terminal 210.
[0129] Step 602: If the network quality level is greater than the preset level, the page request and the current performance information of the terminal 210 are sent to the source server 210, so that the source server 210 decides the page rendering method suitable for the page source data based on the page request and the current performance information of the terminal 210, and returns the corresponding page data to the terminal 210.
[0130] In this step, it is assumed that the network quality level is divided into 5 levels, the 5th level is the level with the best network quality, the preset level is the 3rd level, the network environment currently located by the terminal 210 is a 5G network, and the network quality level is the 5th level, which is greater than the preset level 3rd level, indicating that the network environment located by the terminal 210 is very good, and the page data of the source request can be directly returned to the source server 210. Specifically, the CDN server 220 can send the page request and the current performance information of the terminal 210 to the source server 210, so that the source server 210 can adopt the above-mentioned method according to the page request and the current performance information of the terminal 210. Figures 4 to 5 The method corresponding to any embodiment determines the page rendering mode applicable to the page source data, and returns the corresponding page data to the terminal 210. Please refer to the relevant description of the above embodiment, which will not be repeated here.
[0131] In one embodiment, during the process of CDN server 220 returning data to source server 210, if CDN server 220 determines that the return RT (Response Time) of page data is too large, the determination result can be sent to source server 210 to facilitate source server 210 to calculate rendering overhead.
[0132] Step 603: If the network quality level is less than or equal to the preset level, a data cache request regarding the page request is sent to the source server 210 .
[0133] In this step, it is assumed that the current network environment of the terminal 210 is a 2G network, and the network quality level is level 2, which is lower than the preset level 3. This indicates that the network quality of the network environment of the terminal 210 is relatively poor. In the case of a poor network, the CDN cache can be used to return data, thereby reducing the time for data transmission and reducing the impact of the network. Therefore, the CDN server 220 can send a data cache request regarding the page request to the source server 210.
[0134] Step 604 : receiving the target page data that needs to be cached and is returned by the source server 210 , caching the target page data, and sending the target page data to the terminal 210 .
[0135] In this step, the CDN server 220 is also used to cache the target page data that needs to be cached and is returned from the source server 210, and send the target page data requested by the user to the terminal 210, so that the terminal 210 can display the page.
[0136] The above page data processing method deploys judgment rules at the CDN node, and the CDN node decides whether to use CDN cache or SSR according to the network quality of the terminal 210. Combined with the decision of the source server 210, the page rendering process can be finely controlled. For example, at the CDN edge node, the behavior branches that can be implemented are as follows:
[0137] The page return process can be divided into the following categories according to the return mode: caching part of the content, caching all the content, and not caching.
[0138] in:
[0139] Cache part content: partition cache and classification cache, where partition cache can include cache page data and cache specific page blocks. Classification cache can include: classification by terminal 210 model, classification by user, classification by source server 210 cost, etc.
[0140] For details of each step of the above-mentioned page data processing method, please refer to the relevant description of the above-mentioned embodiment, which will not be repeated here.
[0141] Please see Figure 7 , which is a page data processing method of an embodiment of the present application, the method can be Figure 1 The electronic device 1 shown is used to perform and can be applied to Figure 2-Figure 3 In the application scenario of page data processing shown in , the appropriate page rendering mode is selected in a timely manner based on the performance of the terminal 210, the user characteristics and the rendering overhead of the terminal 210, so as to give full play to the resource performance of the terminal 210 and the server, achieve the effect of balancing the server overhead and the user experience, and improve the resource utilization. This embodiment takes the terminal 210 as an example of the execution end, and the method includes the following steps:
[0142] Step 701: In response to the user's query request for the target page, a page request is sent to the source server 210. The page request carries the current performance information of the terminal 210 and the user information, so that the source server 210 can decide the page rendering method suitable for the page source data according to the page request and the current performance information of the terminal 210, and return the corresponding page data.
[0143] In this step, the page request can be issued by a client application loaded on the terminal 210. For example, the terminal 210 is loaded with an e-commerce client or a browser, and the user can trigger an access request to a certain page through the e-commerce client or the browser. The page request can be sent through the CDN using the above-mentioned Figure 6 The corresponding method of any embodiment is forwarded to the source server 210. For the specific process, please refer to the relevant description of the above embodiment, which will not be repeated here.
[0144] The page request may at least carry the current performance information and user information of the terminal 210, so that the source server 210 can use the above-mentioned Figures 4 to 5 The method corresponding to any embodiment determines the page rendering mode applicable to the page source data and returns the corresponding page data. For details, please refer to the relevant description of the aforementioned embodiment, which will not be repeated here.
[0145] Step 702: receiving the page data returned by the source server 210.
[0146] In this step, the terminal 210 receives the page data returned by the source server 210, which can be transmitted through the CDN as described above. Figure 6 The page data returned by the source server 210 is received in a manner corresponding to any one of the embodiments.
[0147] Step 703: If the returned page data includes the page source data specified by the page request, the page source data is rendered locally and then displayed. If the returned page data includes rendered data, the rendered data is displayed.
[0148] In this step, the terminal 210 parses the returned page data. If it contains unrendered page source data, the page source data is rendered locally and then displayed. If it contains data rendered by the source server 210, the rendered data can be directly displayed. In this way, the terminal 210 can use different page rendering methods to display the page in a timely manner according to the actual scene conditions, thereby improving resource utilization.
[0149] With the above-mentioned page data processing method, the terminal 210 can inform the CDN and the source server 210 of the network environment, model and user information, so that the CDN and the source server 210 can decide whether to use CDN cache or SSR or pre-load, etc., so as to achieve refined control of the page rendering process, improve resource utilization, and improve user experience.
[0150] The page data processing method provided in the embodiment of the present application is based on the collected and acquired information of multiple dimensions (machine model, first screen time, crowd, offline automated testing, etc.), and by analyzing the information that can be obtained by each node on the end-to-end link, some dimensional information is pre-determined for subsequent decision-making, and the transmission and judgment of unique dimensional information are added to each node of the request. The dimensional information is enriched step by step after being transmitted step by step, and there are more decision branches that can be made by subsequent nodes. By deploying the decision rules of the page rendering mode to each link, the purpose of automatically switching the combined page rendering mode can be achieved. Combined with the consideration of technical costs, judgments are made at the CDN edge nodes and the source server 210, and excellent page access experience can be provided for different business scenarios and user environments.
[0151] In actual scenarios, various information is always changing dynamically, and the decision rules for the page rendering mode also need to be dynamically adjusted. Therefore, the embodiment of the present application also provides a solution for offline automatic testing, verification and feedback.
[0152] like Figure 8 As shown, a decision rule update process for a page rendering mode provided by an embodiment of the present application is used. Through an offline simulator, a client simulates access (access method to a page) to verify whether the combination of each dimension information is appropriate. Each dimension information includes but is not limited to:
[0153] 1. Client: information such as model, network environment, etc.
[0154] 2.CDN: network quality and other information
[0155] 3. Server: information such as user groups, rendering overhead, etc.
[0156] Then select the best combination of information in each dimension and update the online decision rules.
[0157] In actual scenarios, developers who are facing pages can provide R&D frameworks and components based on abstract dimension information to help developers implement them in actual projects. For example, a R&D component containing a skeleton diagram can be provided for the page framework. When rendering, the context variables of the execution environment can be judged to decide whether to directly use the skeleton diagram to skip the business logic or use the business logic to render the real content. This not only saves development resources, but also improves the page experience.
[0158] Please see Fig. 9 , which is a schematic diagram of a three-terminal interaction process of a page data processing method according to an embodiment of the present application. The method can be applied to Figure 2-Figure 3 In the application scenario of the page data processing system shown in , the source server 210, CDN server 220 and terminal 210 interact and execute to select the appropriate page rendering mode in a timely manner based on the performance of the terminal 210, user characteristics and its own rendering overhead, give full play to the resource performance of the terminal 210 and the server, achieve the effect of balancing server overhead and user experience, and improve resource utilization. The method includes the following steps:
[0159] Step 901: the terminal 210 sends a page request to the CDN server 220 in response to a user's query request for a target page. The page request carries current performance information of the terminal 210 and user information.
[0160] Step 902 : the CDN server 220 obtains the current performance information and network quality level of the terminal 210 in response to the page request of the terminal 210 .
[0161] Step 903: If the network quality level is greater than the preset level, the CDN server 220 sends the page request and the current performance information of the terminal 210 to the source server 210. Then proceed to step 904. If the network quality level is less than or equal to the preset level, the CDN server 220 sends a data cache request for the page request to the source server 210, and proceeds to step 909.
[0162] Step 904 : the source server 210 responds to the page request of the terminal 210 forwarded by the CDN server 220 , and obtains the page source data specified by the page request and the current performance information of the terminal 210 .
[0163] Step 905: The source server 210 determines the amount of rendering resources required for the page source data according to the user information carried in the page request.
[0164] Step 906: If the amount of rendering resources is greater than the preset resource amount threshold, the source server 210 returns the page source data to the CDN server 220. Then proceed to step 907. If the amount of rendering resources is less than or equal to the preset resource amount threshold, the source server 210 determines the page rendering method applicable to the page source data according to the current performance information and user information, and returns the corresponding page data to the CDN server 220. Then proceed to step 907.
[0165] Step 907 : The CDN server 220 returns the page source data to the terminal 210 . The process proceeds to step 909 .
[0166] Step 908: The CDN server 220 receives the target page data that needs to be cached and is returned by the source server 210, and caches the target page data. The execution order of step 907 and step 908 is not limited.
[0167] Step 909: The terminal 210 receives the returned page data. If the returned page data includes the page source data specified by the page request, the page source data is rendered locally and then displayed. If the returned page data includes rendered data, the rendered data is displayed.
[0168] Please see Fig.10 , which is a page data processing device 1000 of an embodiment of the present application, the device can be applied to Figure 1 The electronic device 1 shown can be applied to Figure 2-Figure 3 In the application scenario of page data processing shown in , the appropriate page rendering mode is selected in a timely manner based on the performance of the terminal 210, the user characteristics and the rendering cost of the terminal 210, the resource performance of the terminal 210 and the server is fully utilized, the effect of balancing the server cost and the user experience is achieved, and the resource utilization rate is improved. The device includes: an acquisition module 1001, a determination module 1002, a return module 1003 and a decision module 1004, and the functional principles of each module are as follows:
[0169] The acquisition module 1001 is used to respond to a page request from the terminal 210 and acquire page source data specified by the page request and current performance information of the terminal 210 .
[0170] The determination module 1002 determines the amount of rendering resources required for the page source data according to the user information carried in the page request.
[0171] The return module 1003 is used to return the page source data to the terminal 210 if the rendering resource amount is greater than a preset resource amount threshold, so as to instruct the terminal 210 to render the page source data.
[0172] The decision module 1004 is used to decide the page rendering method applicable to the page source data according to the current performance information and user information if the rendering resource amount is less than or equal to the preset resource amount threshold, and return the corresponding page data to the terminal 210.
[0173] In one embodiment, determination module 1002 is used to determine the interest category tag to which the user belongs based on user information, determine the target source data that needs to be rendered in the page source data based on the interest category tag, and determine the amount of rendering resources required by the target source data as the amount of rendering resources required by the page source data.
[0174] In one embodiment, if the user's interest category tag includes a tag of not interested in live broadcast, the determination module 1002 is used to replace the live broadcast component in the page source data with the source data of the first preset image to generate target source data. And / or, if the user's category tag includes a tag of not interested in video, the determination module 1002 is used to replace the video source data in the page source data with the source data of the second preset image to generate target source data.
[0175] In one embodiment, the decision module 1004 is used to determine whether the current performance value of the terminal 210 is less than the first performance threshold according to the current performance information. If the current performance value of the terminal 210 is less than the first performance threshold, the page source data is rendered according to the user information to generate the rendered full page data, and the full page data is returned to the terminal 210.
[0176] In one embodiment, the decision module 1004 is specifically used to determine the interest category tag to which the user belongs based on the user information. According to the interest category tag, the target source data to be rendered in the page source data is determined, and the target source data is rendered to generate the rendered full page data. And / or, the decision module 1004 is specifically used to determine the data block with a preset mark in the page source data as the target source data, and render the target source data to generate the rendered full page data.
[0177] In one embodiment, the decision module 1004 is further used to determine whether the current performance value of the terminal 210 is less than the second performance threshold if the current performance value of the terminal 210 is greater than or equal to the first performance threshold, and the second performance threshold is greater than the first performance threshold. If the current performance value of the terminal 210 is less than the second performance threshold, the first source data in the page source data that needs to be displayed on the first screen of the terminal 210 is rendered to generate rendered first screen page data, and the first screen page data and the second source data in the page source data that does not need to be displayed on the first screen of the terminal 210 are returned to the terminal 210.
[0178] In one embodiment, the decision module 1004 is further configured to return the page source data to the terminal 210 if the current performance value of the terminal 210 is greater than or equal to the second performance threshold, so as to instruct the terminal 210 to render the page source data.
[0179] In one embodiment, the page request includes a request to access a product data page of an e-commerce platform.
[0180] For a detailed description of the above-mentioned page data processing device 1000, please refer to the description of the relevant method steps in the above-mentioned embodiment. Its implementation principle and technical effect are similar, and will not be repeated here in this embodiment.
[0181] Fig.11The following is a schematic diagram of a cloud device 110 provided in an exemplary embodiment of the present application. The cloud device 110 can be used to run the method provided in any of the above embodiments. Fig.11 As shown, the cloud device 110 may include: a memory 1104 and at least one processor 1105, Fig.11 A processor is taken as an example.
[0182] The memory 1104 is used to store computer programs and can be configured to store various other data to support operations on the cloud device 110. The memory 1104 can be an object storage service (OSS).
[0183] Memory 1104 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.
[0184] The processor 1105 is coupled to the memory 1104 and is used to execute the computer program in the memory 1104 to implement the solution provided by any of the above method embodiments. The specific functions and technical effects that can be achieved are not repeated here.
[0185] Furthermore, if Fig.11 The cloud device also includes: a firewall 1101, a load balancer 1102, a communication component 1106, a power supply component 1103 and other components. Fig.11 Only some components are shown schematically, which does not mean that the cloud device only includes Fig.11 Components shown.
[0186] In one embodiment, the above Fig.11The communication component 1106 in is configured to facilitate wired or wireless communication between the device where the communication component 1106 is located and other devices. The device where the communication component 1106 is located can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, LTE (Long Term Evolution, Long Term Evolution, referred to as LTE), 5G and other mobile communication networks, or a combination thereof. In an exemplary embodiment, the communication component 1106 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1106 also includes a near field communication (Near Field Communication, referred to as NFC) module to facilitate short-range communication. For example, the NFC module can be based on Radio Frequency Identification (Radio Frequency Identification, referred to as RFID) technology, Infrared Data Association (Infrared Data Association, referred to as IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (bluetooth, referred to as BT) technology and other technologies to achieve.
[0187] In one embodiment, the above Fig.11 The power supply component 1103 provides power to various components of the device where the power supply component 1103 is located. The power supply component 1103 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device where the power supply component is located.
[0188] An embodiment of the present application further provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the method of any of the aforementioned embodiments is implemented.
[0189] An embodiment of the present application also provides a computer program product, including a computer program, which implements the method of any of the aforementioned embodiments when executed by a processor.
[0190] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed.
[0191] The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the methods of various embodiments of the present application.
[0192] It should be understood that the above-mentioned processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the application can be directly embodied as being executed by a hardware processor, or can be executed by a combination of hardware and software modules in the processor. The memory may include a high-speed RAM (Random Access Memory) memory, and may also include non-volatile storage NVM (Nonvolatile memory, NVM for short), such as at least one disk storage, and can also be a USB flash drive, a mobile hard disk, a read-only memory, a disk or an optical disk, etc.
[0193] The above storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The storage medium can be any available medium that can be accessed by a general or special computer.
[0194] An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the storage medium can also exist as discrete components in an electronic device or a main control device.
[0195] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0196] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0197] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods of each embodiment of the present application.
[0198] In the technical solution of this application, the collection, storage, use, processing, transmission, provision and disclosure of user data and other information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0199] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A page data processing method, characterized in that: Applied to a source server, the method comprises: In response to a page request from a terminal, acquiring page source data specified by the page request and current performance information of the terminal; Determining the amount of rendering resources required for the page source data according to the user information carried in the page request; If the rendering resource amount is less than or equal to a preset resource amount threshold, a page rendering method applicable to the page source data is determined according to the current performance information and the user information, and the corresponding page data is returned to the terminal.
2. The method according to claim 1, characterized in that The determining, according to the user information, the amount of rendering resources required for the page source data includes: Determine the interest category tag to which the user belongs based on the user information, determine the target source data that needs to be rendered in the page source data based on the interest category tag, and determine the amount of rendering resources required by the target source data as the amount of rendering resources required by the page source data.
3. The method according to claim 2, characterized in that If the interest category tag to which the user belongs includes a tag of not interested in live broadcasting; determining the target source data to be rendered in the page source data according to the category tag includes: Replacing the live broadcast component in the page source data with source data of the first preset image to generate the target source data; And / or, if the category tag to which the user belongs includes a tag indicating that the user is not interested in videos; determining the target source data to be rendered in the page source data according to the category tag includes: The video source data in the page source data is replaced with source data of a second preset image to generate the target source data.
4. The method according to claim 1, characterized in that The determining, according to the current performance information and the user information, a page rendering method applicable to the page source data, and returning corresponding page data to the terminal, includes: Determining, according to the current performance information, whether a current performance value of the terminal is less than a first performance threshold; If the current performance value of the terminal is less than the first performance threshold, the page source data is rendered according to the user information to generate rendered full page data, and the full page data is returned to the terminal.
5. The method according to claim 4, characterized in that The rendering process of the page source data according to the user information to generate rendered full page data includes: Determine the interest category label to which the user belongs according to the user information; Determine the target source data to be rendered in the page source data according to the interest category tag, render the target source data, and generate the rendered full page data; And / or, determining a data block with a preset mark in the page source data as target source data, rendering the target source data, and generating the rendered full page data.
6. The method according to claim 4, characterized in that The determining a page rendering method applicable to the page source data according to the current performance information and the user information, and returning corresponding page data to the terminal, further includes: If the current performance value of the terminal is greater than or equal to the first performance threshold, determining whether the current performance value of the terminal is less than a second performance threshold, and the second performance threshold is greater than the first performance threshold; If the current performance value of the terminal is less than the second performance threshold, the first source data in the page source data that needs to be displayed on the terminal home screen is rendered to generate rendered home screen page data, and the home screen page data and the second source data in the page source data that does not need to be displayed on the terminal home screen are returned to the terminal.
7. The method according to claim 6, characterized in that The determining a page rendering method applicable to the page source data according to the current performance information and the user information, and returning corresponding page data to the terminal, further includes: If the current performance value of the terminal is greater than or equal to the second performance threshold, the page source data is returned to the terminal to instruct the terminal to render the page source data.
8. The method according to any one of claims 1 to 7, characterized in that The page request includes a request to access a product data page of an e-commerce platform; And / or, the method further includes: if the rendering resource amount is greater than a preset resource amount threshold, returning the page source data to the terminal to instruct the terminal to perform rendering processing on the page source data.
9. A page data processing method, characterized in that: Applied to a content distribution network, the method comprises: In response to a page request from a terminal, obtaining current performance information and a network quality level of the terminal; If the network quality level is greater than a preset level, the page request and the current performance information of the terminal are sent to the source server, so that the source server determines a page rendering method applicable to the page source data according to the page request and the current performance information of the terminal, and returns the corresponding page data; If the network quality level is less than or equal to the preset level, sending a data cache request regarding the page request to the source server; Receiving target page data that needs to be cached and returned by the source server, and caching the target page data; The target page data is sent to the terminal.
10. A page data processing method, characterized in that: Applied to terminals, including: In response to a user's query request for a target page, a page request is sent to a source server, wherein the page request carries current performance information of the terminal and user information, so that the source server determines a page rendering method applicable to the page source data according to the page request and the current performance information of the terminal, and returns corresponding page data; Receiving page data returned by the source server; If the returned page data includes the page source data specified by the page request, the page source data is displayed after being rendered locally; If the returned page data includes rendered data, the rendered data is displayed.
11. A page data processing system, characterized in that: include: Origin servers, content delivery networks, and terminals, where: The terminal is used to respond to a user's query request for a target page by sending a page request to a source server through the content distribution network, wherein the page request carries current performance information and user information of the terminal; The content distribution network is used to respond to a page request from a terminal, obtain current performance information and a network quality level of the terminal, and if the network quality level is greater than a preset level, send the page request and the current performance information of the terminal to a source server; The source server is used to determine the page rendering method applicable to the page source data and return the corresponding page data; The terminal is also used to receive page data returned by the source server through the content distribution network; if the returned page data includes page source data specified by the page request, the page source data is displayed after being rendered locally; if the returned page data includes rendered data, the rendered data is displayed.
12. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively coupled to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the electronic device to perform the method described in any one of claims 1-11.
13. A cloud device, characterized in that: include: at least one processor; as well as a memory communicatively coupled to the at least one processor; The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the cloud device to execute the method described in any one of claims 1-11.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the method according to any one of claims 1 to 11 is implemented.
Citation Information
Patent Citations
Page rendering method and device
CN110020367A
Page request method, page access system, electronic equipment and storage medium
CN113792236A
Page rendering method and device, electronic equipment and readable medium
CN114500484A
Page loading method and device, electronic equipment and storage medium
CN115525355A
Cited By
Page updating method and device
CN120892641A
