Method and system for optimizing message pulling
By caching user profiles and filtering notification messages on the client side, the problem of delayed display on the client side was solved, resulting in more efficient message retrieval and a better user experience.
Patent Information
- Application Number
- CN202410334779.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-22
- Publication Date
- 2025-12-12
- Estimated Expiration
- 2044-03-22
AI Technical Summary
In existing technologies, client-side notification message retrieval often results in delayed display, impacting user experience and user engagement.
The server analyzes the client's click behavior history to generate user profiles, which are then cached locally on the client. Notification messages and their associated content that match the user profiles are then filtered and retrieved locally only when the user clicks, reducing requests from the server.
It improves message retrieval efficiency, reduces display delays, and enhances access efficiency and user experience for client systems.
Smart Images

Figure CN118381772B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of data processing, in particular to a message pulling optimization method and system. BACKGROUND
[0002] In the current Internet system, message pushing is a very common application system. In order to send notification messages to users in time and improve the stickiness of users, the message pushing function of the message pushing system is often used to achieve this purpose. Generally, because the specific notification content is large, the overall pushed message will not send the complete notification content to the client, and usually only the key information such as the title and the thumbnail image is sent. When the client receives the pushed message, the message is displayed in the form of a notification bar at the top. When the user is interested in a message, the user clicks to pull the detailed notification content.
[0003] Generally, the specific content of the notification message is relatively large, which leads to a delay in displaying the page when the user clicks the notification and pulls the specific associated content, resulting in a delay in waiting time for the user. The user may close the page during the delay waiting time, thereby losing the stickiness of the user. SUMMARY
[0004] The technical problem to be solved by the present application is to provide a message pulling optimization method and system to reduce the situation of delayed display when the client clicks the notification message.
[0005] In order to solve the above technical problems, the technical scheme adopted by the present application is:
[0006] A message pulling optimization method, comprising the steps of:
[0007] S1, the server obtains the historical information of the click behavior of the client on the notification message and generates a user portrait of the client;
[0008] S2, the client obtains the user portrait from the server according to a preset period and caches it locally;
[0009] S3, the client filters the notification message that meets the user portrait and caches the associated content corresponding to the notification message locally, and when the client detects the click behavior corresponding to the notification message, the associated content is pulled from the local.
[0010] In order to solve the above technical problems, another technical scheme adopted by the present application is:
[0011] A message pulling optimization system, comprising a server and a client;
[0012] The client comprises a first processor, a first memory, and a first computer program stored in the first memory and executable on the first processor;
[0013] The server comprises a second processor, a second memory, and a second computer program stored in the second memory and executable on the second processor;
[0014] The first processor implements the following steps when executing the first computer program:
[0015] S2, obtaining a user portrait from the server according to a preset period and caching to the local;
[0016] S3, screening a notification message meeting the user portrait and caching associated content corresponding to the notification message to the local, and pulling the associated content from the local when the client detects a click behavior corresponding to the notification message;
[0017] The second processor implements the following steps when executing the second computer program:
[0018] S1, obtaining historical information of a click behavior of a notification message of a client and generating the user portrait of the client.
[0019] The present application has the advantages that: a message pulling optimization method and system are provided, the historical information of a click behavior of a client is analyzed by a server, and a user portrait of the client is established, and the user portrait is cached to the local by the client, when the client receives a notification message, a notification message meeting the user portrait is screened, and associated content corresponding to the notification message is cached to the local, when the user clicks the notification message, the associated content is pulled from the local, and the server is not needed to be pulled, the pulling efficiency is improved, the situation that the client is delayed to display because of pulling the message from the server is reduced, the access efficiency of the client system is improved, and the user experience is improved. BRIEF DESCRIPTION OF DRAWINGS
[0020] Figure 1 It is a flow chart of a message pulling optimization method in the embodiment of the present application;
[0021] Figure 2 It is a schematic diagram of a message pulling optimization terminal in the embodiment of the present application;
[0022] LABEL EXPLANATION:
[0023] 1, a message pulling optimization system; 2, a client; 3, a server;
[0024] 4, a first processor; 5, a first storage;
[0025] 6, second processor; 7, second storage. DETAILED DESCRIPTION
[0026] To make the technical contents of the present application, the purposes achieved and the effects more clear, the following will be described in detail in combination with the embodiments and the accompanying drawings.
[0027] Please refer to Figure 1 and Figure 2 An optimization method of message pulling, comprising the steps of:
[0028] S1, the server obtains the historical information of the click behavior of the client to the notification message and generates the user portrait of the client;
[0029] S2, the client obtains the user portrait from the server according to a preset period and caches it to the local;
[0030] S3, the client screens the notification message conforming to the user portrait and caches the associated content corresponding to the notification message to the local, and when the client detects the click behavior corresponding to the notification message, pulls the associated content from the local.
[0031] From the above description, the beneficial effects of the present application are that the historical information of the click behavior of the client is analyzed by the server and the user portrait of the corresponding client is established, and the user portrait is cached to the local by the client, when the client receives the notification message again, the notification message conforming to the user portrait is screened and the associated content corresponding to the notification message is cached to the local, when the user clicks the corresponding notification message, only needs to be pulled from the local without pulling from the server, improves the pulling efficiency, reduces the situation that the client delays the display because of pulling the message from the server, improves the access efficiency of the client system and improves the user experience.
[0032] In the embodiments of the present application, the step S1 further comprises the steps of:
[0033] The server parses the message id and user id in the historical information and generates a set of client behavior preference tags;
[0034] The server parses the click time of the historical information and generates the user portrait of the client in combination with the set of client behavior preference tags.
[0035] From the above description, by analyzing and tagging the behavior preference of the user, a more accurate user portrait is generated in combination with the click time, so that the pre-cached content is more in line with the actual needs of the user. This not only improves the relevance and accuracy of the pre-cached content, but also reduces unnecessary local caching and saves local storage resources.
[0036] In the embodiments of the present application, the step S3 specifically comprises the steps of:
[0037] S31, the client sends the received notification message to a message queue;
[0038] S32, the client uses an asynchronous thread to filter the notification message in the message queue that meets the user portrait, and caches the associated content corresponding to the notification message locally;
[0039] S33, the client detects the click behavior of the user in real time, and if the click behavior corresponding to the message is detected, the associated content is pulled from the local.
[0040] From the above description, it can be seen that the specific method for processing notification messages by the client is provided in this example, wherein the message queue and the asynchronous processing mechanism are introduced, so that the filtering and caching process of the message will not block the main thread, and the response speed and smoothness of the application are maintained. At the same time, this design also makes the system more flexible, which can effectively process high-frequency notification messages and improve the efficiency of message processing.
[0041] In an embodiment of the application, the step S3 further comprises the steps of:
[0042] detecting the capacity of the local cache, and if the capacity of the local cache reaches a preset threshold, deleting the associated content with the earliest caching time.
[0043] From the above description, by detecting the capacity of the local cache and deleting the earliest cached content when the threshold is reached, the local cache space is effectively managed, avoiding the unlimited growth of the cache occupying a large amount of storage space, and maintaining the stability and persistence of the application. Preferably, the time period of the local cache is set to 12 hours or 24 hours, and the cached content exceeding the preset time period is automatically deleted to release the cache. The capacity control and time control are used to manage the associated content in the cache.
[0044] In an embodiment of the application, the step S3 further comprises a step S4 after the step S3:
[0045] The client detects the click behavior of the user in real time, and if the associated content of the notification message clicked by the user is not cached locally, the client pulls the associated content of the notification message from the server, and returns to step S1.
[0046] From the above description, it is considered that the user may click the content not pre-cached, a backup scheme for pulling the missing content from the server is provided, and on this basis, the user portrait is updated and optimized again by returning to step S1. This ensures that even in the case of cache failure, the user can quickly obtain the required content, and at the same time, the user portrait is further optimized using the interaction data, which continuously improves the accuracy and efficiency of pre-caching.
[0047] An optimization system 1 of message pulling, comprising a server 3 and a client 2;
[0048] The client 2 comprises a first processor 4, a first memory 5, and a first computer program stored in the first memory 5 and capable of running on the first processor 4;
[0049] The server 3 comprises a second processor 6, a second memory 7, and a second computer program stored in the second memory 7 and capable of running on the second processor 6;
[0050] The first processor 4 realizes the following steps when executing the first computer program:
[0051] S2, obtaining a user portrait from the server according to a preset period and caching to the local;
[0052] S3, screening a notification message conforming to the user portrait and caching associated content corresponding to the notification message to the local, and when the client detects a click behavior corresponding to the notification message, pulling the associated content from the local;
[0053] The second processor 6 realizes the following steps when executing the second computer program:
[0054] S1, obtaining historical information of a click behavior of a notification message of a client and generating the user portrait of the client.
[0055] The present application provides an optimization method and system of message pulling, mainly applied to reduce the delay display of the notification message of the client, and the following embodiments are described in detail:
[0056] Please refer to Figure 1 Embodiment one of the present application is:
[0057] An optimization method of message pulling, comprising the steps of:
[0058] S1, the server obtains historical information of a click behavior of a notification message of a client and generates a user portrait of the client; by analyzing the historical information of the click behavior of the client, a user portrait conforming to the user habit of the client is generated. Specifically, the generation strategy of the user portrait is as follows: within a statistical period of time, the message types or labels frequently clicked by the user are counted and sorted according to the quantity, and the message types or labels in the top preset quantity in the sorting result are considered as the user portrait of interest within a certain time of the user;
[0059] S2, the client obtains a user portrait from the server according to a preset period and caches to the local;
[0060] S3, the client filters the notification message meeting the user portrait and caches the associated content of the corresponding notification message to the local, when the client receives the notification message again, filters the notification message meeting the user portrait and caches the associated content of the corresponding notification message to the local, when the user clicks the corresponding notification message, only needs to pull from the local without pulling from the server, improves the pulling efficiency, reduces the situation that the client delays display due to pulling the message from the server, improves the access efficiency of the client system and improves the user experience.
[0061] Please refer to Figure 1 Embodiment two of the present application is:
[0062] On the basis of embodiment one, step S1 further comprises the following steps:
[0063] The server analyzes the message id and user id in the historical information and generates a client behavior preference label set; the server analyzes the click time of the historical information and generates a user portrait of the client in combination with the client behavior preference label set. By analyzing and labeling the behavior preference of the user and in combination with the click time, a more accurate user portrait is generated, so that the pre-cached content is more in line with the actual needs of the user. This not only improves the relevance and accuracy of the pre-cached content, but also reduces unnecessary local caching and saves local storage resources.
[0064] Please refer to Figure 1 Embodiment three of the present application is:
[0065] On the basis of embodiment one, step S3 specifically comprises the following steps:
[0066] S31, the client sends the received notification message to the message queue;
[0067] S32, the client filters the notification message meeting the user portrait in the message queue by using an asynchronous thread and caches the associated content of the corresponding notification message to the local;
[0068] S33, the client detects the click behavior of the user in real time, and when the click behavior of the corresponding message is detected, the associated content is pulled from the local.
[0069] Step S3 further comprises the following steps:
[0070] The capacity of the local cache is detected, and if the capacity of the local cache reaches a preset threshold, the associated content with the earliest cache time is deleted. By detecting the capacity of the local cache and deleting the earliest cache content when the threshold is reached, the local cache space is effectively managed, the unlimited growth of the cache occupies a large amount of storage space, and the stability and persistence of the application are maintained. Preferably, the time period of the local cache is set to 12 hours or 24 hours, and the cache content exceeding the preset time is automatically deleted to release the cache, and the capacity control and time control are used to manage the associated content in the cache.
[0071] Please refer to Figure 1 Embodiment four of the present application is:
[0072] On the basis of embodiment one, step S3 is followed by step S4:
[0073] The client detects the user's click behavior in real time, and if the associated content of the notification message clicked by the user is not cached locally, the client pulls the associated content of the notification message from the server, and returns to step S1. Considering the possibility that the user may click on the content that is not pre-cached, a backup solution for pulling missing content from the server is provided, and on this basis, the user portrait is updated and optimized again in step S1. This ensures that even in the case of cache failure, the user can quickly obtain the required content, while further optimizing the user portrait using these interaction data, continuously improving the accuracy and efficiency of pre-caching.
[0074] Please refer to Figure 2 Embodiment five of the present application is:
[0075] An optimization system 1 for message pulling, comprising a server 3 and a client 2;
[0076] The client 2 comprises a first processor 4, a first memory 5, and a first computer program stored in the first memory 5 and executable on the first processor 4;
[0077] The server 3 comprises a second processor 6, a second memory 7, and a second computer program stored in the second memory 7 and executable on the second processor 6;
[0078] The first processor 4 executes the first computer program and the second processor 6 executes the second computer program, and the steps in the optimization method for message pulling.
[0079] To sum up, the application provides a kind of message pulling optimization method and system, utilize the historical information of the click behavior of the server to the client to analyze and establish the user portrait of the corresponding client, and the user portrait is cached to local by the client, when the client receives notification message again, filter out the notification message that meets the user portrait and cache the associated content of the corresponding notification message to local, when the user clicks the corresponding notification message, only need to pull from local without pulling from server, improve the pulling efficiency, reduce the situation that the client delays display because of pulling message from server, improve the access efficiency of client system, improve user experience.
[0080] The above is only an embodiment of the application, and does not limit the patent scope of the application, any equivalent transformation made by using the content of the specification and drawings, or directly or indirectly applied in the related technical field, is also included in the patent protection scope of the application.
Claims
1. An optimization method for message retrieval, characterized in that: Including the following steps: S1. The server obtains historical information on the client's click behavior on notification messages and generates a user profile of the client. S2. The client retrieves the user profile from the server according to a preset period and caches it locally; S3. The client filters notification messages that match the user profile and caches the associated content of the corresponding notification message locally. When the client detects a click on the corresponding notification message, it retrieves the associated content from the local cache. Step S1 further includes the following step: The server parses the message ID and user ID from the historical information and generates a set of client behavior preference tags; The server parses the click times of the historical information and combines them with the client's behavioral preference tag set to generate the client's user profile. Step S3 specifically includes the following steps: S31. The client sends the received notification message to the message queue; S32. The client uses an asynchronous thread to filter notification messages in the message queue that match the user profile, and caches the associated content of the corresponding notification messages locally; S33. The client detects the user's click behavior in real time. If a click behavior of the corresponding message is detected, the associated content is retrieved from the local machine.
2. The message retrieval optimization method according to claim 1, characterized in that: Step S3 further includes the following steps: The local cache capacity is checked. If the local cache capacity reaches a preset threshold, the associated content with the earliest cache time is deleted.
3. The message retrieval optimization method according to claim 1, characterized in that: Step S3 is followed by step S4: The client monitors the user's click behavior in real time. If the associated content of the notification message clicked by the user is not cached locally, the client retrieves the associated content of the notification message from the server and returns to step S1.
4. An optimized message retrieval system, characterized in that: Including server-side and client-side; The client includes a first processor, a first memory, and a first computer program stored in the first memory and capable of running on the first processor; The server includes a second processor, a second memory, and a second computer program stored in the second memory and capable of running on the second processor; When the first processor executes the first computer program, it performs the following steps: S2. Retrieve user profiles from the server according to a preset period and cache them locally; S3. Filter notification messages that match the user profile and cache the associated content of the corresponding notification message locally. When the client detects a click on the corresponding notification message, it retrieves the associated content from the local cache. When the second processor executes the second computer program, it performs the following steps: S1. Obtain historical information on the client's click behavior on notification messages and generate the client's user profile; Step S1 further includes the following step: Parse the message IDs and user IDs in the historical information and generate a set of client behavior preference tags; The click times of the historical information are analyzed and combined with the client behavior preference tag set to generate the user profile of the client. Step S3 specifically includes the following steps: S31. Send the received notification message to the message queue; S32. Use an asynchronous thread to filter notification messages in the message queue that match the user profile, and cache the associated content of the corresponding notification message locally; S33. Real-time detection of user click behavior; if a click behavior of the corresponding message is detected, retrieve the associated content from the local machine.
5. The message retrieval optimization system according to claim 4, characterized in that: Step S3 further includes the following steps: The local cache capacity is checked. If the local cache capacity reaches a preset threshold, the associated content with the earliest cache time is deleted.
6. The message retrieval optimization system according to claim 4, characterized in that: When the first processor executes the first computer program, step S4 is further included after step S3: The system monitors user click behavior in real time. If the associated content of the notification message clicked by the user is not cached locally, the client retrieves the associated content of the notification message from the server and returns to step S1.
Citation Information
Patent Citations
Flink streaming processing engine method and device for real-time recommendation and computer equipment
CA3150183A1
Message pushing method and device
CN107766580A