CN110311962B - Message pushing method, system and computer readable storage medium - Google Patents

Message pushing method, system and computer readable storage medium Download PDF

Info

Publication number
CN110311962B
CN110311962B CN201910533065.5A CN201910533065A CN110311962B CN 110311962 B CN110311962 B CN 110311962B CN 201910533065 A CN201910533065 A CN 201910533065A CN 110311962 B CN110311962 B CN 110311962B
Authority
CN
China
Prior art keywords
pushed
message
messages
management server
server
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
CN201910533065.5A
Other languages
Chinese (zh)
Other versions
CN110311962A (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 Property and Casualty Insurance Company of China Ltd
Original Assignee
Ping An Property and Casualty 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 Property and Casualty Insurance Company of China Ltd filed Critical Ping An Property and Casualty Insurance Company of China Ltd
Priority to CN201910533065.5A priority Critical patent/CN110311962B/en
Publication of CN110311962A publication Critical patent/CN110311962A/en
Application granted granted Critical
Publication of CN110311962B publication Critical patent/CN110311962B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • 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/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • H04L67/5651Reducing the amount or size of exchanged application data

Abstract

The embodiment of the invention discloses a message pushing method, a message pushing system and a computer readable storage medium. The method belongs to a business process optimization technology, and comprises the following steps: if a message to be pushed sent by a service terminal is received, the push management server adds the message to be pushed into a message set to be pushed; the push management server judges whether the number of the messages to be pushed in the message set to be pushed is equal to a preset number threshold value; if yes, the push management server compresses the message to be pushed in the message set to be pushed into a message compressed file to be pushed; the push management server sends the compressed file of the message to be pushed to the proxy server; the proxy server decompresses the compressed file of the message to be pushed to obtain a plurality of messages to be pushed; the proxy server sends each message to be pushed to the APNS server one by one so that the APNS server pushes the message to be pushed to the user terminal, thereby reducing the data transmission pressure, avoiding the congestion of a transmission link and improving the sending efficiency of the push message.

Description

Message pushing method, system and computer readable storage medium
Technical Field
The present invention relates to the field of pushing technologies, and in particular, to a message pushing method, a system, and a computer readable storage medium.
Background
Apple push notification service (Apple Push Notification service, APNS), refers to push services offered by american apple corporation. Apple push notification services are provided by an apple company deployed APNS server (the APNS server is deployed outside of the continental region). The specific process is that firstly, a message to be pushed is sent to an APNS server. The message to be pushed is then pushed to the user terminal (apple terminal) by the APNS server.
Because the APNS servers are mostly deployed in foreign areas (for example, the united states), the APNS servers need to be forwarded through a multi-layer network, and the situation of transmission link congestion is easy to occur, so that the message pushing speed is relatively high.
Disclosure of Invention
The embodiment of the invention provides a message pushing method, a device, computer equipment and a storage medium, which aim to solve the problem of low message pushing speed in the prior art.
In a first aspect, an embodiment of the present invention provides a message pushing method, 1. The method is applied to a message pushing system, where the message pushing system includes a pushing management server and a proxy server, and the method includes:
If a message to be pushed sent by a service terminal is received, the push management server adds the message to be pushed into a message set to be pushed;
the push management server judges whether the number of the messages to be pushed in the message set to be pushed is equal to a preset number threshold;
if the number of the messages to be pushed in the message set to be pushed is equal to a preset number threshold, the push management server compresses the messages to be pushed in the message set to be pushed into a message compression file to be pushed;
the push management server sends the message compression file to be pushed to the proxy server;
if a message compression file to be pushed, which is sent by the push management server, is received, decompressing the message compression file to be pushed by the proxy server to obtain a plurality of messages to be pushed;
and the proxy server sends the messages to be pushed to an APNS server one by one so that the APNS server pushes the messages to be pushed to a user terminal.
In a second aspect, an embodiment of the present invention further provides a message pushing system, where the message pushing system includes a push management server and a proxy server, the push management server includes a first joining unit, a judging unit, a first compressing unit, and a first sending unit, and the proxy server includes a first decompressing unit and a second sending unit, where:
The first joining unit is used for joining the message to be pushed into the message set to be pushed if the message to be pushed sent by the service terminal is received;
the judging unit is used for judging whether the number of the messages to be pushed in the message set to be pushed is equal to a preset number threshold value or not;
the first compression unit is used for compressing the messages to be pushed in the message set to be pushed into message compression files to be pushed if the number of the messages to be pushed in the message set to be pushed is equal to a preset number threshold;
the first sending unit is used for sending the message compression file to be pushed to the proxy server;
the first decompression unit is used for decompressing the message compression file to be pushed to acquire a plurality of messages to be pushed if the message compression file to be pushed sent by the push management server is received;
and the second sending unit is used for sending the messages to be pushed to the APNS server one by one so that the APNS server pushes the messages to be pushed to the user terminal.
In a third aspect, an embodiment of the present invention further provides a message pushing system, including a push management server and a proxy server, where the push management server and the proxy server both include a memory and a processor, the memory stores a computer program, and the push management server and the processor of the proxy server implement the above method together when executing the corresponding computer program.
In a fourth aspect, embodiments of the present invention also provide a computer readable storage medium storing a computer program which, when executed by at least two processors, jointly implements the above-described method.
The embodiment of the invention provides a message pushing method, a message pushing device, computer equipment and a storage medium. Wherein the method comprises the following steps: if a message to be pushed sent by a service terminal is received, the push management server adds the message to be pushed into a message set to be pushed; the push management server judges whether the number of the messages to be pushed in the message set to be pushed is equal to a preset number threshold; if the number of the messages to be pushed in the message set to be pushed is equal to a preset number threshold, the push management server compresses the messages to be pushed in the message set to be pushed into a message compression file to be pushed; the push management server sends the message compression file to be pushed to the proxy server;
if a message compression file to be pushed, which is sent by the push management server, is received, decompressing the message compression file to be pushed by the proxy server to obtain a plurality of messages to be pushed; and the proxy server sends the messages to be pushed to an APNS server one by one so that the APNS server pushes the messages to be pushed to a user terminal. The data volume can be greatly reduced by compressing the message to be pushed in the message pushing set into the message compressing file to be pushed, so that the data transmission pressure is reduced, and the occurrence of the congestion condition of a transmission link is effectively avoided. Because the proxy server and the APNS server are in the same area, the proxy server can send the message to be pushed to the APNS server more easily, and therefore the sending efficiency of the message to be pushed is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of an application scenario of a message pushing method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a message pushing method according to an embodiment of the present invention;
fig. 3 is a flow chart of a message pushing method according to another embodiment of the present invention;
fig. 4 is a schematic sub-flowchart of a message pushing method according to an embodiment of the present invention;
fig. 5 is a schematic sub-flowchart of a message pushing method according to an embodiment of the present invention;
fig. 6 is a schematic sub-flowchart of a message pushing method according to an embodiment of the present invention;
FIG. 7 is a schematic block diagram of a message pushing system according to an embodiment of the present invention;
FIG. 8 is a schematic block diagram of a push management server of a message push system according to an embodiment of the present invention;
Fig. 9 is a schematic block diagram of a first compression unit of a push management server of a message push system according to an embodiment of the present invention;
fig. 10 is a schematic block diagram of a first sending unit of a push management server of a message push system according to an embodiment of the present invention;
fig. 11 is a schematic block diagram of a first decompression unit of a proxy server of a message push system according to an embodiment of the present invention;
fig. 12 is a schematic block diagram of a second sending unit of a proxy server of a message pushing system according to an embodiment of the present invention; and
fig. 13 is a schematic block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be understood that the terms "comprises" and "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
Referring to fig. 1 and fig. 2, fig. 1 is a schematic application scenario diagram of a message pushing method according to an embodiment of the present invention. Fig. 2 is a schematic flow chart of a message pushing method according to an embodiment of the present invention. The method is applied to a message pushing system, and the message pushing system comprises a pushing management server 2 and a proxy server 3. If receiving a message to be pushed sent by the service terminal 1, the push management server 2 adds the message to be pushed into a message set to be pushed; the push management server 2 judges whether the number of the messages to be pushed in the message set to be pushed is equal to a preset number threshold; if the number of the messages to be pushed in the message set to be pushed is equal to a preset number threshold, the push management server 2 compresses the messages to be pushed in the message set to be pushed into a message compression file to be pushed; the push management server 2 sends the message compression file to be pushed to the proxy server 3; if receiving the compressed file of the message to be pushed sent by the push management server 2, the proxy server 3 decompresses the compressed file of the message to be pushed to obtain a plurality of messages to be pushed; the proxy server 3 sends each message to be pushed to the APNS server 4 one by one so that the APNS server 4 pushes the message to be pushed to the user terminal 5.
Fig. 2 is a flow chart of a message pushing method according to an embodiment of the present invention. As shown, the method includes the following steps S1-S6.
S1, if a message to be pushed sent by a service terminal is received, a pushing management server adds the message to be pushed into a message set to be pushed.
In specific implementation, in the scheme, when the push management server receives the message to be pushed sent by the service terminal, the message to be pushed is not directly forwarded to the APNS server. But adds the message to be pushed into the message set to be pushed. When the number of the messages to be pushed in the message set to be pushed reaches a certain number, the messages to be pushed in the message set to be pushed are compressed and then sent to the proxy server.
S2, the push management server judges whether the number of the messages to be pushed in the message set to be pushed is equal to a preset number threshold value.
In the implementation, in the scheme, when the number of the messages to be pushed in the message set to be pushed reaches a certain number, the push management server compresses the messages to be pushed in the message set to be pushed and then sends the compressed messages to the proxy server. Therefore, when one message to be pushed is added to the message to be pushed set, the push management server judges whether the number of the messages to be pushed in the message to be pushed set is equal to a preset number threshold.
It should be noted that the number threshold may be set empirically by those skilled in the art, for example, in one embodiment, the number threshold is set to 1000.
S3, if the number of the messages to be pushed in the message set to be pushed is equal to a preset number threshold, the push management server compresses the messages to be pushed in the message set to be pushed into a message compression file to be pushed.
In a specific implementation, if the number of the messages to be pushed in the message set to be pushed is equal to a preset number threshold, the push management server compresses the messages to be pushed in the message set to be pushed into a message compression file to be pushed.
The data volume can be greatly reduced by compressing the message to be pushed in the message pushing set into the message compressing file to be pushed, so that the data transmission pressure is reduced, and the occurrence of the congestion condition of a transmission link is effectively avoided.
If the number of the messages to be pushed in the message set to be pushed does not reach the preset number threshold, compressing the messages to be pushed in the message set to be pushed into a message compression file to be pushed when the number of the messages to be pushed in the message set to be pushed reaches the preset number threshold.
And S4, the push management server sends the compressed file of the message to be pushed to the proxy server.
In a specific implementation, the push management server compresses the message to be pushed in the message set to be pushed into a message compressed file to be pushed, and then sends the message compressed file to be pushed to the proxy server.
Specifically, the push management server sends the compressed file of the message to be pushed to the proxy server through an HTTPS transmission mode.
In a specific implementation, the push management server sends the compressed file of the message to be pushed to the proxy server through an HTTPS transmission mode.
HTTPS (Hyper Text Transfer Protocol over Secure Socket Layer), a secure hypertext transfer protocol, which is a secure communication channel, was developed based on HTTP and used for information exchange using Secure Sockets Layer (SSL). The transmission safety of the compressed file of the message to be pushed can be improved through an HTTPS transmission mode.
In an embodiment, the push management server sends the to-be-pushed message compression file and the number of the to-be-pushed message compression file to the proxy server. Therefore, the proxy server can acquire the compression password and the receiving time record list of the message compression file to be pushed according to the number of the message compression file to be pushed.
S5, if the message compression file to be pushed sent by the push management server is received, the proxy server decompresses the message compression file to be pushed to obtain a plurality of messages to be pushed.
In a specific implementation, after receiving a message compression file to be pushed sent by a push management server, a proxy server correspondingly decompresses the message compression file to be pushed into a plurality of messages to be pushed, and then the proxy server sends each message to be pushed to an APNS server one by one so that the APNS server pushes the message to be pushed to a user terminal (apple terminal).
It should be noted that, in this embodiment, the proxy server is disposed in the united states, that is, in the same area as the APNS server, so that data transmission between the proxy server and the APNS server will be smoother.
And S6, the proxy server sends the messages to be pushed to the APNS server one by one so that the APNS server pushes the messages to be pushed to the user terminal.
In specific implementation, the proxy server sends each message to be pushed to the APNS server one by one so that the APNS server pushes the message to be pushed to the user terminal. Because the proxy server and the APNS server are in the same area, the proxy server can send the message to be pushed to the APNS server more easily, and therefore the sending efficiency of the message to be pushed is improved.
By applying the technical scheme of the embodiment of the invention, when receiving the message to be pushed sent by the service terminal, the push management server adds the message to be pushed into a message set to be pushed; the method comprises the steps that the number of messages to be pushed in the message set to be pushed is equal to a preset number threshold, and a push management server compresses the messages to be pushed in the message set to be pushed into a message compression file and sends the message compression file to be pushed to a proxy server; the proxy server decompresses the message compression file to be pushed to obtain a plurality of messages to be pushed; and the proxy server sends the messages to be pushed to an APNS server one by one so that the APNS server pushes the messages to be pushed to a service terminal. The data volume can be greatly reduced by compressing the message to be pushed in the message pushing set into the message compressing file to be pushed, so that the data transmission pressure is reduced, and the occurrence of the congestion condition of a transmission link is effectively avoided. Because the proxy server and the APNS server are in the same area, the proxy server can send the message to be pushed to the APNS server more easily, and therefore the sending efficiency of the message to be pushed is improved.
Fig. 3 is a flow chart of a message pushing method according to another embodiment of the present invention. As shown in fig. 3, the message pushing method of the present embodiment includes steps S210 to S280.
S210, if receiving a message to be pushed sent by a service terminal, a push management server records the receiving time of the message to be pushed.
In specific implementation, when receiving a message to be pushed sent by a service terminal, a push management server records the receiving time of the message to be pushed, wherein the receiving time is the time when the push management server receives the message to be pushed.
S220, the push management server adds the receiving time of the push request message to be pushed into a preset receiving time record table, wherein the receiving time record table is used for recording the receiving time of the message to be pushed in the message set to be pushed.
In a specific implementation, adding the receiving time of the message to be pushed of the push request to a preset receiving time record table, wherein the receiving time record table is used for recording the receiving time of the message to be pushed in the message set to be pushed. And then, the proxy server sends the messages to be pushed to the APNS server one by one according to the receiving time sequence of the messages to be pushed according to the receiving time record table.
S230, the push management server adds the message to be pushed into a message set to be pushed.
In specific implementation, in the scheme, when the push management server receives the message to be pushed sent by the service terminal, the message to be pushed is not directly forwarded to the APNS server. But adds the message to be pushed into the message set to be pushed. When the number of the messages to be pushed in the message set to be pushed reaches a certain number, the messages to be pushed in the message set to be pushed are compressed and then sent to the proxy server.
S240, the push management server judges whether the number of the messages to be pushed in the message set to be pushed is equal to a preset number threshold.
In the implementation, in the scheme, when the number of the messages to be pushed in the message set to be pushed reaches a certain number, the push management server compresses the messages to be pushed in the message set to be pushed and then sends the compressed messages to the proxy server. Therefore, when one message to be pushed is added to the message to be pushed set, the push management server judges whether the number of the messages to be pushed in the message to be pushed set is equal to a preset number threshold.
It should be noted that the number threshold may be set empirically by those skilled in the art, for example, in one embodiment, the number threshold is set to 1000.
S250, if the number of the messages to be pushed in the message set to be pushed is equal to a preset number threshold, the push management server compresses the messages to be pushed in the message set to be pushed into a message compression file to be pushed.
In a specific implementation, if the number of the messages to be pushed in the message set to be pushed is equal to a preset number threshold, the push management server compresses the messages to be pushed in the message set to be pushed into a message compression file to be pushed.
The data volume can be greatly reduced by compressing the message to be pushed in the message pushing set into the message compressing file to be pushed, so that the data transmission pressure is reduced, and the occurrence of the congestion condition of a transmission link is effectively avoided.
If the number of the messages to be pushed in the message set to be pushed does not reach the preset number threshold, compressing the messages to be pushed in the message set to be pushed into a message compression file to be pushed when the number of the messages to be pushed in the message set to be pushed reaches the preset number threshold.
In one embodiment, referring to fig. 4, the step S250 specifically includes the following steps: S31-S33.
S31, the push management server acquires the random password.
In the scheme, in order to improve the safety of the message to be pushed, the message to be pushed in the message set to be pushed is compressed into the message compressed file to be pushed in an encryption compression mode.
Specifically, a random password may be generated using a random password generation tool. Common random password generation tools include random password generators (Rand Pass).
S32, the push management server compresses the message to be pushed in the message set to be pushed into a message compression file to be pushed by taking the random password as a compression password.
In a specific implementation, the random password is used as a compression password to compress the message to be pushed in the message set to be pushed into a message compression file to be pushed. And storing the compressed password and the number of the compressed file of the message to be pushed correspondingly.
S33, the push management server numbers the compressed file of the message to be pushed, and stores the number of the compressed file of the message to be pushed, the compressed password and the receiving time record table.
In specific implementation, the push management server numbers the compressed file of the message to be pushed, and stores the number, the compression password and the receiving time record table of the compressed file of the message to be pushed. The receiving time record table records the receiving time of each message to be pushed contained in the message to be pushed compressed file.
Specifically, the push management server may number the compressed file of the message to be pushed according to the generation time of the compressed file of the message to be pushed, for example, in an embodiment, the generation time of the compressed file of the message to be pushed is 2019, 1 month, 3 days, 0 hour, 0 minutes, 0 seconds, and the number of the compressed file of the message to be pushed is 20190103000000.
And S260, the push management server sends the compressed file of the message to be pushed to the proxy server.
In a specific implementation, the push management server compresses the message to be pushed in the message set to be pushed into a message compressed file to be pushed, and then sends the message compressed file to be pushed to the proxy server.
Specifically, the push management server sends the compressed file of the message to be pushed to the proxy server through an HTTPS transmission mode.
In a specific implementation, the push management server sends the compressed file of the message to be pushed to the proxy server through an HTTPS transmission mode.
HTTPS (Hyper Text Transfer Protocol over Secure Socket Layer), a secure hypertext transfer protocol, which is a secure communication channel, was developed based on HTTP and used for information exchange using Secure Sockets Layer (SSL). The transmission safety of the compressed file of the message to be pushed can be improved through an HTTPS transmission mode.
In an embodiment, the push management server sends the to-be-pushed message compression file and the number of the to-be-pushed message compression file to the proxy server. Therefore, the proxy server can acquire the compression password and the receiving time record list of the message compression file to be pushed according to the number of the message compression file to be pushed.
S270, if receiving the compressed file of the message to be pushed sent by the push management server, the proxy server decompresses the compressed file of the message to be pushed to obtain a plurality of messages to be pushed.
In a specific implementation, after receiving a message compression file to be pushed sent by a push management server, a proxy server correspondingly decompresses the message compression file to be pushed into a plurality of messages to be pushed, and then the proxy server sends each message to be pushed to an APNS server one by one so that the APNS server pushes the message to be pushed to a user terminal (apple terminal).
It should be noted that, in this embodiment, the proxy server is disposed in the united states, that is, in the same area as the APNS server, so that data transmission between the proxy server and the APNS server will be smoother.
In an embodiment, the message compressed file to be pushed is an encrypted compressed file, referring to fig. 5, and step S270 above specifically includes the following steps S51-S53.
S51, the proxy server sends a password acquisition request to the push management server, wherein the password acquisition request comprises the number of the compressed file of the message to be pushed.
In a specific implementation, the proxy server sends a password acquisition request to the push management server. The password acquisition request comprises the number of the compressed file of the message to be pushed.
Correspondingly, when receiving a password acquisition request sent by a proxy server, the push management server searches the compressed password of the message compression file to be pushed from prestored password data according to the number of the message compression file to be pushed, and sends a first response message containing the compressed password of the message compression file to be pushed to the proxy server.
S52, the proxy server receives a first response message returned by the push management server, wherein the first response message comprises the compression password of the message compression file to be pushed.
In the implementation, the proxy server receives a first response message returned by the push management server, and analyzes the first response message to obtain the compression password of the message compression file to be pushed.
And S53, the proxy server decompresses the message compression file to be pushed according to the compression password so as to acquire a plurality of messages to be pushed.
In a specific implementation, the proxy server decompresses the compressed file of the message to be pushed according to the compressed password to obtain a plurality of messages to be pushed.
And S280, the proxy server sends the messages to be pushed to the APNS server one by one so that the APNS server pushes the messages to be pushed to the user terminal.
In specific implementation, the proxy server sends each message to be pushed to the APNS server one by one so that the APNS server pushes the message to be pushed to the user terminal. Because the proxy server and the APNS server are in the same area, the proxy server can send the message to be pushed to the APNS server more easily, and therefore the sending efficiency of the message to be pushed is improved.
In one embodiment, referring to fig. 6, the step S280 specifically includes the following steps: S61-S63.
S61, the proxy server sends a pushing sequence acquisition request to the pushing management server, wherein the pushing sequence acquisition request comprises the number of the compressed file of the message to be pushed.
In specific implementation, the proxy server sends a push sequence acquisition request to the push management server, where the push sequence acquisition request includes the number of the compressed file of the message to be pushed.
Correspondingly, when the push management server receives the sequential acquisition request, searching a receiving time record table corresponding to the message compression file to be pushed from prestored data according to the number of the message compression file to be pushed, and sending a second response message containing the receiving time record table to the proxy server. The receiving time record table records the receiving time of the message to be pushed in the message to be pushed compressed file.
S62, the proxy server receives a second response message returned by the push management server, wherein the second response message comprises a receiving time record table corresponding to the message compression file to be pushed.
In specific implementation, the proxy server receives a second response message returned by the push management server, and analyzes the second response message to obtain a receiving time record table corresponding to the compressed file of the message to be pushed.
And S63, the proxy server sends the messages to be pushed to an APNS server one by one according to the receiving time record list and the sequence of the receiving time of the messages to be pushed so that the APNS server pushes the messages to be pushed to a user terminal.
In a specific implementation, the proxy server sends each message to be pushed to an APNS server one by one according to the receiving time record table and the sequence of the receiving time of each message to be pushed, so that the APNS server pushes the message to be pushed to a user terminal.
Fig. 7 is a schematic block diagram of a message pushing system 100 according to an embodiment of the present invention. As shown in fig. 7, the present invention further provides a message pushing system 100100, corresponding to the above message pushing method. The message push system 100 includes a push management server 80 and a proxy server 90, where the push management server 80 includes a first joining unit 81, a judging unit 82, a first compressing unit 83, and a first transmitting unit 84, and the proxy server 90 includes a first decompressing unit 91 and a second transmitting unit 92, where:
the first joining unit 81 is configured to join the message to be pushed into the message set to be pushed if the message to be pushed sent by the service terminal is received;
a judging unit 82, configured to judge whether the number of the messages to be pushed in the set of messages to be pushed is equal to a preset number threshold;
a first compression unit 83, configured to compress the messages to be pushed in the set of messages to be pushed into a message compression file to be pushed if the number of the messages to be pushed in the set of messages to be pushed is equal to a preset number threshold;
A first sending unit 84, configured to send the compressed file of the message to be pushed to the proxy server;
the first decompressing unit 91 is configured to decompress the compressed file of the message to be pushed to obtain a plurality of messages to be pushed if the compressed file of the message to be pushed sent by the push management server is received;
and a second sending unit 92, configured to send each message to be pushed to an APNS server one by one, so that the APNS server pushes the message to be pushed to a user terminal.
In an embodiment, as shown in fig. 8, the push management server further includes a recording unit 85 and a second joining unit 86.
A recording unit 85, configured to record a receiving time of the message to be pushed;
a second joining unit 86, configured to join the receiving time of the push request message to be pushed to a preset receiving time record table, where the receiving time record table is used to record the receiving time of the message to be pushed in the message set to be pushed.
In one embodiment, as shown in fig. 9, the first compression unit 83 includes an obtaining unit 831, a second compression unit 832, and a numbering unit 833.
An obtaining unit 831, configured to obtain a random password;
A second compression unit 832, configured to compress the messages to be pushed in the set of messages to be pushed into a compressed file of the messages to be pushed by using the random password as a compression password;
and a numbering unit 833, configured to number the compressed file of the message to be pushed, and store the number, the compression password, and the receiving time record table of the compressed file of the message to be pushed.
In an embodiment, as shown in fig. 10, the first transmitting unit 84 includes a third transmitting unit 841.
A third sending unit 841, configured to send the to-be-pushed message compressed file and the number of the to-be-pushed message compressed file to the proxy server by using the push management server.
In an embodiment, as shown in fig. 11, the first decompression unit 91 includes a fourth transmission unit 911, a first receiving unit 912, and a second decompression unit 913.
A fourth sending unit 911, configured to send a password acquisition request to a push management server, where the password acquisition request includes a number of the compressed file of the message to be pushed;
a first receiving unit 912, configured to receive a first response message returned by the push management server, where the first response message includes a compressed password of the message compression file to be pushed;
The second decompressing unit 913 is configured to decompress the compressed file of the message to be pushed according to the compressed password to obtain a plurality of messages to be pushed.
In an embodiment, as shown in fig. 12, the second transmitting unit 92 includes a fifth transmitting unit 921, a second receiving unit 922, and a sixth transmitting unit 923.
A fifth sending unit 921, configured to send a push sequence acquisition request to the push management server, where the push sequence acquisition request includes a number of the compressed file of the message to be pushed;
a second receiving unit 922, configured to receive a second response message returned by the push management server, where the second response message includes a receiving time record table corresponding to the compressed file of the message to be pushed;
a sixth sending unit 923, configured to send each message to be pushed to an APNS server one by one according to the receiving time record table and according to the sequence of the receiving time of each message to be pushed, so that the APNS server pushes the message to be pushed to a user terminal.
It should be noted that, as will be clearly understood by those skilled in the art, the specific implementation process of the above-mentioned message pushing system 100 and each unit may refer to the corresponding description in the foregoing method embodiments, and for convenience and brevity of description, the description is omitted here.
The embodiment of the application also provides a message pushing system which comprises at least two pieces of computer equipment, wherein the message pushing system comprises a pushing management server and at least one proxy server. Referring to fig. 13, a schematic block diagram of a computer device according to an embodiment of the present application is provided. The computer device 500 may be a push management server or a proxy server, which has the same hardware structure.
With reference to FIG. 13, the computer device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the execution of the computer program 5032 in the non-volatile storage medium 503.
The network interface 505 is used for network communication with other devices. It will be appreciated by those skilled in the art that the structure shown in FIG. 13 is merely a block diagram of some of the structures associated with the present inventive arrangements and does not constitute a limitation of the computer device 500 to which the present inventive arrangements may be applied, and that a particular computer device 500 may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
Wherein the processors 502 of the push management server and the proxy server are configured to run computer programs 5032 stored in respective memories, to jointly implement the following steps:
if a message to be pushed sent by a service terminal is received, the push management server adds the message to be pushed into a message set to be pushed;
the push management server judges whether the number of the messages to be pushed in the message set to be pushed is equal to a preset number threshold;
if the number of the messages to be pushed in the message set to be pushed is equal to a preset number threshold, the push management server compresses the messages to be pushed in the message set to be pushed into a message compression file to be pushed;
the push management server sends the message compression file to be pushed to the proxy server;
if a message compression file to be pushed, which is sent by the push management server, is received, decompressing the message compression file to be pushed by the proxy server to obtain a plurality of messages to be pushed;
and the proxy server sends the messages to be pushed to an APNS server one by one so that the APNS server pushes the messages to be pushed to a user terminal.
In an embodiment, before implementing the step of adding the message to be pushed to the set of messages to be pushed, the processor 502 of the push management server further implements the following steps:
the push management server records the receiving time of the message to be pushed;
the push management server adds the receiving time of the push request message to be pushed into a preset receiving time record table, wherein the receiving time record table is used for recording the receiving time of the message to be pushed in the message set to be pushed.
In an embodiment, when implementing the step of compressing the message to be pushed in the message set to be pushed into a compressed file of the message to be pushed, the processor 502 of the push management server specifically implements the following steps:
the push management server acquires a random password;
the push management server compresses the messages to be pushed in the message set to be pushed into message compression files to be pushed by taking the random password as a compression password;
the push management server numbers the message compressed file to be pushed, and stores the number of the message compressed file to be pushed, the compressed password and the receiving time record table.
In an embodiment, when the step of sending the compressed file of the message to be pushed to the proxy server is implemented by the processor 502 of the push management server, the following steps are specifically implemented:
and the push management server sends the message compression file to be pushed and the serial number of the message compression file to be pushed to the proxy server.
In an embodiment, when implementing the step of decompressing the compressed file of the message to be pushed to obtain a plurality of messages to be pushed, the processor 502 of the proxy server specifically implements the following steps:
the proxy server sends a password acquisition request to the push management server, wherein the password acquisition request comprises the number of the compressed file of the message to be pushed;
the proxy server receives a first response message returned by the push management server, wherein the first response message comprises a compression password of the message compression file to be pushed;
and the proxy server decompresses the message compression file to be pushed according to the compression password so as to acquire a plurality of messages to be pushed.
In an embodiment, when the step of sending each message to be pushed to the APNS server one by one to push the message to be pushed to the user terminal by the APNS server is implemented by the processor 502 of the proxy server, the following steps are specifically implemented:
The proxy server sends a pushing sequence acquisition request to the pushing management server, wherein the pushing sequence acquisition request comprises the number of the compressed file of the message to be pushed;
the proxy server receives a second response message returned by the push management server, wherein the second response message comprises a receiving time record table corresponding to the message compression file to be pushed;
and the proxy server sends the messages to be pushed to an APNS server one by one according to the receiving time record list and the sequence of the receiving time of the messages to be pushed so that the APNS server pushes the messages to be pushed to a user terminal.
It should be appreciated that in an embodiment of the application, the processor 502 may be a central processing unit (Central Processing Unit, CPU), the processor 502 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSPs), application specific integrated circuits (Application Specific Integrated Circuit, ASICs), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Those skilled in the art will appreciate that all or part of the flow in a method embodying the above described embodiments may be accomplished by computer programs instructing the relevant hardware. The computer program may be stored in a storage medium that is a computer readable storage medium. The computer program is executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer readable storage medium. The storage medium stores a computer program. The computer program, when executed by at least two processors, causes the processors to perform the steps of:
if a message to be pushed sent by a service terminal is received, the push management server adds the message to be pushed into a message set to be pushed;
the push management server judges whether the number of the messages to be pushed in the message set to be pushed is equal to a preset number threshold;
if the number of the messages to be pushed in the message set to be pushed is equal to a preset number threshold, the push management server compresses the messages to be pushed in the message set to be pushed into a message compression file to be pushed;
The push management server sends the message compression file to be pushed to the proxy server;
if a message compression file to be pushed, which is sent by the push management server, is received, decompressing the message compression file to be pushed by the proxy server to obtain a plurality of messages to be pushed;
and the proxy server sends the messages to be pushed to an APNS server one by one so that the APNS server pushes the messages to be pushed to a user terminal.
In an embodiment, before executing the computer program to implement the step of adding the message to be pushed to a set of messages to be pushed, the processor further implements the steps of:
the push management server records the receiving time of the message to be pushed;
the push management server adds the receiving time of the push request message to be pushed into a preset receiving time record table, wherein the receiving time record table is used for recording the receiving time of the message to be pushed in the message set to be pushed.
In an embodiment, when the processor executes the computer program to implement the step of compressing the messages to be pushed in the set of messages to be pushed into a compressed file of messages to be pushed, the following steps are specifically implemented:
The push management server acquires a random password;
the push management server compresses the messages to be pushed in the message set to be pushed into message compression files to be pushed by taking the random password as a compression password;
the push management server numbers the message compressed file to be pushed, and stores the number of the message compressed file to be pushed, the compressed password and the receiving time record table.
In an embodiment, when the step of sending the compressed file of the message to be pushed to the proxy server is implemented by the processor 502 of the push management server, the following steps are specifically implemented:
and the push management server sends the message compression file to be pushed and the serial number of the message compression file to be pushed to the proxy server.
In an embodiment, when the processor executes the computer program to implement the step of decompressing the compressed file of the message to be pushed to obtain a plurality of messages to be pushed, the method specifically includes the following steps:
the proxy server sends a password acquisition request to the push management server, wherein the password acquisition request comprises the number of the compressed file of the message to be pushed;
The proxy server receives a first response message returned by the push management server, wherein the first response message comprises a compression password of the message compression file to be pushed;
and the proxy server decompresses the message compression file to be pushed according to the compression password so as to acquire a plurality of messages to be pushed.
In one embodiment, when the processor executes the computer program to implement the step of sending each message to be pushed to an APNS server one by one to push the message to be pushed to a user terminal by the APNS server, the following steps are specifically implemented:
the proxy server sends a pushing sequence acquisition request to the pushing management server, wherein the pushing sequence acquisition request comprises the number of the compressed file of the message to be pushed;
the proxy server receives a second response message returned by the push management server, wherein the second response message comprises a receiving time record table corresponding to the message compression file to be pushed;
and the proxy server sends the messages to be pushed to an APNS server one by one according to the receiving time record list and the sequence of the receiving time of the messages to be pushed so that the APNS server pushes the messages to be pushed to a user terminal.
The storage medium may be a U-disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, or other various computer-readable storage media that can store program codes.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be combined, divided and deleted according to actual needs. In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The integrated unit may be stored in a storage medium if implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention is essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a terminal, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention.
In the foregoing embodiments, the descriptions of the embodiments are focused on, and for those portions of one embodiment that are not described in detail, reference may be made to the related descriptions of other embodiments.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (7)

1. A message pushing method, wherein the method is applied to a message pushing system, the message pushing system comprises a pushing management server and a proxy server, and the method comprises the following steps:
if a message to be pushed sent by a service terminal is received, the push management server records the receiving time of the message to be pushed;
the push management server adds the receiving time of the push request message to be pushed into a preset receiving time record table, wherein the receiving time record table is used for recording the receiving time of the message to be pushed in the message set to be pushed;
The push management server judges whether the number of the messages to be pushed in the message set to be pushed is equal to a preset number threshold;
if the number of the messages to be pushed in the message set to be pushed is equal to a preset number threshold, the push management server acquires a random password;
the push management server compresses the messages to be pushed in the message set to be pushed into message compression files to be pushed by taking the random password as a compression password;
the push management server numbers the message compression file to be pushed according to the generation time of the message compression file to be pushed, and stores the number of the message compression file to be pushed, the compression password and the receiving time record table;
the push management server sends the message compression file to be pushed to the proxy server;
if a message compression file to be pushed, which is sent by the push management server, is received, decompressing the message compression file to be pushed by the proxy server to obtain a plurality of messages to be pushed;
and the proxy server sends the messages to be pushed to an APNS server one by one so that the APNS server pushes the messages to be pushed to a user terminal.
2. The message pushing method according to claim 1, wherein the pushing management server sends the message compression file to be pushed to the proxy server, including:
and the push management server sends the message compression file to be pushed and the serial number of the message compression file to be pushed to the proxy server.
3. The message pushing method according to claim 2, wherein the proxy server decompresses the message compression file to be pushed to obtain a plurality of messages to be pushed, including:
the proxy server sends a password acquisition request to the push management server, wherein the password acquisition request comprises the number of the compressed file of the message to be pushed;
the proxy server receives a first response message returned by the push management server, wherein the first response message comprises a compression password of the message compression file to be pushed;
and the proxy server decompresses the message compression file to be pushed according to the compression password so as to acquire a plurality of messages to be pushed.
4. The method of claim 1, wherein the proxy server sending each of the messages to be pushed to an APNS server one by one to push the messages to be pushed to a user terminal by the APNS server, comprising:
The proxy server sends a pushing sequence acquisition request to the pushing management server, wherein the pushing sequence acquisition request comprises the number of the compressed file of the message to be pushed;
the proxy server receives a second response message returned by the push management server, wherein the second response message comprises a receiving time record table corresponding to the message compression file to be pushed;
and the proxy server sends the messages to be pushed to an APNS server one by one according to the receiving time record list and the sequence of the receiving time of the messages to be pushed so that the APNS server pushes the messages to be pushed to a user terminal.
5. The message pushing system is characterized by comprising a pushing management server and a proxy server, wherein the pushing management server comprises a recording unit, a second joining unit, a judging unit, an acquiring unit, a second compressing unit, a numbering unit and a first sending unit, and the proxy server comprises a first decompressing unit and a second sending unit, wherein:
the recording unit is used for recording the receiving time of the message to be pushed if the message to be pushed sent by the service terminal is received;
The second joining unit is used for joining the receiving time of the message to be pushed of the push request into a preset receiving time recording table, and the receiving time recording table is used for recording the receiving time of the message to be pushed in the message set to be pushed;
the judging unit is used for judging whether the number of the messages to be pushed in the message set to be pushed is equal to a preset number threshold value or not;
the acquisition unit is used for acquiring a random password by the push management server if the number of the messages to be pushed in the message set to be pushed is equal to a preset number threshold;
the second compression unit is used for compressing the message to be pushed in the message set to be pushed into a message compression file to be pushed by taking the random password as a compression password;
the numbering unit is used for numbering the message compression file to be pushed according to the generation time of the message compression file to be pushed, and storing the number of the message compression file to be pushed, the compression password and the receiving time record table;
the first sending unit is used for sending the message compression file to be pushed to the proxy server;
the first decompression unit is used for decompressing the message compression file to be pushed to acquire a plurality of messages to be pushed if the message compression file to be pushed sent by the push management server is received;
And the second sending unit is used for sending the messages to be pushed to the APNS server one by one so that the APNS server pushes the messages to be pushed to the user terminal.
6. A message push system comprising a push management server and a proxy server, the push management server and the proxy server each comprising a memory and a processor, the memory having stored thereon a computer program, the push management server and the proxy server together implementing the method of any of claims 1-4 when the processors of the proxy server execute the respective computer programs.
7. A computer-readable storage medium, characterized in that the storage medium stores a computer program which, when executed by at least two processors, jointly implements the method according to any one of claims 1-4.
CN201910533065.5A 2019-06-19 2019-06-19 Message pushing method, system and computer readable storage medium Active CN110311962B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910533065.5A CN110311962B (en) 2019-06-19 2019-06-19 Message pushing method, system and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910533065.5A CN110311962B (en) 2019-06-19 2019-06-19 Message pushing method, system and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110311962A CN110311962A (en) 2019-10-08
CN110311962B true CN110311962B (en) 2023-09-08

Family

ID=68076835

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910533065.5A Active CN110311962B (en) 2019-06-19 2019-06-19 Message pushing method, system and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110311962B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111225044B (en) * 2019-12-31 2022-09-23 北京奇才天下科技有限公司 Client message pushing method, device and system
CN111488225B (en) * 2020-04-09 2023-09-05 深圳精智达技术股份有限公司 Message transmission method, server and computer readable storage medium for integrated object
CN112511456B (en) * 2020-12-21 2024-03-22 北京百度网讯科技有限公司 Flow control method, apparatus, device, storage medium, and computer program product

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104811364A (en) * 2014-01-24 2015-07-29 华为技术有限公司 Message pushing method, message pushing system, message proxy server and terminal equipment
CN104950836A (en) * 2014-03-26 2015-09-30 洛克威尔自动控制技术股份有限公司 On-premise data collection and ingestion using industrial cloud agents
CN107302549A (en) * 2016-04-14 2017-10-27 宾盛科技(武汉)有限公司 A kind of remote data transmission and storage system and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104811364A (en) * 2014-01-24 2015-07-29 华为技术有限公司 Message pushing method, message pushing system, message proxy server and terminal equipment
CN104950836A (en) * 2014-03-26 2015-09-30 洛克威尔自动控制技术股份有限公司 On-premise data collection and ingestion using industrial cloud agents
CN107302549A (en) * 2016-04-14 2017-10-27 宾盛科技(武汉)有限公司 A kind of remote data transmission and storage system and method

Also Published As

Publication number Publication date
CN110311962A (en) 2019-10-08

Similar Documents

Publication Publication Date Title
CN110311962B (en) Message pushing method, system and computer readable storage medium
US20050166053A1 (en) Method and system for associating a signature with a mobile device
US9727739B2 (en) Decrypting files for data leakage protection in an enterprise network
US10320951B2 (en) Systems and methods for establishing a virtual local area network
CN112035763A (en) Information processing method, device and system, electronic equipment and storage medium
US20150067066A1 (en) Provisioning Communication Services using Proxy Server in a Cloud
CN106817689B (en) High-reliability data subscription and release method and system
CN115021932A (en) Authentication method for handshake process of TLCP protocol
CN109194706B (en) Network resource dial testing method and terminal
CN114117482A (en) Database encryption method and device, electronic equipment and storage medium
WO2005015416A1 (en) Synchronization extent of mail client based on data link characteristics
WO2016037489A1 (en) Method, device and system for monitoring rcs spam messages
JP5416135B2 (en) Method, apparatus and system for realizing fingerprint technology
CN110913351B (en) Multicast control method, device, network equipment and storage medium
WO2019201111A1 (en) Information processing method, apparatus and device, and computer-readable storage medium
CN114650188A (en) Data secure transmission method and device based on proxy node
CN101534292B (en) Interconnecting and switching gateway, system and realization method thereof
WO2017107462A1 (en) P2p network-based data processing method, apparatus and system
CN114553938B (en) Communication message processing method and device, electronic equipment and storage medium
WO2020133345A1 (en) Method and apparatus for providing a user equipment with directions in a communication network
WO2018121353A1 (en) Method of testing data channel, test server, and test system
CN111064801B (en) OSD communication method, device and medium based on distributed file system
CN114520741B (en) Information pushing method, related equipment and system
CN114679689B (en) Method and device for forwarding multimedia message
EP4261724B1 (en) Session anonymizer

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