Page generation method, device, system, and electronic device

By embedding initial page data in the backend and refreshing the target page data on the client side, the problem of long delays in pushing messages to the display page is solved, resulting in faster page generation speed and a better user experience.

CN116361581BActive Publication Date: 2026-04-10SHANGHAI SHIZHUANG INFORMATION TECHNOLOGY CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-02
Publication Date
2026-04-10

AI Technical Summary

Technical Problem

During the push notification process, there is a long time between when the user receives the push notification and when the page is displayed, especially due to delays caused by client cold start and network congestion, which slows down the page generation speed.

Method used

The initial page data is embedded in the data to be pushed on the backend. When the client detects the triggered operation, it directly generates the initial page and refreshes it by obtaining the target page data during the display process, reducing the time of waiting for the backend to return the target page data. The string compression algorithm is used to optimize data transmission, and a query rate threshold is set to cope with peak demand.

Benefits of technology

It effectively shortens page generation time, improves page display speed, reduces the impact of client cold starts and network congestion, and enhances user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116361581B_ABST
    Figure CN116361581B_ABST
Patent Text Reader

Abstract

The application provides a page generation method, device, system and electronic equipment. A specific embodiment of the method comprises: obtaining initial page data corresponding to a to-be-pushed page; embedding the initial page data in to-be-pushed data corresponding to the to-be-pushed page to obtain pushed data; in a case where an initial page is displayed on a client based on the pushed data, sending target page data corresponding to the to-be-pushed page to enable the client to generate a target page based on the target page data; wherein the initial page is generated based on the initial page data. The method accelerates the page generation speed and improves the problem of long time consumption between obtaining a pushed message from a user and obtaining a displayed page.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of data processing, and in particular, to a page generation method, device, system and electronic equipment. BACKGROUND

[0002] Push message refers to actively sending a message to any object. Specifically, before pushing the message, the message can be fully analyzed, and the interests, behaviors, etc. of the object can be carefully described, then the message and the object can be effectively matched, and then the appropriate message can be pushed to the matched object.

[0003] In the process of pushing the message, the pushed message can be displayed to the object in the form of a page. Here, the page can be regarded as a text file containing various elements. These elements may, for example, include text, pictures, videos, audio, etc.

[0004] In related technologies, users often receive push messages, but the time-consuming between obtaining the push message from the user and obtaining the display page is long. SUMMARY

[0005] The purpose of the embodiments of the present application is to provide a page generation method, device, system and electronic equipment to improve the problem that the time-consuming between obtaining the push message from the user and obtaining the display page is long.

[0006] In a first aspect, the embodiments of the present application provide a page generation method applied to a backend, which comprises: obtaining initial page data corresponding to a to-be-pushed page; embedding the initial page data into to-be-pushed data corresponding to the to-be-pushed page to obtain push data; in a case where an initial page is displayed based on the push data at a client end, sending target page data corresponding to the to-be-pushed page, so that the client end generates a target page based on the target page data; wherein the initial page is generated based on the initial page data.

[0007] Here, since the initial page data is embedded in the push data, when the client end detects a trigger operation, the initial page can be directly generated based on the push data, and the initial page is preferentially displayed, and then the target page data is obtained in the process of displaying the initial page, and the initial page is refreshed through the target page data, so as to achieve the purpose of generating the target page in the case of no user awareness. In this way, since the time for waiting for the target page data returned by the backend is shortened, and the client end cold start and network congestion and other delay factors can be avoided, the page generation speed is effectively accelerated, and the problem that the time-consuming between obtaining the push message from the user and obtaining the display page is long is improved.

[0008] Optionally, after the initial page data corresponding to the to-be-pushed page is acquired, the page generation method further includes: compressing the initial page data; and the initial page data is embedded into the to-be-pushed data corresponding to the to-be-pushed page to obtain the pushed data, including: embedding the compressed data into the to-be-pushed data to obtain the pushed data. In this way, the backend can embed the compressed data obtained after the initial page data is compressed into the to-be-pushed data, so as to save the space occupied by the initial page data in the pushed data, and then more initial page data can be embedded.

[0009] Optionally, the initial page data includes string type page data; and the initial page data is compressed by using a string compression algorithm. In this way, for the initial page data of the string type, the string compression algorithm can be used to compress the initial page data, so as to reduce the space occupied by the pushed data.

[0010] Optionally, the client displays the initial page based on the decompressed pushed data. In this way, since the compressed initial page data is embedded in the pushed data, the initial page data needs to be decompressed to restore the original initial page data, so as to maintain the consistency of the data.

[0011] Optionally, before the initial page data corresponding to the to-be-pushed page is acquired, the page generation method further includes: setting a query rate threshold corresponding to the initial page data; and the initial page data corresponding to the to-be-pushed page is acquired, including: acquiring the initial page data according to the query rate threshold of the initial page data. In this way, different query rate thresholds can be set in advance for different initial page data to acquire the corresponding initial page data, so as to improve the situation that the initial page data cannot be acquired in time in the peak period of pushing.

[0012] Optionally, the to-be-pushed page includes a non-delay page; and the initial page data is acquired according to the query rate threshold of the initial page data, including: acquiring the initial page data when the current query rate does not exceed the query rate threshold. In this way, for the non-delay page, the corresponding initial page data can be acquired within the query rate threshold set for the non-delay page, so that as much initial page data as possible can be embedded in the to-be-pushed data, and the proportion of data added in the peak period of pushing can be improved.

[0013] Optionally, the page to be pushed comprises a delay page; and the obtaining of the initial page data according to the query rate threshold of the initial page data comprises: determining whether the current query rate exceeds the query rate threshold every first preset time length; if the current query rate does not exceed the query rate threshold, obtaining the initial page data; and the embedding of the initial page data into the to-be-pushed data corresponding to the page to be pushed to obtain the pushed data comprises: if the current query rate exceeds the query rate threshold, determining whether the currently obtained initial page data has been cached for a second preset time length; if the currently obtained initial page data has been cached for the second preset time length, embedding the cached initial page data into the to-be-pushed data corresponding to the page to be pushed to obtain the pushed data; and if the cache time length of the currently obtained initial page data does not reach the second preset time length, embedding the cached initial page data into the to-be-pushed data corresponding to the page to be pushed to obtain the pushed data after the cache time length reaches the second preset time length. In this way, the backend can determine whether to continue delaying every first preset time length for the page to be pushed that is allowed to delay, and can determine whether to no longer continue delaying every second preset time length. In this way, on the one hand, the page display time can be delayed, and the user experience is not affected; on the other hand, the data addition ratio can be increased, and the corresponding target page can be quickly displayed to more users.

[0014] In a second aspect, an embodiment of the present application provides a page generation method, which can be applied to a client, and the method comprises: in response to a viewing operation on a target pushed page, obtaining target pushed data corresponding to the target pushed page; the target pushed data is embedded with target initial page data corresponding to the target pushed page; in a case where a target initial page is displayed, obtaining target page data corresponding to the target pushed page; the target initial page is generated based on the target initial page data; and the target page is generated by refreshing the initial page according to the target page data. In this way, since the time for waiting for the backend to return the target page data is shortened, and the client cold start and network congestion and other delay factors are not involved, the page generation speed is effectively accelerated, and the problem of long time consumption between obtaining a pushed message by a user and obtaining a displayed page is improved.

[0015] In a third aspect, an embodiment of the present application provides a page generation apparatus applied to a backend, the apparatus comprising: an obtaining module configured to obtain initial page data corresponding to a to-be-pushed page; an embedding module configured to embed the initial page data into to-be-pushed data corresponding to the to-be-pushed page to obtain pushed data; and a sending module configured to send target page data corresponding to the to-be-pushed page in a case where an initial page is displayed based on the pushed data on a client, so as to cause the client to generate a target page based on the target page data; wherein the initial page is generated based on the initial page data. In this way, since the time for waiting for the backend to return the target page data is shortened, and the client cold start and network congestion and other delay factors can be avoided, the page generation speed is effectively accelerated, and the problem of long time consumption between obtaining a pushed message by a user and obtaining a displayed page is improved.

[0016] In a fourth aspect, an embodiment of the present application provides a page generation apparatus, which can be applied to a client, the apparatus comprising: a viewing module configured to obtain target pushed data corresponding to a target pushed page in response to a viewing operation on the target pushed page; the target pushed data has target initial page data corresponding to the target pushed page embedded therein; a displaying module configured to obtain target page data corresponding to the target pushed page in a case where a target initial page is displayed; wherein the target initial page is generated based on the target initial page data; and a generating module configured to refresh the initial page according to the target page data to generate a target page. In this way, since the time for waiting for the backend to return the target page data is shortened, and the client cold start and network congestion and other delay factors can be avoided, the page generation speed is effectively accelerated, and the problem of long time consumption between obtaining a pushed message by a user and obtaining a displayed page is improved.

[0017] In a fifth aspect, an embodiment of the present application provides a page generation system, the system comprising: a backend configured to obtain initial page data corresponding to a to-be-pushed page; embed the initial page data into to-be-pushed data corresponding to the to-be-pushed page to obtain pushed data; and send target page data corresponding to the to-be-pushed page in a case where an initial page is displayed based on the pushed data on a client; wherein the initial page is generated based on the initial page data; and a client configured to obtain target pushed data corresponding to a target pushed page in response to a viewing operation on the target pushed page; obtain target page data corresponding to the target pushed page in a case where a target initial page is displayed; and refresh the initial page according to the target page data to generate a target page. In this way, since the time for waiting for the backend to return the target page data is shortened, and the client cold start and network congestion and other delay factors can be avoided, the page generation speed is effectively accelerated, and the problem of long time consumption between obtaining a pushed message by a user and obtaining a displayed page is improved.

[0018] In a sixth aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores computer readable instructions, and when the computer readable instructions are executed by the processor, steps in the method provided in the first aspect or the second aspect are executed.

[0019] In a seventh aspect, an embodiment of the present application provides a computer readable storage medium, which stores a computer program, and when the computer program is executed by a processor, steps in the method provided in the first aspect or the second aspect are executed.

[0020] Other features and advantages of the present application will be further apparent from the following detailed description, and to some extent will be apparent from the drawings. The purposes and other advantages of the present application can be realized and attained by the structure particularly pointed out in the written description and the appended drawings. BRIEF DESCRIPTION OF DRAWINGS

[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments of the present application. It should be understood that the following drawings only show some of the embodiments of the present application, and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can also be obtained without creative labor on the basis of these drawings.

[0022] Figure 1 A flow chart of a page generation method applied to a backend provided by an embodiment of the present application;

[0023] Figure 2 A flow chart of a page generation method applied to a client provided by an embodiment of the present application;

[0024] Figure 3 A structural block diagram of a page generation device applied to a backend provided by an embodiment of the present application;

[0025] Figure 4 A structural block diagram of a page generation device applied to a client provided by an embodiment of the present application;

[0026] Figure 5 A structural block diagram of a page generation system provided by an embodiment of the present application;

[0027] Figure 6 A structural schematic diagram of an electronic device for executing a page generation method provided by an embodiment of the present application. DETAILED DESCRIPTION

[0028] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. The components of the embodiments of the present application described and shown in the drawings herein can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the claimed present application, but only represents selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of the present application.

[0029] It should be noted that similar reference numbers and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. Meanwhile, in the description of the present application, the terms "first", "second", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.

[0030] It should be noted that the embodiments in the present application or the technical features in the embodiments can be combined without conflict.

[0031] In the related art, there is a problem of long time consumption between obtaining a push message from a user and obtaining a display page. In order to solve this problem, the present application provides a page generation method, device, system and electronic equipment. Further, the present application can fill page display data corresponding to the push message into the message space limited by the push service providing backend based on the push capability of the push service providing backend, accelerate the page display speed, and improve the problem of long time consumption.

[0032] In some application scenarios, the above-mentioned page generation method can be applied to a backend. The above-mentioned backend may, for example, include a server, a server cluster or a cloud platform which can substantially process messages, etc. In these application scenarios, the backend may, for example, obtain a message to be pushed, and then fill page display data corresponding to the push message into the limited message space based on its own push capability.

[0033] In other application scenarios, the above-mentioned page generation method can be applied to a client. The above-mentioned client may, for example, be installed on a user terminal such as a mobile phone, a computer, etc. which can substantially process messages. In these application scenarios, the client may, for example, obtain push data, which may include page display data filled based on the push capability of the backend, and then generate a target page to be displayed based on the page display data.

[0034] The defects of the above-mentioned solutions in the related art are the results of the inventors after practice and careful research, and therefore, the discovery process of the above-mentioned problems and the solutions proposed by the embodiments of the present application to the above-mentioned problems should be the contributions of the inventors to the present application during the process of the present application.

[0035] Reference is made to Figure 1 which shows a flowchart of a page generation method applied to a backend according to an embodiment of the present application. As shown in Figure 1 , the page generation method comprises the following steps 101 to 103.

[0036] Step 101: obtaining initial page data corresponding to a to-be-pushed page;

[0037] In some application scenarios, the backend can obtain initial page data corresponding to a to-be-pushed page. In these application scenarios, the backend can obtain the initial page data of the to-be-pushed page from an upstream server, for example.

[0038] The above-mentioned upstream server can provide the initial page data of the to-be-pushed page, for example.

[0039] The above-mentioned to-be-pushed page can be regarded as a page ready to be pushed to a client, which can include elements such as pictures, texts, videos, etc. It should be noted that the to-be-pushed page can include pages that have no association with the user. For example, community graphic detail pages, video detail pages, and product detail pages, which can be essentially pages that have no interaction with the user.

[0040] The above-mentioned initial page data can be regarded as information content corresponding to part of the elements included in the to-be-pushed page. Here, the part of the elements can be regarded as core elements presented by the to-be-pushed page. For example, for a community graphic detail page, the corresponding initial page data can include the picture data to be presented.

[0041] Step 102: embedding the initial page data into to-be-pushed data corresponding to the to-be-pushed page to obtain pushing data;

[0042] The above-mentioned to-be-pushed data can be regarded as data pushed to a client to enable the client to generate an initial page. For example, for a community graphic detail page, the corresponding to-be-pushed data can include a title, text content, address information of a picture, etc.

[0043] After the backend obtains the initial page data of the to-be-pushed page, it can embed it into the to-be-pushed data to obtain pushing data that can be pushed to the client. For example, for a community graphic detail page, the backend can embed the core picture data to be presented into the corresponding to-be-pushed data to obtain pushing data that can generate an initial page.

[0044] In step 103, in a case where the client displays an initial page based on the push data, the target page data corresponding to the page to be pushed is sent, so that the client generates a target page based on the target page data; wherein the initial page is generated based on the initial page data.

[0045] After the client receives the push data sent by the backend, the initial page can be generated based on the push data. Then, the core elements in the page to be pushed can be preferentially presented on the initial page.

[0046] Then, the backend can send the target page data corresponding to the page to be pushed to the client when the initial page is displayed on the client. The above target page data can be regarded as all element contents required to be presented in the page to be pushed.

[0047] In some application scenarios, the backend can send the target page data based on the acquisition request of the client. That is, the client can send an acquisition request to the backend when displaying the initial page, and then the backend can send the corresponding target page data based on the acquisition request.

[0048] Then, the backend can send the target page data to the client, and after the client receives the target page data, the currently displayed initial page can be refreshed to generate a target page consistent with the page to be pushed. In some application scenarios, the target page data can be the same as the initial page data, so that the refreshed target page can be consistent with the initial page; in other application scenarios, the target page data can be different from the initial page data, so that the initial page can be refreshed based on the target page data to obtain a target page with similar content.

[0049] In related technologies, when the client detects a trigger operation such as clicking or long-pressing a push message, the target page corresponding to the push message can be acquired. In the process of acquiring the target page, the client needs to first acquire the target page data from the backend, and then generate the target page. Moreover, in this process, there is a delay problem caused by cold start, network congestion and other factors of the client. Therefore, there is a problem of long time consumption from acquiring the push message by the user to obtaining the display page.

[0050] In this embodiment, since the initial page data is embedded in the push data, when detecting the trigger operation, the client can directly generate the initial page based on the push data, preferentially display the initial page, and then acquire the target page data in the process of displaying the initial page, refresh the initial page by the target page data, so as to generate the target page without the user's awareness. In this way, since the time for waiting for the backend to return the target page data is shortened, and the client cold start and network congestion and other delay factors are not involved, the page generation speed is effectively accelerated, and the problem of long time consumption between the user acquiring the push message and obtaining the display page is improved.

[0051] In some optional implementations, after acquiring the initial page data corresponding to the to-be-pushed page in step 102, the page generation method can further include: compressing the initial page data.

[0052] In some application scenarios, the backend can only push the push message with a string length within a string length threshold. For example, the string length threshold is 1024 bytes, and the backend can only push the push message with a string length less than 1024 bytes. Therefore, the initial page data can be compressed to save the space occupied by the initial page data in the push data, and more initial page data can be embedded, so that more page information can be seen when the target page is displayed.

[0053] In some application scenarios, if the string length of the push message exceeds the string threshold, the backend can perform alarm to timely adjust the string length of the push message.

[0054] In some optional implementations, the initial page data includes string type page data. In this way, the compression of the initial page data includes compression of the initial page data by using a string compression algorithm.

[0055] In some application scenarios, for the initial page data of the string type, the string compression algorithm can be used to compress the initial page data to reduce the space occupied by the push data.

[0056] The string compression algorithm can include, for example, an LZW algorithm (Lempel-Ziv-Welch Encoding, referred to as LZW algorithm, or string table compression algorithm) and a Huffman compression algorithm.

[0057] In these application scenarios, after the backend compresses the initial page data, the compressed data can be converted by using a character set to balance the compression rate and compatibility. The character set can include, for example, a UTF-16 character set, a UTF-8 character set, and the like.

[0058] Thus, the embedding of the initial page data into the to-be-pushed data corresponding to the to-be-pushed page to obtain the pushed data in step 102 comprises embedding the compressed data into the to-be-pushed data to obtain the pushed data.

[0059] After the backend compresses the initial page data, the compressed data obtained after compression can be embedded into the to-be-pushed data to save the space occupied by the initial page data in the pushed data, and then more initial page data can be embedded.

[0060] In some optional implementations, the client displays the initial page based on the decompressed pushed data.

[0061] In some application scenarios, after the client receives the pushed data, the client can perform a decompression operation. Specifically, the client can decompress the initial page data based on a string compression algorithm and a character set to restore the initial page data before compression. Then the decompressed initial page data can be spliced into the routing parameter of the target page to generate the target page.

[0062] In the implementation, since the compressed initial page data is embedded in the pushed data, the decompression operation is needed to restore the original initial page data and maintain data consistency.

[0063] In some application scenarios, before the client performs the above decompression operation, the client can first determine whether the pushed data is legal. Specifically, the client can determine whether the version parameter corresponding to the pushed data is consistent with the stored version parameter, and can determine that the pushed data is legal when the two are consistent. In these application scenarios, different version parameters can correspond to different data structures, and thus only when the version parameters are consistent, the data structures are determined to be the same, and the current received pushed data can be parsed in the same parsing manner, so the pushed data is determined to be legal. The above parsing manner can include a JSON (JavaScript Object Notation, JavaScript Object Notation, JSON for short) parsing manner.

[0064] In these application scenarios, in the case that the pushed data is determined to be illegal (for example, the version parameters are inconsistent) or the decompression fails, the target page can be generated directly according to the pushed data to improve the problem that the page cannot be displayed.

[0065] In some application scenarios, whether the pushed data is legal can also be determined by detecting whether there is a null value in the pushed data, whether the address information actually exists, and the like. At this time, if the pushed data is illegal, the pushed data can be emptied, and legal pushed data can be obtained to generate the target page.

[0066] In some optional implementation, before the step 101, the page generation method further includes: setting a query rate threshold corresponding to the initial page data.

[0067] In the related art, there is a way of measuring the traffic processed by a server in 1 second by using QPS (Queries-per-second). Therefore, in some application scenarios, the backend can set the query rate threshold corresponding to the initial page data in advance. The query rate threshold can be regarded as a threshold of the traffic that the backend can process in 1 second.

[0068] In this way, the step 101 includes: acquiring the initial page data according to the query rate threshold of the initial page data.

[0069] After the backend sets the query rate threshold, the initial page data can be acquired according to the query rate threshold. For example, if the set query rate threshold is 20 data packets, the remaining data packets of the initial page data can be stopped from being acquired when the data packets corresponding to the initial page data exceed 20. Then, the 20 data packets that have been acquired can be compressed.

[0070] In this implementation, different query rate thresholds can be set for different initial page data to acquire the corresponding initial page data, so as to improve the situation that the initial page data cannot be acquired in time in the push peak period.

[0071] In some application scenarios, the backend can also determine whether the initial page data exists in the current push message based on the query rate threshold by setting parameters such as the total length of the push message, the total length of the initial page data, and the like. For example, if the total length of the push message is 10 bytes and the total length of the initial page data is 0 byte, it can be regarded that the initial page data is not embedded in the push message.

[0072] In some optional implementation, the to-be-pushed page includes a non-delay page; and the step of acquiring the initial page data according to the query rate threshold of the initial page data includes: acquiring the initial page data when the current query rate does not exceed the query rate threshold.

[0073] In some application scenarios, the to-be-pushed page can include a non-delay page, i.e., the to-be-pushed page cannot be delayed and needs to be sent to the client as soon as possible. Therefore, the backend can obtain initial page data based on a query rate threshold corresponding to the non-delay page. For example, for the non-delay page A, if the set query rate threshold is 20, the initial page data corresponding to the non-delay page A can be obtained as long as the current query rate does not exceed 20. If it is detected that the current query rate exceeds 20 (for example, 21), the initial page data is stopped from being obtained.

[0074] In these application scenarios, the backend can further determine whether the initial page data corresponding to the to-be-pushed page is stored. If yes, the initial page data does not need to be obtained and can be directly embedded in the to-be-pushed data.

[0075] In the related art, after the current query rate exceeds the query rate threshold, if the initial page data is not obtained, the to-be-pushed data is directly sent to the client. In this case, the initial page data is not embedded in the to-be-pushed data, which can greatly reduce the proportion of data added in the push peak period.

[0076] In the present implementation, for the non-delay page, the initial page data corresponding to the non-delay page can be obtained within the set query rate threshold. In this way, the initial page data can be embedded in the to-be-pushed data as much as possible, and the proportion of data added in the push peak period can be improved.

[0077] In some optional implementation, the to-be-pushed page includes a delay page, and the obtaining of the initial page data according to the query rate threshold of the initial page data includes: determining whether the current query rate exceeds the query rate threshold every first preset time length; and obtaining the initial page data if the current query rate does not exceed the query rate threshold.

[0078] The above delay page can be regarded as a page that allows delay, and then the backend can perform a delay operation.

[0079] In some application scenarios, the backend can determine whether the current query rate exceeds the query rate threshold every first preset time length. The first preset time length can include 9 seconds, 10 seconds, etc.

[0080] If the backend determines that the current query rate does not exceed the query rate threshold, the initial page data can be continuously obtained, and the first preset time length can be continuously waited for. When the first preset time length is reached again, it is determined again whether the current query rate exceeds the query rate threshold.

[0081] In this way, the embedding of the initial page data in the to-be-pushed data corresponding to the to-be-pushed page to obtain the push data in step 102 includes:

[0082] In sub-step 1021, if the current query rate exceeds the query rate threshold, it is determined whether the current acquired initial page data has been cached for a second preset time length.

[0083] If the backend determines that the current query rate exceeds the query rate threshold, it can continue to determine whether the current acquired initial page data has been cached for a second preset time length. The second preset time length may, for example, include 25 minutes, 30 minutes, etc.

[0084] In sub-step 1022, if the current acquired initial page data has been cached for a second preset time length, the cached initial page data is embedded into the to-be-pushed data corresponding to the to-be-pushed page, to obtain pushed data.

[0085] If the backend determines that the current acquired initial page data has been cached for a second preset time length, it can embed the cached initial page data into the to-be-pushed data to obtain pushed data, so that the initial page data can be sent out within the second preset time length.

[0086] In sub-step 1023, if the cache time length of the current acquired initial page data does not reach the second preset time length, the cached initial page data is embedded into the to-be-pushed data corresponding to the to-be-pushed page after the cache time length reaches the second preset time length, to obtain pushed data.

[0087] If the backend determines that the cache time length of the current acquired initial page data does not reach the second preset time length, it can continue to delay and wait until the cache time length reaches the second preset time length, and then embed the cached initial page data into the to-be-pushed data to obtain pushed data after determining that the cache time length reaches the second preset time length.

[0088] In the implementation mode, for the to-be-pushed page that allows delay, the backend can determine whether to continue to delay every first preset time length, and can determine whether to no longer continue to delay every second preset time length. In this way, on the one hand, the page display time can be delayed, and the user experience can not be affected; on the other hand, the data addition ratio can be increased, and the corresponding target page can be quickly displayed to more users.

[0089] Please refer to Figure 2 , which shows a page generation method applied to a client according to an embodiment of the present application. As shown in Figure 2 , the page generation method can include the following steps 201 to 202.

[0090] In step 201, in response to a viewing operation on a target push page, target push data corresponding to the target push page is acquired; the target push data has embedded therein target initial page data corresponding to the target push page.

[0091] In step 202, the target page data corresponding to the target push page is acquired in the case of displaying the target initial page, wherein the target initial page is generated based on the target initial page data;

[0092] In step 203, the initial page is refreshed according to the target page data, and the target page is generated.

[0093] In the embodiment, the implementation process and the technical effects obtained by steps 201 to 203 described above can be the same as or similar to those of each step involved in the embodiment shown in Figure 1 The embodiment shown in the above method embodiment, and details are not described here.

[0094] Those skilled in the art can understand that in the above method of the embodiment, the writing order of each step does not mean a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of each step should be determined by its function and possible internal logic.

[0095] Please refer to Figure 3 , which shows a structure block diagram of a page generation device applied to the backend provided by the embodiment of the application. The page generation device can be a module, program segment or code on an electronic device. It should be understood that the device corresponds to the above Figure 1 method embodiment, and can execute Figure 1 each step involved in the method embodiment. The specific functions of the device can be referred to the description in the above, and the detailed description is appropriately omitted here to avoid repetition.

[0096] Optionally, the above page generation device includes an acquisition module 301, an embedding module 302 and a sending module 303. The acquisition module 301 is configured to acquire initial page data corresponding to a to-be-pushed page; the embedding module 302 is configured to embed the initial page data into to-be-pushed data corresponding to the to-be-pushed page to obtain push data; and the sending module 303 is configured to send target page data corresponding to the to-be-pushed page in the case of displaying an initial page based on the push data on a client, so that the client generates a target page based on the target page data; wherein the initial page is generated based on the initial page data.

[0097] Optionally, the page generation device further includes a compression module, which is configured to compress the initial page data after acquiring the initial page data corresponding to the to-be-pushed page; and the embedding module 302 is further configured to embed the compressed data into the to-be-pushed data to obtain the push data.

[0098] Optionally, the initial page data includes string type page data; and the compression module is further configured to compress the initial page data by using a string compression algorithm.

[0099] Optionally, the client displays the initial page based on the decompressed push data.

[0100] Optionally, the page generation apparatus further comprises a setting module, configured to set a query rate threshold corresponding to the initial page data before the initial page data of the page to be pushed is acquired; and the acquisition module 301 is further configured to acquire the initial page data according to the query rate threshold of the initial page data.

[0101] Optionally, the page to be pushed comprises a non-delayed page; and the acquisition module 301 is further configured to acquire the initial page data when the current query rate does not exceed the query rate threshold.

[0102] Optionally, the page to be pushed comprises a delayed page; and the acquisition module 301 is further configured to determine whether the current query rate exceeds the query rate threshold every first preset time length; acquire the initial page data when the current query rate does not exceed the query rate threshold; and the embedding module 302 is further configured to determine whether the currently acquired initial page data has been cached for a second preset time length when the current query rate exceeds the query rate threshold; embed the cached initial page data into the push data corresponding to the page to be pushed to obtain the push data when the currently acquired initial page data has been cached for the second preset time length; and embed the cached initial page data into the push data corresponding to the page to be pushed to obtain the push data when the cache time of the currently acquired initial page data does not reach the second preset time length, and after reaching the second preset time length.

[0103] It should be noted that, for the convenience and brevity of description, the specific working process of the apparatus described above can refer to the corresponding process in the foregoing method embodiments, which will not be described herein.

[0104] Please refer to Figure 4 , which shows a structural block diagram of a page generation apparatus applied to a client according to an embodiment of the present application. The page generation apparatus can be a module, a program segment or code on an electronic device. It should be understood that the apparatus corresponds to the foregoing Figure 2 method embodiments, and can execute each step involved in the Figure 2 method embodiments. The specific functions of the apparatus can be referred to the foregoing description, and the detailed description is appropriately omitted here.

[0105] Optionally, the page generation apparatus comprises a viewing module 401, a display module 402 and a generation module 403. The viewing module 401 is configured to, in response to a viewing operation on a target push page, acquire target push data corresponding to the target push page, wherein the target push data has embedded therein target initial page data corresponding to the target push page. The display module 402 is configured to, in a case of displaying a target initial page, acquire target page data corresponding to the target push page, wherein the target initial page is generated based on the target initial page data. The generation module 403 is configured to refresh the initial page according to the target page data, and generate a target page.

[0106] It should be noted that, for the convenience and brevity of description, the specific working process of the apparatus described above can refer to the corresponding process in the foregoing method embodiments, which will not be described herein again.

[0107] Reference can be made to Figure 5 which shows a structural block diagram of a page generation system provided by an embodiment of the present application. The page generation system can comprise a backend and a client. It should be understood that the backend of the system can correspond to the foregoing Figure 1 method embodiments, and is capable of performing each step involved in the Figure 1 method embodiments. The client of the system can correspond to the foregoing Figure 2 method embodiments, and is capable of performing each step involved in the Figure 2 method embodiments. The specific functions of the system can be referred to the foregoing description, and the detailed description is appropriately omitted herein to avoid repetition.

[0108] Optionally, the page generation system comprises:

[0109] The backend 501 is configured to acquire initial page data corresponding to a to-be-pushed page, embed the initial page data into target push data corresponding to the to-be-pushed page to obtain push data, and send target page data corresponding to the to-be-pushed page in a case of displaying an initial page based on the push data, wherein the initial page is generated based on the initial page data.

[0110] The client 502 is configured to, in response to a viewing operation on a target push page, acquire target push data corresponding to the target push page, acquire target page data corresponding to the target push page in a case of displaying a target initial page, and refresh the initial page according to the target page data to generate a target page.

[0111] It should be noted that those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0112] Please refer to Figure 6 , Figure 6 This is a schematic diagram of the structure of an electronic device for executing a page generation method, provided in an embodiment of this application. The electronic device may include: at least one processor 601, such as a CPU; at least one communication interface 602; at least one memory 603; and at least one communication bus 604. The communication bus 604 is used to enable direct communication between these components. In this embodiment, the communication interface 602 is used for signaling or data communication with other node devices. The memory 603 may be a high-speed RAM or a non-volatile memory, such as at least one disk storage device. Optionally, the memory 603 may also be at least one storage device located remotely from the aforementioned processor. The memory 603 stores computer-readable instructions. When these computer-readable instructions are executed by the processor 601, the electronic device can perform the above-described... Figure 1 or Figure 2 The method and process are shown.

[0113] Understandable. Figure 6 The structure shown is for illustrative purposes only; the electronic device may also include components that are more advanced than those shown. Figure 6 The more or fewer components shown, or having the same Figure 6 The different configurations shown. Figure 6 The components shown can be implemented using hardware, software, or a combination thereof.

[0114] This application provides a computer-readable storage medium storing a computer program thereon. When the computer program is executed by a processor, it can perform actions such as... Figure 1 or Figure 2 The method process executed by the electronic device in the illustrated method embodiment.

[0115] The embodiment of the present application provides a computer program product, the computer program product comprises a computer program stored on a non-transitory computer readable storage medium, the computer program comprises program instructions, when the program instructions are executed by a computer, the computer can execute the method provided by the above method embodiments, for example, the method can comprise: obtaining initial page data corresponding to a to-be-pushed page;The initial page data is embedded in the to-be-pushed data corresponding to the to-be-pushed page, and the to-be-pushed data is obtained;In the case that the initial page is displayed based on the to-be-pushed data on the client, the target page data corresponding to the to-be-pushed page is sent, so that the target page is generated based on the target page data by the client;Wherein, the initial page is generated based on the initial page data.

[0116] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division, and there can be another division manner in actual implementation. For example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some communication interfaces, and can be electrical, mechanical or other forms.

[0117] In addition, the units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, that is, they can be located in one place, or can be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.

[0118] Furthermore, the function modules in each embodiment of the present application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0119] In this paper, the relationship terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between the entities or operations.

[0120] The above description is only an embodiment of the present application and is not used to limit the protection scope of the present application. For those skilled in the art, the present application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A page generation method characterized by, Applied to the backend, the method comprises: Obtaining initial page data corresponding to a to-be-pushed page; Embedding the initial page data into to-be-pushed data corresponding to the to-be-pushed page to obtain pushed data; In a case where an initial page is displayed based on the pushed data on a client side, sending target page data corresponding to the to-be-pushed page, so that the client side generates a target page based on the target page data; wherein the initial page is generated based on the initial page data; Before the obtaining of the initial page data corresponding to the to-be-pushed page, the method further comprises: Setting a query rate threshold corresponding to the initial page data; and The obtaining of the initial page data corresponding to the to-be-pushed page comprises: Obtaining initial page data according to the query rate threshold of the initial page data; The to-be-pushed page comprises a time-delayed page; and The obtaining of the initial page data according to the query rate threshold of the initial page data comprises: Determining whether a current query rate exceeds the query rate threshold every first preset time length; If the current query rate does not exceed the query rate threshold, obtaining initial page data; and The embedding of the initial page data into the to-be-pushed data corresponding to the to-be-pushed page to obtain pushed data comprises: If the current query rate exceeds the query rate threshold, determining whether the currently obtained initial page data has been cached for a second preset time length; If the currently obtained initial page data has been cached for the second preset time length, embedding the cached initial page data into the to-be-pushed data corresponding to the to-be-pushed page to obtain pushed data; If the cache time length of the currently obtained initial page data does not reach the second preset time length, embedding the cached initial page data into the to-be-pushed data corresponding to the to-be-pushed page to obtain pushed data after the cache time length reaches the second preset time length.

2. The method of claim 1, wherein, After the obtaining of the initial page data corresponding to the to-be-pushed page, the method further comprises: Compressing the initial page data; and The embedding of the initial page data into the to-be-pushed data corresponding to the to-be-pushed page to obtain pushed data comprises: Embedding compressed data into the to-be-pushed data to obtain the pushed data.

3. The method of claim 2, wherein, The initial page data comprises page data of a string type; and The compressing of the initial page data comprises: Compressing the initial page data by using a string compression algorithm.

4. The method according to claim 2 or 3, characterized in that, The client side displays the initial page based on decompressed pushed data.

5. The method of claim 1, wherein, The to-be-pushed page comprises a non-time-delayed page; And The obtaining of the initial page data according to the query rate threshold of the initial page data comprises: Obtaining initial page data in a case where a current query rate does not exceed the query rate threshold.

6. The method of claim 1, wherein, Applied to the client side, the method comprises: In response to a viewing operation on a target pushed page, obtaining target pushed data corresponding to the target pushed page; the target pushed data has embedded therein target initial page data corresponding to the target pushed page; In a case where a target initial page is displayed, obtaining target page data corresponding to the target pushed page; wherein the target initial page is generated based on the target initial page data; According to the target page data, the initial page is refreshed to generate a target page.

7. A page generation apparatus characterized by comprising: Comprise: The acquisition module is used for acquiring initial page data corresponding to a to-be-pushed page; The embedding module is used for embedding the initial page data into to-be-pushed data corresponding to the to-be-pushed page to obtain pushed data; The sending module is used for sending target page data corresponding to the to-be-pushed page in a case where an initial page is displayed on the client based on the pushed data, so that the client generates a target page based on the target page data; wherein the initial page is generated based on the initial page data; Before the initial page data corresponding to the to-be-pushed page is acquired, further comprising: Setting a query rate threshold corresponding to the initial page data; and The initial page data corresponding to the to-be-pushed page is acquired, comprising: According to the query rate threshold of the initial page data, initial page data is acquired; The to-be-pushed page comprises a time-delay page; and According to the query rate threshold of the initial page data, the initial page data is acquired, comprising: Every first preset time length is determined whether the current query rate exceeds the query rate threshold; If the current query rate does not exceed the query rate threshold, the initial page data is acquired; and The initial page data is embedded into the to-be-pushed data corresponding to the to-be-pushed page to obtain pushed data, comprising: If the current query rate exceeds the query rate threshold, it is determined whether the currently acquired initial page data has been cached for a second preset time length; If the currently acquired initial page data has been cached for a second preset time length, the cached initial page data is embedded into the to-be-pushed data corresponding to the to-be-pushed page to obtain pushed data; If the cache time length of the currently acquired initial page data does not reach the second preset time length, after reaching the second preset time length, the cached initial page data is embedded into the to-be-pushed data corresponding to the to-be-pushed page to obtain pushed data.

8. The apparatus of claim 7, wherein, Applied to the client, the device comprises: The viewing module is used for acquiring target pushed data corresponding to a target pushed page in response to a viewing operation on the target pushed page; the target pushed data has target initial page data corresponding to the target pushed page embedded therein; The display module is used for acquiring target page data corresponding to the target pushed page in a case where a target initial page is displayed; wherein the target initial page is generated based on the target initial page data; The generation module is used for refreshing the initial page according to the target page data to generate a target page.

9. A page generation system, characterized by, The system comprises: The backend is used for acquiring initial page data corresponding to a to-be-pushed page; embedding the initial page data into to-be-pushed data corresponding to the to-be-pushed page to obtain pushed data; sending target page data corresponding to the to-be-pushed page in a case where an initial page is displayed on the client based on the pushed data; wherein the initial page is generated based on the initial page data; before the initial page data corresponding to the to-be-pushed page is acquired, further comprising: Setting a query rate threshold corresponding to the initial page data; and The obtaining of the initial page data corresponding to the to-be-pushed page comprises: According to the query rate threshold of the initial page data, obtaining initial page data; The to-be-pushed page comprises a time-delay page; and According to the query rate threshold of the initial page data, obtaining initial page data, comprises: Every first preset time length determines whether the current query rate exceeds the query rate threshold; If the current query rate does not exceed the query rate threshold, then obtain initial page data; and The initial page data is embedded in the to-be-pushed data corresponding to the to-be-pushed page to obtain the pushed data, comprising: If the current query rate exceeds the query rate threshold, then determine whether the currently obtained initial page data has been cached for a second preset time length; If the currently obtained initial page data has been cached for a second preset time length, then the cached initial page data is embedded in the to-be-pushed data corresponding to the to-be-pushed page to obtain the pushed data; If the cache time length of the currently obtained initial page data does not reach the second preset time length, then after reaching, the cached initial page data is embedded in the to-be-pushed data corresponding to the to-be-pushed page to obtain the pushed data; A client is configured to, in response to a viewing operation on a target pushed page, obtain target pushed data corresponding to the target pushed page; in a case where a target initial page is displayed, obtain target page data corresponding to the target pushed page; refresh the initial page according to the target page data to generate a target page.

10. An electronic device, comprising: The computer program is executed by the processor to run the method of any one of claims 1-6.

11. A computer readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to run the method of any one of claims 1-6. The computer program is executed by the processor to run the method of any one of claims 1-6.

Citation Information

Patent Citations

  • Information pushing method and device, electronic equipment and storage medium

    CN113239275A