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.

Inactive Publication Date: 2018-09-28
武汉优品楚鼎科技有限公司
View PDF5 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Using the regular settlement method solves the problem of message storage and distribution, and generally improves the efficiency and stability of the entire background service

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Background processing and user message storage method and system apparatus
  • Background processing and user message storage method and system apparatus
  • Background processing and user message storage method and system apparatus

Examples

Experimental program
Comparison scheme
Effect test

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.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a background processing and user message storage method and system apparatus. The most main technical method comprises the steps of starting a program, and running a backgroundserver and a cycle processing module; obtaining user messages and storing the user messages in a storage module by the background server, waiting for the cycle processing module to be started for executing message processing operation, and creating a shared memory for only storing the messages in a time period; establishing a user message array M1 and a user message array M2 by the background server; performing combination and duplicate removal operations on the user message array M1 and the user message array M2 to generate user message indexes; and according to the user indexes, presentingcorresponding message contents to corresponding users. According to the scheme, mysql, the shared memory and a redis technology are adopted; the problems of message storage and distribution are solvedby using a regular settlement method; the data average storage amount is reduced to 1 / 10,000 of the original amount in the scheme; and the access time for obtaining the user messages by a front end is reduced exponentially.

Description

technical field [0001] The invention mainly relates to the background processing technology of user messages, in particular to a method and a system device for processing and storing user messages in the background. Background technique [0002] At present, many background systems involving users inevitably need to process user-related messages, such as: system messages, product update messages after users purchase products, dynamic messages of big Vs after users follow big Vs, etc. [0003] The traditional solution is that a message has N recipients, and N pieces of data are stored. Then the problem comes, if the number of users is relatively large, then a message will generate hundreds of thousands of pieces of data, and the data repetition is very high. Moreover, when fetching the messages of a specified user, because the magnitude of the messages is too large, the more messages there are, the performance will decrease exponentially, and the time-consuming will increase e...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30G06F9/54
CPCG06F9/544G06F9/547
Inventor 于小军
Owner 武汉优品楚鼎科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products