CN112650606B - Message processing method, device, system, electronic equipment and storage medium - Google Patents

Message processing method, device, system, electronic equipment and storage medium Download PDF

Info

Publication number
CN112650606B
CN112650606B CN202011614289.8A CN202011614289A CN112650606B CN 112650606 B CN112650606 B CN 112650606B CN 202011614289 A CN202011614289 A CN 202011614289A CN 112650606 B CN112650606 B CN 112650606B
Authority
CN
China
Prior art keywords
target
message
database
identifier
client device
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
CN202011614289.8A
Other languages
Chinese (zh)
Other versions
CN112650606A (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202011614289.8A priority Critical patent/CN112650606B/en
Publication of CN112650606A publication Critical patent/CN112650606A/en
Application granted granted Critical
Publication of CN112650606B publication Critical patent/CN112650606B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/541Client-server

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a message processing method, a device, a system, electronic equipment and a storage medium. Wherein the method comprises the following steps: acquiring a message to be pushed; determining target client equipment corresponding to the message to be pushed; querying a long-connection communication link with the target client device; and sending the message to be pushed to the target client device through the long-connection communication link. When receiving the message to be pushed by the service background, the application adopts the long-connection communication link to actively send the message to be pushed to the client device, so that the data of the client device can be updated in time. The problems of untimely information updating, flow waste and low efficiency of the client device in the prior art when synchronizing data are solved.

Description

Message processing method, device, system, electronic equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, an apparatus, a system, an electronic device, and a storage medium for processing a message.
Background
In internet applications, there are many business scenarios that require a server to send a message to a client device, such as prompting the client device to upgrade, refreshing page content, notifying the server of the latest message, the server sending activity information to the client device, and so on. In the prior art, the method is mainly implemented by actively initiating a request to a server by a client device, for example, requesting data from the server when the client device is started, requesting data when a certain page is entered, or periodically polling the requested data.
In carrying out the application, the inventors have found that the above method has the following drawbacks
(1) The information is not updated timely.
For example, the client device can always acquire new data when actively requesting, after the client device synchronizes the server data this time, until the next time the client device actively synchronizes the data, if the server performs data update, the client device cannot synchronize in time, which may result in untimely information update.
(2) Waste flow.
For example, when the server data is unchanged, and the client device synchronizes the data multiple times, the data obtained by each synchronization may be the same, which may result in waste of traffic.
(3) The data update is inefficient.
For example, in the modes of active request or polling request, the client device obtains data of a new server side which is not obtained most of the time, and the data updating efficiency is low.
Disclosure of Invention
In order to solve the technical problems described above or at least partially solve the technical problems described above, the present application provides a message processing method, device, system, electronic device and storage medium.
According to an aspect of an embodiment of the present application, there is provided a message processing method, including:
Acquiring a message to be pushed;
determining target client equipment corresponding to the message to be pushed;
querying a long-connection communication link with the target client device;
and sending the message to be pushed to the target client device through the long-connection communication link.
Further, the method further comprises:
and establishing the long connection communication link with the target client equipment according to the received registration information, wherein the registration information is sent after the target client equipment triggers login operation.
Further, the message to be pushed carries message content and sending conditions of the message content;
the determining the target client device corresponding to the message to be pushed includes:
determining a target database corresponding to the transmission condition;
selecting a target equipment identifier matched with the sending condition from the target database;
and determining the target client equipment corresponding to the target equipment identifier.
Further, the transmission condition includes: target application identification, and/or target account identification;
the determining a target database corresponding to the sending condition comprises the following steps:
When the sending condition comprises a target application program identifier, using a device database as the target database, wherein the corresponding relation between the application program identifier and the device identifier is stored in the device database;
or alternatively, the first and second heat exchangers may be,
when the sending condition comprises a target application program identifier and a target account identifier, or the sending condition comprises a target account identifier, an account database is used as the target database, and the account database stores the corresponding relation between the application program identifier and the account identifier and the corresponding relation between the account identifier and the equipment identifier.
Further, the method further comprises:
when the long connection communication link between the target client device and the target client device is confirmed to be invalid, marking the message to be pushed to obtain a target message;
storing the target message to a target message database corresponding to the target message;
and when the long connection communication link between the target client device and the target client device is detected to be effective, the target message is sent to the target client device through the long connection push link.
Further, after the message to be pushed is sent to the target client device through the long-connection communication link, the method includes:
Marking the message to be pushed to obtain a target message;
storing the target message to a target message database corresponding to the target message;
when the confirmation message fed back by the target client is not received within a preset time threshold, extracting the target message from the target message database;
and sending the target message to the target client device through the long-connection communication link.
Further, the method further comprises:
acquiring a history message set corresponding to the target client device;
determining a target message according to the historical message set, wherein the target message is a message which is not successfully sent to the target client;
and sending the target message to the target client device through the long-connection communication link.
Further, the storing the target message in a target message database corresponding to the target message includes:
obtaining a storage mode of the message content, wherein the storage mode at least comprises one of the following: storage deadlines, storage types, and storage formats;
determining a target message database corresponding to the target database;
and storing the message content to the target message database according to the storage mode.
Further, before reissuing the target message to the target client device over the long-connection communication link, the method further comprises:
determining the current time and the validity period of the target message;
and when the current time is within the validity period, sending the target message to the target client device through a long-connection communication link.
According to another aspect of the embodiment of the present application, there is also provided a message processing apparatus, including:
the acquisition module is used for acquiring the message to be pushed;
the first determining module is used for determining target client equipment corresponding to the message to be pushed;
a second determining module for determining a long-connection communication link with the target client device;
and the sending module is used for sending the message to be pushed to the target client device through the long-connection communication link.
According to another aspect of the embodiment of the present application, there is also provided a message processing system, including: a long connection server;
the long connection server is used for acquiring the message to be pushed; determining target client equipment corresponding to the message to be pushed; determining a long-connection communication link with the target client device; and sending the message to be pushed to the target client device through the long-connection communication link.
Further, the system further comprises: and the service background is used for sending the message to be pushed to the long connection server.
Further, the system also includes at least one client device;
the client device is used for sending an application program identifier, a device identifier and an account identifier to the long connection server through a long connection communication link corresponding to the client device when a login operation is detected;
the long connection server is used for establishing an account database and a device database according to the application program identifier, the device identifier and the account identifier, wherein the account database stores the corresponding relation between the application program identifier and the account identifier and the corresponding relation between the account identifier and the device identifier, and the device database stores the corresponding relation between the application program identifier and the device identifier.
According to another aspect of the embodiments of the present application, there is also provided a storage medium including a stored program that performs the above steps when running.
According to another aspect of the embodiment of the present application, there is also provided an electronic device including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus; wherein: a memory for storing a computer program; and a processor for executing the steps of the method by running a program stored on the memory.
Embodiments of the present application also provide a computer program product comprising instructions which, when run on a computer, cause the computer to perform the steps of the above method.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages: when receiving the message to be pushed by the service background, the application adopts the long-connection communication link to actively send the message to be pushed to the client device, so that the data of the client device can be updated in time, and the client device is not required to actively request to acquire service information. The problems of untimely information updating, flow waste and low efficiency of the client device in the prior art when synchronizing data are solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the application or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic diagram of a message processing system according to an embodiment of the present application;
fig. 2 is an interaction schematic diagram of a client device and a long connection server according to an embodiment of the present application;
FIG. 3 is a flowchart of a message processing method according to an embodiment of the present application;
fig. 4 is a schematic diagram of processing a message to be pushed according to an embodiment of the present application;
FIG. 5 is a flowchart of a message processing method according to another embodiment of the present application;
FIG. 6 is a schematic diagram of an account message database and a device message database provided by an embodiment of the present application;
FIG. 7 is a flowchart of a message processing method according to another embodiment of the present application;
FIG. 8 is a flow chart of a message processing method according to another embodiment of the present application;
fig. 9 is a block diagram of a message processing apparatus according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments, illustrative embodiments of the present application and descriptions thereof are used to explain the present application and do not constitute undue limitations of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another similar entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The embodiment of the application provides a message processing method, a device, a system, electronic equipment and a storage medium. The method provided by the embodiment of the application can be applied to any needed electronic equipment, for example, the electronic equipment can be a server, a terminal and the like, is not particularly limited, and is convenient to describe and is called as the electronic equipment for short hereinafter.
Fig. 1 is a schematic diagram of a message processing system according to an embodiment of the present application, as shown in fig. 1, where the system includes: business background 10, long connection server 20, and client device 30. Wherein the client device 30 establishes a long connection communication link with the long connection server 20 before for bi-directional transmission of the message to be pushed.
Wherein the client device 30 establishes a connection with the long connection server 20 via a transmission control protocol (Transmission Control Protocol, TCP) and maintains the long connection communication link via heartbeat packets. TCP is a connection-oriented, reliable, byte stream based transport layer communication protocol.
In the embodiment of the present application, the service background 10 is configured to push a message to a long connection server;
the long connection server 20 is configured to obtain a message to be pushed, determine a target client device corresponding to the message to be pushed, determine a target long connection communication link between the target client device and the target client device, and send the message to be pushed to the target client device through the target long connection communication link.
In the embodiment of the application, when the long connection server 20 receives the message to be pushed by the service background, the long connection communication link is adopted to actively send the message to be pushed to the client device, so that the data of the client device can be updated in time, and the client device is not required to actively request to acquire service information. The problems of untimely information updating, flow waste and low data updating efficiency of the client device in the prior art when synchronizing data are solved.
In the embodiment of the present application, the client device 30 is configured to send, when detecting a login operation, an application identifier, a device identifier and an account identifier to the long connection server 20 through the long connection communication link;
the long connection server 20 is configured to add the application program identifier, the device identifier and the account identifier to an account database, add the application program identifier to the device database, store the correspondence between the application program identifier and the account identifier and the correspondence between the account identifier and the device identifier in the account database, and store the correspondence between the application program identifier and the device identifier in the device database.
As an example, fig. 2 is a schematic interaction diagram of a client device and a long connection server according to an embodiment of the present application, as shown in fig. 2, registration information reported by a client device a, a client device B, a client device C, a client device D, and a client device E to the long connection server is as follows:
the registration information of the client device a includes: app ID1, UID1, device ID1;
the registration information of the client device B includes: app ID1, UID2, device ID2;
the registration information of the client device C includes: app ID1, UID2, device ID3;
The registration information of the client device D includes: app ID1 and Device ID4;
the registration information of the client device E includes: app ID2, UID3, device ID5.
The App ID is an application program identifier, the UID is an account identifier, and the Device ID is a Device identifier.
After the long connection server receives the registration information, the registration information is summarized according to the App ID to obtain an account database and a device database, and as shown in FIG. 2, the account database stores the corresponding relation between the application program identifier and the account identifier and the corresponding relation between the account identifier and the device identifier. The corresponding relation between the application program identifier and the device identifier is stored in the device database.
In the embodiment of the present application, when the message to be pushed includes a message content and/or a sending condition, the long connection server 20 is configured to determine a target database corresponding to the sending condition, select a target device identifier matching the sending condition from the target database, and determine the target client device corresponding to the target device identifier.
In the embodiment of the application, the account database and the equipment database are established on the long connection server, and the message content can be issued in batch or in full to the client equipment according to the sending condition.
According to an aspect of the embodiment of the application, a method embodiment of a message processing method is provided, and the method is applied to a long connection server. Fig. 3 is a flowchart of a message processing method according to an embodiment of the present application, as shown in fig. 3, where the method includes:
step S11, obtaining a message to be pushed;
in the embodiment of the application, the message to be pushed carries message content and the sending condition of the message content, wherein the sending condition comprises the following steps: target application identification, and/or target account identification.
As one example, the message content may be version update message content of the application, or real-time browsing data content of the application, or the like. The transmission conditions are used to select to which client devices the message content is to be transmitted.
Step S12, determining target client equipment corresponding to the message to be pushed;
in the embodiment of the application, the target client device corresponding to the message to be pushed is determined, which comprises the following steps of A1-A3:
and step A1, determining a target database corresponding to the transmission condition.
In the embodiment of the present application, the transmission conditions include: target application identification, and/or target account identification. When the transmission condition includes the target application program identifier, the equipment database is used as a target database, and the corresponding relation between the application program identifier and the equipment identifier is stored in the equipment database.
When the transmission condition comprises a target application program identifier and a target account identifier, or the transmission condition comprises a target account identifier, the account database is used as a target database, and the corresponding relation between the application program identifier and the account identifier and the corresponding relation between the account identifier and the equipment identifier are stored in the account database.
And step A2, selecting a target equipment identifier matched with the transmission condition from a target database.
In the embodiment of the application, when the sending condition comprises the target application program identifier, the target device identifier corresponding to the target application program identifier is queried from the device database.
And when the sending condition comprises the target application program identifier and the target account identifier, or the sending condition comprises the target account identifier, inquiring an account identifier set corresponding to the target application program identifier from an account database, and inquiring a target equipment identifier corresponding to the target account identifier from the account identifier set.
And step A3, determining target client equipment corresponding to the target equipment identifier.
In the embodiment of the application, the account database and the equipment database are queried according to the sending conditions, and the target client equipment matched with the message content can be screened out, so that the message is sent to part or all of the client equipment.
Step S13, determining a long connection communication link between the target client device and the target client device;
in the embodiment of the application, the long connection server stores the long connection communication link between the long connection server and the client device, and the long connection server stores the corresponding relation between the long connection communication link and the client device, so that the long connection communication link corresponding to the target device identifier can be determined according to the corresponding relation.
Step S14, the message to be pushed is sent to the target client device through the long connection communication link.
As an example, as shown in fig. 4, the following diagram is that a service backend pushes a message to be pushed to a long connection server, where the message to be pushed includes: the message content is msg1, and the sending conditions are AppId1 and UID2. The long connection server searches an account database for the target client devices meeting AppId1 and UID2, namely the client device B and the client device C, and then sends message content msg1 to the client device B and the client device C through a long connection communication link.
When receiving the message to be pushed by the service background, the application adopts the long-connection communication link to actively send the message to be pushed to the client device, thereby ensuring that the data of the client device can be updated in time, and the client device is not required to actively request the data from the long-connection server. The problems of untimely information updating, flow waste and low efficiency of the client device in the prior art when synchronizing data are solved.
The method provided by the embodiment of the application further comprises the following steps: and establishing a long connection communication link with the target client equipment according to the received registration information, and sending the registration information after the target client equipment triggers login operation. The registration information includes: application identification, account identification and device identification.
In addition, the target client device can also send a heartbeat packet when running, and when the long connection server receives the heartbeat packet sent by the target client device, the long connection communication link is kept valid according to the heartbeat packet. The embodiment of the application can maintain the long-connection communication link to be in an effective state all the time by receiving the heartbeat packet fed back by the client device in real time, thereby ensuring that the long-connection server can push the message to the client device in time.
Fig. 5 is a flowchart of an information processing method according to an embodiment of the present application, as shown in fig. 5, the method may include the following steps:
step S21, when confirming that a long connection communication link between the target client device and the target client device is invalid, marking a message to be pushed to obtain a target message;
in the embodiment of the application, when the heartbeat packet sent by the target client is not received within the preset time length, the failure of the long connection communication link between the long connection server and the target client device is confirmed, and the message to be pushed is marked at the moment to obtain the target message.
Step S22, storing the target message into a target message database corresponding to the target message;
in the embodiment of the present application, step S22, storing the target message to the target message database corresponding to the target message, includes the following steps B2201-B2203:
step B2201, obtaining a storage mode of message content;
in an embodiment of the present application, the storage mode includes at least one of the following: storage deadlines, storage types, and storage formats.
Step B2202, determining a target message database corresponding to the target database;
in an embodiment of the present application, the message database includes: an account message database and a device message database, wherein when the target database is the account database, the target message database is the account message database; when the target database is a device database, the target message database is a device message database.
As shown in fig. 6, the account message database stores the correspondence between the application identifier and the account identifier, and the correspondence between the account identifier and the message content. The corresponding relation between the application program identifier and the device identifier and the corresponding relation between the device identifier and the message content are stored in the device message database.
Step B2203, storing the message content in the target message database according to the storage mode.
Step S23, when the long connection communication link with the target client device is detected to be valid, the target message is sent to the target client device through the long connection push link.
In the embodiment of the application, before the target message is sent to the target client device through the long-connection push link, the current time and the validity period of the target message are also required to be determined, and when the current time is within the validity period, the target message is sent to the target client device through the long-connection communication link.
In the embodiment of the application, when the long connection communication link between the client device and the long connection server fails, the message content is stored first, and when the long connection communication link between the client device and the long connection server is detected to be effective, the message content is reissued to the client device, so that the client device is ensured not to miss the message content.
Fig. 7 is a flowchart of an information processing method according to an embodiment of the present application, where, as shown in fig. 7, after a message to be pushed is sent to a target client device through a long-connection communication link, the method includes the following steps:
step S31, marking the message to be pushed to obtain a target message;
Step S32, storing the target message into a target message database corresponding to the target message;
in the embodiment of the present application, step S32, storing the target message to the target message database corresponding to the target message, includes the following steps C3201-C3203:
step C3201, obtaining a storage mode of message content;
in an embodiment of the present application, the storage mode includes at least one of the following: storage deadlines, storage types, and storage formats.
Step C3202, determining a target message database corresponding to the target database;
in an embodiment of the present application, the message database includes: an account message database and a device message database, wherein when the target database is the account database, the target message database is the account message database; when the target database is a device database, the target message database is a device message database.
Referring to fig. 6, the account message database stores the correspondence between the application identifiers and the account identifiers, and the correspondence between the account identifiers and the message content. The corresponding relation between the application program identifier and the device identifier and the corresponding relation between the device identifier and the message content are stored in the device message database.
Step C3203, storing the message content in the target message database according to the storage mode.
Step S33, when the confirmation message fed back by the target client is not received within the preset time threshold, extracting the target message from the target message database;
step S34, the target message is sent to the target client device over the long-connection communication link.
In the embodiment of the application, before the target message is sent to the target client device through the long-connection push link, the current time and the validity period of the target message are also required to be determined, and when the current time is within the validity period, the target message is sent to the target client device through the long-connection communication link.
In the embodiment of the application, after the long connection server sends the message, the sent message is stored, and when the confirmation message fed back by the target client is not received within the preset time threshold, the target message is reissued to the client device, so that the client device is ensured not to miss the message.
After the long connection server issues the target message, the long connection server marks the target message and stores the target message. If the client device receives the target message, a confirmation message is sent to the long connection server, and the long connection server confirms that the client device has received the message according to the confirmation message, and the long connection server cancels the mark on the target message in the message library. If the long connection server does not receive the confirmation message fed back by the client device, confirming the target message which is not received by the client device, and performing message reissue operation at the moment.
According to the embodiment of the application, the message content is stored in the target message database when the message content cannot be directly sent to the target client device by establishing the message reissue mechanism, the message is monitored in real time, and reissue is performed when long connection communication is established between the long connection server and the target client device, so that the message content can be directly sent to the client device when the client device and the long connection server establish communication, and the client device is not required to actively request the long connection server to acquire the message content.
Fig. 8 is a flowchart of an information processing method according to an embodiment of the present application, as shown in fig. 8, the method may include the following steps:
step S41, acquiring a history message set corresponding to the target client device;
in an embodiment of the present application, the history message set includes all messages that the long connection server has sent to the target client device in the past.
Step S42, determining a target message according to the historical message set, wherein the target message is a message which is not successfully sent to the target client;
in the embodiment of the application, the message carrying the mark in the history message set is used as the target message, namely the target message is the message which is not successfully sent to the target client.
And step S43, the target message is sent to the target client device through the long connection communication link.
In the embodiment of the application, before the target message is sent to the target client device through the long-connection push link, the current time and the validity period of the target message are also required to be determined, and when the current time is within the validity period, the target message is sent to the target client device through the long-connection communication link.
In the embodiment of the application, the long connection server periodically detects whether the missed messages exist or not, and when the missed messages exist, the long connection server supplements the messages to the client equipment.
Fig. 9 is a block diagram of a message processing apparatus according to an embodiment of the present application, where the apparatus may be implemented as part or all of an electronic device by software, hardware, or a combination of both. As shown in fig. 9, the apparatus includes:
an obtaining module 91, configured to obtain a message to be pushed;
a first determining module 92, configured to determine a target client device corresponding to the message to be pushed;
a second determining module 93 for determining a long connection communication link with the target client device;
a sending module 94, configured to send the message to be pushed to the target client device through the long-connection communication link.
In the embodiment of the application, the device further comprises an establishing module, which is used for establishing a long connection communication link with the target client device according to the received registration information, and the registration information is sent after the target client device triggers the login operation.
In the embodiment of the application, the message to be pushed carries message content and the sending condition of the message content;
the first determination module 92 includes:
a query sub-module, configured to determine a target database corresponding to the transmission condition;
a selecting sub-module, configured to select a target device identifier matching the transmission condition from a target database;
and the determining submodule is used for determining the target client equipment corresponding to the target equipment identifier.
In the embodiment of the present application, the transmission conditions include: target application identification, and/or target account identification;
the query sub-module is used for taking the equipment database as a target database when the sending condition comprises the target application program identifier, wherein the corresponding relation between the application program identifier and the equipment identifier is stored in the equipment database;
or the query sub-module is used for taking the account database as a target database when the sending condition comprises a target application program identifier and a target account identifier or the sending condition comprises the target account identifier, wherein the account database stores the corresponding relation between the application program identifier and the account identifier and the corresponding relation between the account identifier and the equipment identifier.
In the embodiment of the application, the device also comprises a message reissue module, which comprises:
the marking sub-module is used for marking the message to be pushed to obtain a target message when confirming that the long-connection communication link between the target client device and the target client device is invalid;
the storage sub-module is used for storing the target message to a target message database corresponding to the target message;
and the sending submodule is used for sending the target message to the target client device through the long-connection push link when the long-connection communication link between the target client device and the target client device is detected to be effective.
The message reissue module in the embodiment of the application comprises:
the marking sub-module is used for marking the message to be pushed to obtain a target message;
the storage sub-module is used for storing the target message to a target message database corresponding to the target message;
the extraction sub-module is used for extracting the target message from the target message database when the confirmation message fed back by the target client is not received within the preset time threshold;
and the sending submodule is used for sending the target message to the target client device through the long-connection communication link.
In the embodiment of the application, a message reissuing module is used for acquiring a history message set corresponding to target client equipment; determining a target message according to the historical message set, wherein the target message is a message which is not successfully sent to the target client; the target message is sent to the target client device over the long-connection communication link.
In the embodiment of the application, the storage submodule is used for acquiring a storage mode of the message content, and the storage mode at least comprises one of the following: storage deadlines, storage types, and storage formats; determining a target message database corresponding to the target database; and storing the message content to a target message database according to a storage mode.
In the embodiment of the application, the message reissue module further comprises: the validity period detection sub-module is used for determining the current time and the validity period of the target message; and when the current time is within the validity period, sending the target message to the target client device through the long-connection communication link.
The embodiment of the application also provides an electronic device, as shown in fig. 10, the electronic device may include: the device comprises a processor 1501, a communication interface 1502, a memory 1503 and a communication bus 1504, wherein the processor 1501, the communication interface 1502 and the memory 1503 are in communication with each other through the communication bus 1504.
A memory 1503 for storing a computer program;
the processor 1501, when executing the computer program stored in the memory 1503, implements the steps of the above embodiments.
The communication bus mentioned by the above terminal may be a peripheral component interconnect standard (Peripheral Component Interconnect, abbreviated as PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated as EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the terminal and other devices.
The memory may include random access memory (Random Access Memory, RAM) or non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processing, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In yet another embodiment of the present application, a computer readable storage medium is provided, in which instructions are stored, which when run on a computer, cause the computer to perform the information processing method according to any one of the above embodiments.
In a further embodiment of the present application, a computer program product comprising instructions which, when run on a computer, cause the computer to perform the information processing method according to any of the above embodiments is also provided.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk), etc.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.
The foregoing is only a specific embodiment of the application to enable those skilled in the art to understand or practice the application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (13)

1. A method of message processing comprising:
acquiring a message to be pushed, wherein the message to be pushed carries message content and a sending condition of the message content, and the sending condition comprises a target application program identifier and/or a target account identifier;
the determining the target client device corresponding to the message to be pushed comprises the following steps: the target database corresponding to the transmission condition is determined as follows: when the sending condition comprises a target application program identifier, taking a device database as the target database, wherein the corresponding relation between the application program identifier and the device identifier is stored in the device database, or when the sending condition comprises a target application program identifier and a target account identifier or the sending condition comprises a target account identifier, taking an account database as the target database, and storing the corresponding relation between the application program identifier and the account identifier and the corresponding relation between the account identifier and the device identifier in the account database; selecting a target equipment identifier matched with the sending condition from the target database; determining the target client device corresponding to the target device identifier;
Querying a long-connection communication link with the target client device;
and sending the message to be pushed to the target client device through the long-connection communication link.
2. The method according to claim 1, wherein the method further comprises:
and establishing the long connection communication link with the target client equipment according to the received registration information, wherein the registration information is sent after the target client equipment triggers login operation.
3. The method according to claim 1, wherein the method further comprises:
when the long connection communication link between the target client device and the target client device is confirmed to be invalid, marking the message to be pushed to obtain a target message;
storing the target message to a target message database corresponding to the target message;
and when the long connection communication link between the target client device and the target client device is detected to be effective, the target message is sent to the target client device through the long connection push link.
4. The method according to claim 1, wherein after said sending the message to be pushed to the target client device over the long-connection communication link, the method comprises:
Marking the message to be pushed to obtain a target message;
storing the target message to a target message database corresponding to the target message;
when the confirmation message fed back by the target client is not received within a preset time threshold, extracting the target message from the target message database;
and sending the target message to the target client device through the long-connection communication link.
5. The method according to claim 1, wherein the method further comprises:
acquiring a history message set corresponding to the target client device;
determining a target message according to the historical message set, wherein the target message is a message which is not successfully sent to the target client;
and sending the target message to the target client device through the long-connection communication link.
6. The method according to any one of claims 3-4, wherein storing the target message in a target message database corresponding to the target message comprises:
obtaining a storage mode of the message content, wherein the storage mode at least comprises one of the following: storage deadlines, storage types, and storage formats;
Determining a target message database corresponding to the target database;
and storing the message content to the target message database according to the storage mode.
7. The method according to any of claims 3-5, wherein prior to reissuing the target message to the target client device over the long-connection communication link, the method further comprises:
determining the current time and the validity period of the target message;
and when the current time is within the validity period, sending the target message to the target client device through a long-connection communication link.
8. A message processing apparatus, comprising:
the information processing device comprises an acquisition module, a transmission module and a storage module, wherein the acquisition module is used for acquiring information to be pushed, the information to be pushed carries information content and transmission conditions of the information content, and the transmission conditions comprise a target application program identifier and/or a target account identifier;
the first determining module is configured to determine a target client device corresponding to the message to be pushed, and includes: the target database corresponding to the transmission condition is determined as follows: when the sending condition comprises a target application program identifier, taking a device database as the target database, wherein the corresponding relation between the application program identifier and the device identifier is stored in the device database, or when the sending condition comprises a target application program identifier and a target account identifier or the sending condition comprises a target account identifier, taking an account database as the target database, and storing the corresponding relation between the application program identifier and the account identifier and the corresponding relation between the account identifier and the device identifier in the account database; selecting a target equipment identifier matched with the sending condition from the target database; determining the target client device corresponding to the target device identifier;
A second determining module for determining a long-connection communication link with the target client device;
and the sending module is used for sending the message to be pushed to the target client device through the long-connection communication link.
9. A message processing system comprising a long connection server;
the long connection server is used for acquiring a message to be pushed, wherein the message to be pushed carries message content and a sending condition of the message content, and the sending condition comprises a target application program identifier and/or a target account identifier; the determining the target client device corresponding to the message to be pushed comprises the following steps: the target database corresponding to the transmission condition is determined as follows: when the sending condition comprises a target application program identifier, taking a device database as the target database, wherein the corresponding relation between the application program identifier and the device identifier is stored in the device database, or when the sending condition comprises a target application program identifier and a target account identifier or the sending condition comprises a target account identifier, taking an account database as the target database, and storing the corresponding relation between the application program identifier and the account identifier and the corresponding relation between the account identifier and the device identifier in the account database; selecting a target equipment identifier matched with the sending condition from the target database; determining the target client device corresponding to the target device identifier; determining a long-connection communication link with the target client device; and sending the message to be pushed to the target client device through the long-connection communication link.
10. The system of claim 9, wherein the system further comprises: and the service background is used for sending the message to be pushed to the long connection server.
11. The system of claim 10, wherein the system further comprises at least one client device;
the client device is used for sending an application program identifier, a device identifier and an account identifier to the long connection server through a long connection communication link corresponding to the client device when a login operation is detected;
the long connection server is used for establishing an account database and a device database according to the application program identifier, the device identifier and the account identifier.
12. A storage medium comprising a stored program, wherein the program when run performs the method steps of any of the preceding claims 1 to 7.
13. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus; wherein:
a memory for storing a computer program;
A processor for performing the method steps of any of claims 1-7 by running a program stored on a memory.
CN202011614289.8A 2020-12-30 2020-12-30 Message processing method, device, system, electronic equipment and storage medium Active CN112650606B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011614289.8A CN112650606B (en) 2020-12-30 2020-12-30 Message processing method, device, system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011614289.8A CN112650606B (en) 2020-12-30 2020-12-30 Message processing method, device, system, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112650606A CN112650606A (en) 2021-04-13
CN112650606B true CN112650606B (en) 2023-09-01

Family

ID=75364447

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011614289.8A Active CN112650606B (en) 2020-12-30 2020-12-30 Message processing method, device, system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112650606B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113285994A (en) * 2021-05-17 2021-08-20 深圳市欧瑞博科技股份有限公司 Message sending method, device, server and storage medium
CN115914329A (en) * 2021-09-28 2023-04-04 中国联合网络通信集团有限公司 Information pushing method and device, electronic equipment and readable storage medium
CN114579822B (en) * 2021-12-13 2023-05-30 北京市建筑设计研究院有限公司 Modeling tool pushing method and device, electronic equipment and storage medium
CN115297162B (en) * 2022-06-27 2024-03-22 青岛海尔科技有限公司 Message sending method and device, storage medium and electronic device
CN115623063A (en) * 2022-09-26 2023-01-17 北京奇艺世纪科技有限公司 Message pushing method, device, equipment and storage medium for full-scale equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6356893B1 (en) * 1996-05-10 2002-03-12 Yuichiro Itakura Message searching system and terminal
CN103929350A (en) * 2013-01-16 2014-07-16 阿里巴巴集团控股有限公司 Information pushing method, device and system
CN104539740A (en) * 2015-01-26 2015-04-22 北京奇艺世纪科技有限公司 Information push method and device
WO2016177285A1 (en) * 2015-05-07 2016-11-10 阿里巴巴集团控股有限公司 Data pushing method and device
CN107196904A (en) * 2017-03-31 2017-09-22 北京奇艺世纪科技有限公司 The transmission method and system of class message are controlled between service end and client
CN109714249A (en) * 2018-12-28 2019-05-03 武汉斗鱼网络科技有限公司 A kind of method for pushing and relevant apparatus of small routine message

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014094468A1 (en) * 2012-12-17 2014-06-26 北京奇虎科技有限公司 System, method and browser client for enabling browser data synchronization
CN103338254B (en) * 2013-06-28 2015-05-27 腾讯科技(深圳)有限公司 Terminal across application pushing method, device, terminal and system
CN108156205B (en) * 2016-12-06 2021-01-22 阿里巴巴(中国)有限公司 Message pushing method, client, server and programmable device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6356893B1 (en) * 1996-05-10 2002-03-12 Yuichiro Itakura Message searching system and terminal
CN103929350A (en) * 2013-01-16 2014-07-16 阿里巴巴集团控股有限公司 Information pushing method, device and system
CN104539740A (en) * 2015-01-26 2015-04-22 北京奇艺世纪科技有限公司 Information push method and device
WO2016177285A1 (en) * 2015-05-07 2016-11-10 阿里巴巴集团控股有限公司 Data pushing method and device
CN107196904A (en) * 2017-03-31 2017-09-22 北京奇艺世纪科技有限公司 The transmission method and system of class message are controlled between service end and client
CN109714249A (en) * 2018-12-28 2019-05-03 武汉斗鱼网络科技有限公司 A kind of method for pushing and relevant apparatus of small routine message

Also Published As

Publication number Publication date
CN112650606A (en) 2021-04-13

Similar Documents

Publication Publication Date Title
CN112650606B (en) Message processing method, device, system, electronic equipment and storage medium
EP3968607B1 (en) Service invocation methods
WO2014166265A1 (en) Method, terminal, cache server and system for updating webpage data
US9596313B2 (en) Method, terminal, cache server and system for updating webpage data
CN115004673B (en) Message pushing method, device, electronic equipment and computer readable medium
CN109451078B (en) Transaction processing method and device under distributed architecture
US11909840B2 (en) Resource subscription method, device, and storage medium
CN104601702A (en) Cluster remote procedure call method and system
CN112039718B (en) Upgrade state detection method, server, equipment and storage medium
CN105282682B (en) Method for realizing resource attribute notification and public service entity
CN110297663B (en) Application program awakening method, device, terminal and medium
CN112398797B (en) Data transmission method, receiving device, transmitting device, medium, equipment and system
CN112630557A (en) Equipment state detection method, device, equipment and medium
BRPI0812140B1 (en) METHOD FOR IDENTIFYING A SERVICE, APPLICATION PROTOCOL PORT AND SERVICE PROCESSING SYSTEM
EP2760178B1 (en) Method, apparatus and system for obtaining object
CN108737460B (en) Connection processing method and client
CN111726417B (en) Delay control method, device, server and storage medium
CN114338794A (en) Service message pushing method and device, electronic equipment and storage medium
CN111880949B (en) Service information processing method, system, device, server and terminal
CN109688204B (en) File downloading method, node and terminal based on NDN (named data networking)
CN113014456A (en) Monitoring data transmission system, method, device, equipment and storage medium
CN111245874B (en) Information pushing method, device, server and storage medium
CN113794622A (en) Message processing method and device, electronic equipment and storage medium
CN112995321A (en) MQTT protocol-based method for remotely and immediately updating client
CN108989443B (en) Method and system for pushing message to mobile terminal by push server

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