Background processing and user message storage method and system apparatus
A user message and background technology, applied in special data processing applications, multi-programming devices, electronic digital data processing, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0049] The present invention adopts mysql, shared memory and redis technology, utilizes their different storage properties to store corresponding user messages and their contents in a targeted manner, and improves the running speed. The method of regular settlement solves the problem of message storage and distribution, and generally improves the efficiency and stability of the entire background service. Such as figure 1 The specific steps of its method are shown as follows:
[0050] (1) Start the program, run the background server and the periodic processing module; the periodic processing module performs message processing operations on the unprocessed user messages obtained by the background server at a period of N hours, and the processing results of the operations are provided to the background server Call to modify the send_status value, and extract the processed message from the mysql database and store it in the redis cache according to the modified send_status value....
Embodiment 2
[0091] After the background server pushes the unprocessed user message to the mysql database, the background server executes an extraction to extract the executed message processing operations in the range of H=2N hours before the latest user message release time in the mysql database User messages and unprocessed user messages are stored separately in shared memory. Within N hours of a cycle, the background server may receive unprocessed user messages multiple times, and each time it receives, it will extract the latest 2N hours of user messages from the mysql database and store them in the shared memory.
[0092] Another function of storing 2N hours of user messages in the shared memory is data backup. In theory, only N hours of messages need to be stored. Considering that the service may hang up during the last periodic processing, if only N hours of messages are stored, it may be possible to recover N hours of data from the mysql database after the system restarts. Some m...
Embodiment 3
[0094] Throughout the above steps, the transmission of the message ID is accompanied by the message category of the corresponding user message, and each user ID will also have a different message category according to the business it carries out, and the index structure of its user message index is User ID → At least one message class → message ID. Through the above method, the user message index can not only view all user messages arranged in order of release time of user messages, but also select all user messages in a certain category according to the order of release time of user messages in a certain category. Provide users with a more precise message query function.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com