CN109547563B - Message push processing method and device, storage medium and server - Google Patents

Message push processing method and device, storage medium and server Download PDF

Info

Publication number
CN109547563B
CN109547563B CN201811533875.2A CN201811533875A CN109547563B CN 109547563 B CN109547563 B CN 109547563B CN 201811533875 A CN201811533875 A CN 201811533875A CN 109547563 B CN109547563 B CN 109547563B
Authority
CN
China
Prior art keywords
message
user
cache
detailed content
list
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811533875.2A
Other languages
Chinese (zh)
Other versions
CN109547563A (en
Inventor
李雄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN201811533875.2A priority Critical patent/CN109547563B/en
Publication of CN109547563A publication Critical patent/CN109547563A/en
Application granted granted Critical
Publication of CN109547563B publication Critical patent/CN109547563B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/214Monitoring or handling of messages using selective forwarding

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to the field of data processing, in particular to a message pushing processing method, a device, a storage medium and a server, wherein the method comprises the following steps: acquiring characteristic information of a message to be pushed, and writing the characteristic information of the message into a message cache list; writing the detailed content of the message into a message detail list; establishing association between a message cache list and a message detail list; acquiring the state type of a user, and matching the maximum message cache number of the user according to the state type of the user; when the message cache number in the message cache list is larger than the maximum message cache number of the user, acquiring the characteristic information of the message in the message cache list; and acquiring the detailed content of the message from a message detail list according to the characteristic information, and pushing the message containing the detailed content to a user. The invention can dynamically configure the number of the message cache, reduce the access request to the message cache interface and reduce the load of the message cache interface.

Description

Message push processing method and device, storage medium and server
Technical Field
The invention relates to the field of data processing, in particular to a message pushing processing method, a message pushing processing device, a storage medium and a server.
Background
With the development of internet technology, the number of users of a client is increasing, and in the process of client operation, there are scenarios that need to push messages to a client user, such as pushing information messages, IM (Instant Messaging) messages, notification messages, and the like to the client, and when a large number of client users need to push messages at a certain moment, the access amount to a data interface of a message cache is increased sharply, and in other time periods, the access amount to the data interface is too low, which causes unreasonable resource allocation, and the instantaneous access amount of the data interface is too high, which causes low efficiency of message pushing, thereby causing low reading rate and conversion rate of messages.
Disclosure of Invention
In order to overcome the technical problems, particularly the problem that the prior art cannot efficiently push messages to different users, the following technical scheme is proposed:
in a first aspect, the present invention provides a message push processing method, including:
acquiring characteristic information of a message to be pushed, and writing the characteristic information of the message into a message cache list; writing the detailed content of the message into a message detail list; establishing association between a message cache list and a message detail list;
acquiring a state type of a user, and matching the maximum message cache number of the user according to the state type of the user;
when the message cache number in the message cache list is larger than the maximum message cache number of the user, acquiring the characteristic information of the message in the message cache list;
and acquiring the detailed content of the message from a message detail list according to the characteristic information, and pushing the message containing the detailed content to a user.
Further, the obtaining the detailed content of the message from the message detail list according to the feature information, and pushing the message containing the detailed content to the user includes:
acquiring detailed contents of the message from a message detail list according to the characteristic information;
acquiring identity information of a user;
and combining the identity information of the user with the detailed content of the message to generate a complete message, and pushing the complete message to the user.
Further, before the obtaining the detailed content of the message from the message detail list according to the feature information, the method further includes:
receiving an updating instruction of the detailed content of the message, acquiring the detailed content of the message from the message detail list, and editing and updating the detailed content of the message.
Further, after the pushing the message containing the detailed content to the user, the method further includes:
and deleting the characteristic information of the pushed message from the message cache list.
Further, the obtaining the state type of the user and matching the maximum message cache number of the user according to the state type of the user includes:
the method comprises the steps of obtaining multiple historical state types of a user within preset time, determining a current state type according to the historical state types, and matching the current maximum message cache number of the user according to the current state type of the user.
Further, the method further comprises:
receiving a pull instruction of a user to all cache messages;
acquiring characteristic information of the cached messages in the cache list;
and acquiring the detailed content of the corresponding message from the message detail list according to the characteristic information of the cached message, and pushing the detailed content of the cached message to the user.
In a second aspect, the present invention provides a message pushing processing apparatus, including:
the message management module: the device comprises a message cache list, a message pushing module and a message pushing module, wherein the message cache list is used for storing characteristic information of a message to be pushed; writing the detailed content of the message into a message detail list; establishing association between a message cache list and a message detail list;
the user state management module: the device comprises a cache module, a cache module and a cache module, wherein the cache module is used for acquiring the state type of a user and matching the maximum message cache number of the user according to the state type of the user;
a cache judging module: the message cache device is used for acquiring the characteristic information of the message in the message cache list when the message cache number in the message cache list is larger than the maximum message cache number of the user;
the message pushing module: and acquiring the detailed content of the message from a message detail list according to the characteristic information, and pushing the message containing the detailed content to a user.
Further, the step of the message pushing module acquiring the detailed content of the message from a message detail list according to the characteristic information and pushing the message containing the detailed content to the user includes:
acquiring detailed contents of the message from a message detail list according to the characteristic information;
acquiring identity information of a user;
and combining the identity information of the user with the detailed content of the message to generate a complete message, and pushing the complete message to the user.
In a third aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the message push processing method described above.
In a fourth aspect, the present invention also provides a server, where the server includes one or more processors, a memory, and one or more computer programs, where the one or more computer programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the message push processing method.
Compared with the prior art, the invention has the following beneficial effects:
the invention provides a method for dynamically pushing messages based on user state types, which comprises the steps of acquiring characteristic information of messages to be pushed when the messages are required to be pushed to different users, writing the characteristic information of the messages into a message cache list, and simultaneously writing detailed contents of the messages into a message detail list; establishing association between a message cache list and a message detail list, configuring the message cache list for each user, matching the maximum message cache number of the user according to the state type of the user, acquiring the characteristic information of the message in the message cache list when the message cache number in the message cache list is greater than the maximum message cache number of the user, uniformly acquiring the detailed content of the message from the message detail list according to the characteristic information, and pushing the message containing the detailed content to the user, wherein the message cache list only needs to store the characteristic information of the message, so that the management of the cache message is facilitated, the resources consumed by storing the same message are reduced, meanwhile, the maximum message cache number is set, the interface access of the user to the message cache list is reduced, the load of the interface of the message cache list is reduced, and the performance consumption of the interface is reduced.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a flowchart illustrating a message push processing method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a message push processing method according to another embodiment of the present invention;
FIG. 3 is a diagram of a message pushing processing device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention and are not to be construed as limiting the present invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, or operations, but do not preclude the presence or addition of one or more other features, integers, steps, operations, or groups thereof.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
It will be appreciated by those skilled in the art that terms such as "application," "computer program," and the like, refer to the same concept as known by those skilled in the art of computer software that is electronically adapted, via a machine, to be organized in a series of computer instructions and associated data sources. Unless otherwise specified, such nomenclature is not itself limited by the programming language class, level, or operating system or platform upon which it depends. Of course, such concepts are not limited to any type of terminal.
An embodiment of the present invention provides a message push processing method, as shown in fig. 1, where the method includes the following steps:
s10: acquiring characteristic information of a message to be pushed, and writing the characteristic information of the message into a message cache list; writing the detailed content of the message into a message detail list; and establishing the association between the message cache list and the message detail list.
With the continuous richness of the application functions, the number of applications installed is increasing, and the applications need to push some specific messages to users, such as information messages, IM (Instant Messaging) messages, notification messages, etc., in this embodiment, taking pushing the same message to multiple different users as an example, the same message needs to be pushed to different users, for example, message a0 needs to be pushed to user C1\ C2\ C3\ C4 ·, message a1 needs to be pushed to user C5\ C6\ C3\ C4, etc., at this time, the feature information of the message that needs to be pushed to the user is obtained, in an implementation manner, the feature information of the message may be the number of the message, for example, the feature information of the message is the number in the time sequence generated by the message, such as 00, 01, 02; in another embodiment, the characteristic information of the message may be a type of the message, for example, the message may be an information type, an IM type, or a notification type; and then writing the characteristic information of the message into a message cache list, preferably, in this embodiment, taking the number of the message as the characteristic information of the message, writing each message into the message cache list according to the number of the message, and simultaneously writing the detailed content of the message into a message detail list, and establishing the association between the message cache list and the message detail list.
S20: acquiring the state type of a user, and matching the maximum message cache number of the user according to the state type of the user;
in this embodiment, the maximum message cache number is configured for each user, and specifically, the state type of the user is obtained, in an implementation manner of this embodiment, the state type of the user is user activity, the application background divides the user into multiple types according to the user activity, for example, the divided types include that the number of login times in 1 day is greater than 2, the number of login times in one week is greater than 5, the number of login times in one week is less than 1, and the like, and then the maximum message cache number is matched for each user according to different state types of the user, for example, if the state type of the user C1 is L1, the maximum message cache number of the matched user C1 is 5; if the status type of the user C2 is L2, the maximum message buffer number matching the user C2 is 3.
S30: and when the message cache number in the message cache list is greater than the maximum message cache number of the user, acquiring the characteristic information of the message in the message cache list.
After the maximum message cache number of a user is determined, in this embodiment, each user corresponds to a message cache list, and when the message cache number to be pushed in the message cache list of the user is greater than the maximum message cache number corresponding to the state type of the user, the cached message is pushed to the user at this time, so that the condition that the number of cached messages in the message cache list is too large is avoided, and at this time, the feature information of the message to be pushed is obtained from the message cache list.
S40: and acquiring the detailed content of the message from a message detail list according to the characteristic information, and pushing the message containing the detailed content to a user.
In this embodiment, only the feature information of the message is used to store one or more messages in the message cache list, when the messages need to be pushed to the user, the detailed content of the message is obtained from the message detail list associated with the message cache list according to the feature information, for example, the detailed content of the message with the feature information of a0 is "AAAAA", the detailed content of the message with the feature information of a1 is "BBBBB", when the message needs to be pushed to the user, the detailed content of the message is obtained from the message detail list in a unified manner, and then the message containing the detailed content is pushed to the user, and only the feature information of the message needs to be stored in the message cache list, so that the management of the cached message is facilitated, the resources consumed for storing the same message are reduced, and the maximum message cache number is set to reduce the interface access of the user to the message cache list, thereby reducing the performance consumption on the interface.
The embodiment provides a method for dynamically pushing a message based on a user state type, which comprises the steps of acquiring characteristic information of the message to be pushed when the message needs to be pushed to different users, writing the characteristic information of the message into a message cache list, and simultaneously writing detailed contents of the message into a message detail list; and establishing the association between a message cache list and a message detail list, configuring the message cache list for each user, then matching the maximum message cache number of the user according to the state type of the user, when the message cache number in the message cache list is greater than the maximum message cache number of the user, acquiring the feature information of the message in the message cache list, then uniformly acquiring the detailed content of the message from the message detail list according to the feature information, and then pushing the message containing the detailed content to the user, wherein the message cache list only needs to store the feature information of the message, thereby facilitating the management of the cache message and reducing the resources consumed by storing the same message, and simultaneously setting the maximum message cache number to reduce the interface access of the user to the message cache list, reduce the load of the interface of the message cache list and reduce the performance consumption of the interface.
An embodiment of the present invention, as shown in fig. 2, the obtaining the detailed content of the message from the message detail list according to the feature information, and pushing the message including the detailed content to the user includes:
s41: acquiring detailed contents of the message from a message detail list according to the characteristic information;
s42: acquiring identity information of a user;
s43: and combining the identity information of the user with the detailed content of the message to generate a complete message, and pushing the complete message to the user.
In order to enable a user to perceive that the pushed information is related to the information of the user and arouse the attention of the user, in the embodiment, when the message is pushed to the user, the detailed content of the message is obtained from a message detail list according to the characteristic information, the identity information of the user is obtained at the same time, the identity information of the user is combined with the detailed content of the message to generate a complete message, and then the complete message is pushed to the user.
Before obtaining the detailed content of the message from the message detail list according to the feature information, an embodiment of the present invention further includes:
receiving an updating instruction of the detailed content of the message, acquiring the detailed content of the message from the message detail list, and editing and updating the detailed content of the message.
In this step, when the detailed content of the message needs to be changed, for example, the message type is a notification, and the message content needs to be modified at a burst time, an update instruction for the detailed content of the message is received, for example, an update instruction for the detailed content of the message specifying the feature information is received, and the detailed content of the corresponding message is obtained from the message detail list.
In an embodiment of the present invention, after the pushing the message including the detailed content to the user, the method further includes:
and deleting the characteristic information of the pushed message from the message cache list.
In this embodiment, the feature information of the pushed message is deleted from the message cache list, so that a new message to be pushed can enter the message cache list, and meanwhile, the message cache lists of different users are different, only the message cache list of the user needs to be maintained without changing the message detail list, so that even if the feature information of a part of messages in the message cache list is deleted, the detailed contents of the messages in the message detail list are still not affected, for example, after a message with the feature information a0 is pushed to the user C1, the feature information a0 is deleted from the message cache list of the user C1, and the feature information a0 still exists in the message cache list of the user C2, at this time, the message with the feature information a0 can still be pushed to the user C2.
In an embodiment of the present invention, the obtaining the state type of the user and matching the maximum message cache number of the user according to the state type of the user includes:
the method comprises the steps of obtaining multiple historical state types of a user within preset time, determining a current state type according to the historical state types, and matching the current maximum message cache number of the user according to the current state type of the user.
In this embodiment, when the state type of the user is determined, multiple historical state types of the user within a preset time are obtained, for example, each week is taken as a statistical period, the activity of each user is counted as the historical state type, then the current state type is determined according to the multiple historical state types within the preset time, the current maximum message cache number of the user is matched according to the current state type of the user, when the state type of the user changes, the maximum message cache number of the message cache list changes accordingly, for example, when the activity of the user is higher, the maximum message cache number increases, the user is pushed to the user without generating a message every time, the number of interface access requests to the message cache list is reduced, and the interface load of the message cache list is reduced.
In an embodiment of the invention, the method further comprises:
receiving a pull instruction of a user to all cache messages;
acquiring characteristic information of the cached messages in the cache list;
and acquiring the detailed content of the corresponding message from the message detail list according to the characteristic information of the cached message, and pushing the detailed content of the cached message to the user.
In this embodiment, the pull instruction of the user to all the cached messages is received, then the feature information of all the cached messages in the cache list is obtained, the detailed content of the corresponding message is obtained from the message detail list according to the feature information of the cached messages, the detailed content of the cached message is pushed to the user, and the cached messages are all pushed to the user, so that the actual operation requirement of the user is met.
In an embodiment of the invention, the method further comprises:
when the feature information of the message needing to be pushed is obtained, the importance level of the message is obtained, the message is written into a message cache list according to the importance level of the message, and when the message is pushed to a user, the message with high importance level is preferentially pushed to the user.
As shown in fig. 3, in another embodiment, the present invention provides a message push processing apparatus, including:
the message management module 10: the device comprises a message cache list, a message pushing module and a message pushing module, wherein the message cache list is used for storing characteristic information of a message to be pushed; writing the detailed content of the message into a message detail list; establishing association between a message cache list and a message detail list;
the user state management module 20: the device comprises a cache module, a cache module and a cache module, wherein the cache module is used for acquiring the state type of a user and matching the maximum message cache number of the user according to the state type of the user;
the cache judging module 30: the message cache device is used for acquiring the characteristic information of the message in the message cache list when the message cache number in the message cache list is larger than the maximum message cache number of the user;
the message pushing module 40: and acquiring the detailed content of the message from a message detail list according to the characteristic information, and pushing the message containing the detailed content to a user.
In an embodiment of the present invention, the message pushing module 40 executes obtaining the detailed content of the message from the message detail list according to the feature information, and pushes the message containing the detailed content to the user, including:
acquiring detailed contents of the message from a message detail list according to the characteristic information;
acquiring identity information of a user;
and combining the identity information of the user with the detailed content of the message to generate a complete message, and pushing the complete message to the user.
In an embodiment of the invention, the apparatus further comprises:
the message editing module: the message updating system is used for receiving an updating instruction of the detailed content of the message, acquiring the detailed content of the message from the message detail list, and editing and updating the detailed content of the message.
In an embodiment of the present invention, the message pushing module 40 further performs:
and deleting the characteristic information of the pushed message from the message cache list.
In an embodiment of the present invention, the step of the user status management module 20 executing to obtain the status type of the user and matching the maximum message cache number of the user according to the status type of the user includes:
the method comprises the steps of obtaining multiple historical state types of a user within preset time, determining the current state type according to the historical state types, and matching the current maximum message cache number of the user according to the current state type of the user.
In an embodiment of the present invention, the apparatus further comprises means for performing:
receiving a pull instruction of a user to all cache messages;
acquiring characteristic information of the cached messages in the cache list;
and acquiring the detailed content of the corresponding message from the message detail list according to the characteristic information of the cached message, and pushing the detailed content of the cached message to the user.
In another embodiment, the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the message push processing method described in the above embodiment. The computer-readable storage medium includes, but is not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks, ROMs (Read-Only memories), RAMs (Random AcceSS memories), EPROMs (EraSable Programmable Read-Only memories), EEPROMs (Electrically EraSable Programmable Read-Only memories), flash memories, magnetic cards, or optical cards. That is, a storage device includes any medium that stores or transmits information in a form readable by a device (e.g., a computer, a cellular phone), and may be a read-only memory, a magnetic or optical disk, or the like.
The computer-readable storage medium provided by the embodiment of the invention can realize the purpose of acquiring the characteristic information of the message to be pushed and writing the characteristic information of the message into a message cache list; writing the detailed content of the message into a message detail list; establishing association between a message cache list and a message detail list; acquiring the state type of a user, and matching the maximum message cache number of the user according to the state type of the user; when the message cache number in the message cache list is larger than the maximum message cache number of the user, acquiring the characteristic information of the message in the message cache list; and acquiring the detailed content of the message from a message detail list according to the characteristic information, and pushing the message containing the detailed content to a user. By providing a method for dynamically pushing messages based on user state types, when the messages need to be pushed to different users, the characteristic information of the messages needing to be pushed is obtained, then the characteristic information of the messages is written into a message cache list, and meanwhile, the detailed contents of the messages are written into a message detail list; and establishing the association between a message cache list and a message detail list, configuring the message cache list for each user, then matching the maximum message cache number of the user according to the state type of the user, when the message cache number in the message cache list is greater than the maximum message cache number of the user, acquiring the feature information of the message in the message cache list, then uniformly acquiring the detailed content of the message from the message detail list according to the feature information, and then pushing the message containing the detailed content to the user, wherein the message cache list only needs to store the feature information of the message, thereby facilitating the management of the cache message and reducing the resources consumed by storing the same message, and simultaneously setting the maximum message cache number to reduce the interface access of the user to the message cache list, reduce the load of the interface of the message cache list and reduce the performance consumption of the interface.
The computer-readable storage medium provided in the embodiment of the present invention may implement the embodiment of the message push processing method, and for specific function implementation, reference is made to the description in the embodiment of the method, which is not described herein again.
In addition, in another embodiment, the present invention further provides a server, as shown in fig. 4, the server includes a processor 403, a memory 405, an input unit 407, a display unit 409, and the like. Those skilled in the art will appreciate that the structural elements shown in fig. 4 do not constitute a limitation to all servers, and may include more or fewer components than those shown, or some of the components may be combined. The memory 405 may be used to store the computer program 401 and the functional modules, and the processor 403 executes the computer program 401 stored in the memory 405, thereby executing various functional applications of the device and data processing. The memory 405 may be an internal memory or an external memory, or include both internal and external memories. The internal memory may include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), flash memory, or random access memory. The external memory may include a hard disk, a floppy disk, a ZIP disk, a usb-disk, a magnetic tape, etc. The disclosed memory includes, but is not limited to, these types of memory. The memory 405 disclosed herein is provided by way of example only and not by way of limitation.
The input unit 407 is configured to receive signal input and user input, and the input unit 407 may include a touch panel and other input devices, where the touch panel may collect touch operations of a user on or near the touch panel (for example, operations of a user on or near the touch panel using any suitable object or accessory such as a finger, a stylus pen, etc.) and drive a corresponding connection device according to a preset program; other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as play control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like. The display unit 409 may be used to display information input by a user or information provided to a user and various menus of the computer device. The display unit 409 may take the form of a liquid crystal display, an organic light emitting diode, or the like. The processor 403 is a control center of the computer device, connects various parts of the entire computer using various interfaces and lines, and performs various functions and processes data by operating or executing software programs and/or modules stored in the memory 403 and calling data stored in the memory.
In one embodiment, the server includes one or more processors 403, and one or more memories 405, one or more computer programs 401, wherein the one or more computer programs 401 are stored in the memory 405 and configured to be executed by the one or more processors 403, and the one or more computer programs 401 are configured to perform the message push processing method described in the above embodiments. The one or more processors 403 shown in fig. 4 can execute and implement the functions of the message management module 10, the user status management module 20, the cache determination module 30, and the message pushing module 40 shown in fig. 3.
The server provided by the embodiment of the invention can acquire the characteristic information of the message to be pushed and write the characteristic information of the message into the message cache list; writing the detailed content of the message into a message detail list; establishing association between a message cache list and a message detail list; acquiring a state type of a user, and matching the maximum message cache number of the user according to the state type of the user; when the message cache number in the message cache list is larger than the maximum message cache number of the user, acquiring the characteristic information of the message in the message cache list; and acquiring the detailed content of the message from a message detail list according to the characteristic information, and pushing the message containing the detailed content to a user. By providing a method for dynamically pushing messages based on user state types, when the messages need to be pushed to different users, the characteristic information of the messages needing to be pushed is obtained, then the characteristic information of the messages is written into a message cache list, and meanwhile, the detailed contents of the messages are written into a message detail list; and establishing the association between a message cache list and a message detail list, configuring the message cache list for each user, then matching the maximum message cache number of the user according to the state type of the user, when the message cache number in the message cache list is greater than the maximum message cache number of the user, acquiring the feature information of the message in the message cache list, then uniformly acquiring the detailed content of the message from the message detail list according to the feature information, and then pushing the message containing the detailed content to the user, wherein the message cache list only needs to store the feature information of the message, thereby facilitating the management of the cache message and reducing the resources consumed by storing the same message, and simultaneously setting the maximum message cache number to reduce the interface access of the user to the message cache list, reduce the load of the interface of the message cache list and reduce the performance consumption of the interface.
The server provided in the embodiment of the present invention may implement the embodiment of the message push processing method provided above, and for specific function implementation, reference is made to the description in the embodiment of the method, which is not described herein again.
The foregoing is only a partial embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A message push processing method is characterized by comprising the following steps:
acquiring characteristic information of a message to be pushed, and writing the characteristic information of the message into a message cache list; writing the detailed content of the message into a message detail list; establishing association between a message cache list and a message detail list;
acquiring a state type of a user, and matching the maximum message cache number of the user according to the state type of the user, wherein the state type of the user is the user activity;
when the message cache number in the message cache list is larger than the maximum message cache number of the user, acquiring the characteristic information of the message in the message cache list;
and acquiring the detailed content of the message from a message detail list according to the characteristic information, and pushing the message containing the detailed content to a user.
2. The method according to claim 1, wherein said obtaining the detailed content of the message from the message detail list according to the feature information, and pushing the message containing the detailed content to the user comprises:
acquiring detailed contents of the message from a message detail list according to the characteristic information;
acquiring identity information of a user;
and combining the identity information of the user with the detailed content of the message to generate a complete message, and pushing the complete message to the user.
3. The method of claim 1, wherein before the obtaining the details of the message from the message detail list according to the feature information, the method further comprises:
receiving an updating instruction of the detailed content of the message, acquiring the detailed content of the message from the message detail list, and editing and updating the detailed content of the message.
4. The method of claim 1, wherein after pushing the message containing the details to the user, further comprising:
and deleting the characteristic information of the pushed message from the message cache list.
5. The method of claim 1, wherein the obtaining the status type of the user and matching the maximum message buffer amount of the user according to the status type of the user comprises:
the method comprises the steps of obtaining multiple historical state types of a user within preset time, determining the current state type according to the historical state types, and matching the current maximum message cache number of the user according to the current state type of the user.
6. The method of claim 1, further comprising:
receiving a pull instruction of a user to all cache messages;
acquiring characteristic information of the cached messages in the cache list;
and acquiring the detailed content of the corresponding message from the message detail list according to the characteristic information of the cached message, and pushing the detailed content of the cached message to the user.
7. A message push processing device, comprising:
the message management module: the device comprises a message cache list, a message pushing module and a message pushing module, wherein the message cache list is used for storing characteristic information of a message to be pushed; writing the detailed content of the message into a message detail list; establishing association between a message cache list and a message detail list;
a user state management module: the system comprises a cache management unit, a cache management unit and a cache management unit, wherein the cache management unit is used for acquiring a state type of a user and matching the maximum message cache number of the user according to the state type of the user, and the state type of the user is the user activity;
a cache judging module: the message cache management module is used for acquiring the characteristic information of the messages in the message cache list when the message cache number in the message cache list is larger than the maximum message cache number of the user;
the message pushing module: and acquiring the detailed content of the message from a message detail list according to the characteristic information, and pushing the message containing the detailed content to a user.
8. The apparatus of claim 7, wherein the message pushing module performs the obtaining of the detailed content of the message from the message detail list according to the feature information, and pushes the message containing the detailed content to the user, including:
acquiring the detailed content of the message from a message detail list according to the characteristic information;
acquiring identity information of a user;
and combining the identity information of the user with the detailed content of the message to generate a complete message, and pushing the complete message to the user.
9. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when executed by a processor, the computer program implements the message push processing method according to any one of claims 1 to 6.
10. A server, comprising:
one or more processors;
a memory;
one or more computer programs, wherein the one or more computer programs are stored in the memory and configured to be executed by the one or more processors, the one or more computer programs configured to perform the message push processing method of any of claims 1-6.
CN201811533875.2A 2018-12-14 2018-12-14 Message push processing method and device, storage medium and server Active CN109547563B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811533875.2A CN109547563B (en) 2018-12-14 2018-12-14 Message push processing method and device, storage medium and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811533875.2A CN109547563B (en) 2018-12-14 2018-12-14 Message push processing method and device, storage medium and server

Publications (2)

Publication Number Publication Date
CN109547563A CN109547563A (en) 2019-03-29
CN109547563B true CN109547563B (en) 2023-02-07

Family

ID=65856183

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811533875.2A Active CN109547563B (en) 2018-12-14 2018-12-14 Message push processing method and device, storage medium and server

Country Status (1)

Country Link
CN (1) CN109547563B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114040254B (en) * 2021-11-08 2023-07-18 聚好看科技股份有限公司 Display equipment and high concurrency message display method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103533042A (en) * 2013-10-10 2014-01-22 北京奇虎科技有限公司 Position-based information publishing method and device
CN107005597A (en) * 2014-10-13 2017-08-01 七网络有限责任公司 The wireless flow management system cached based on user characteristics in mobile device
CN108322521A (en) * 2018-01-17 2018-07-24 腾讯科技(深圳)有限公司 Message content method for pushing, device, system, computer equipment and storage medium
WO2018153179A1 (en) * 2017-02-27 2018-08-30 广州市动景计算机科技有限公司 Message pushing method, device and programmable device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103533042A (en) * 2013-10-10 2014-01-22 北京奇虎科技有限公司 Position-based information publishing method and device
CN107005597A (en) * 2014-10-13 2017-08-01 七网络有限责任公司 The wireless flow management system cached based on user characteristics in mobile device
WO2018153179A1 (en) * 2017-02-27 2018-08-30 广州市动景计算机科技有限公司 Message pushing method, device and programmable device
CN108322521A (en) * 2018-01-17 2018-07-24 腾讯科技(深圳)有限公司 Message content method for pushing, device, system, computer equipment and storage medium

Also Published As

Publication number Publication date
CN109547563A (en) 2019-03-29

Similar Documents

Publication Publication Date Title
US11231959B2 (en) Foreground and background switching entry generation and display following quit operations
US11868785B2 (en) Application program page processing method and device
US9740522B2 (en) Controlled interruption and resumption of batch job processing
CN109614347B (en) Processing method and device for multi-level cache data, storage medium and server
US8577960B2 (en) Providing status information for components in a distributed landscape
CN110221901A (en) Container asset creation method, apparatus, equipment and computer readable storage medium
CN110806923A (en) Parallel processing method and device for block chain tasks, electronic equipment and medium
CN113094136A (en) Page display control method and device, storage medium and electronic equipment
CN111488492A (en) Method and apparatus for retrieving graph database
WO2021169267A1 (en) Text processing method and apparatus, device, and computer-readable storage medium
CN109582382B (en) Loading method and device of configuration information, storage medium and terminal equipment
US10346550B1 (en) Methods and systems for searching and indexing virtual environments
CN107391274A (en) The processing method and processing device of deferred information
CN109547563B (en) Message push processing method and device, storage medium and server
EP3828739A2 (en) Parallelization of authentication strategies
CN109660587B (en) Data pushing method and device based on random number, storage medium and server
US11271881B2 (en) Integration of an email client with hosted applications
CN112948118B (en) Edge computing method, platform, computer device and readable storage medium
WO2019062412A1 (en) Method and apparatus for recording application information, storage medium, and electronic device
US8554798B2 (en) Asynchronous state engine with plug-ins for flexible application development
CN113032118A (en) Asynchronous operation processing method for computer application program and corresponding system
US20190243515A1 (en) Invoke a Service in an Electronic Document Using a Trigger Entry
US11799768B1 (en) Lightweight reactive workflows through internal event generation and matching
CN114816032B (en) Data processing method and device, electronic equipment and storage medium
CN116204264A (en) Popup view management method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant