CN110149392A - A kind of management method and device of PUSH message - Google Patents
A kind of management method and device of PUSH message Download PDFInfo
- Publication number
- CN110149392A CN110149392A CN201910415279.2A CN201910415279A CN110149392A CN 110149392 A CN110149392 A CN 110149392A CN 201910415279 A CN201910415279 A CN 201910415279A CN 110149392 A CN110149392 A CN 110149392A
- Authority
- CN
- China
- Prior art keywords
- push
- message
- message queue
- target
- management system
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/12—Messaging; Mailboxes; Announcements
Abstract
This application provides a kind of management method of PUSH message and devices.The described method includes: push management system receive application program background server send after PUSH message, according to the type identification of the target terminal carried to PUSH message, and the corresponding relationship of pre-stored brand identity type identification and push mode, determine that target pushes mode, and then determine target message queue, in this way, push management system can will be stored to PUSH message to target message queue, the PUSH message stored in target message queue is then successively sent.Using the above method, it can guarantee that PUSH message is pushed using applicable push mode, the not corresponding situation of the push mode that the push mode for avoiding the background server of application program in the prior art from using may be supported with mobile terminal, that improves PUSH message is sent to rate and accuracy rate.
Description
Technical field
This application involves field of communication technology, in particular to the management method and device of a kind of PUSH message.
Background technique
Push is a kind of technological concept, refers to from server-side and send information to client in real time.PUSH message can refer to
The active message push that operation personnel is carried out by the background server of application program to the mobile terminal of user.Mobile terminal
Type is multifarious, and the push mode that different types of mobile terminal is supported is also different.For example, apple mobile terminal branch
Hold iOS Cloud push, Huawei's mobile terminal supports Huawei to push, and millet mobile terminal supports millet push, there are also it is some its
The mobile terminal of its type supports third party's push (such as friendly alliance's push, aurora push, a push).
As shown in Figure 1, for the schematic diagram of the push of message in the prior art.The background server of application program, which needs to push, to disappear
When breath, the push mode for needing to be supported respectively according to each mobile terminal sends PUSH message in each mobile terminal.Than
Such as, the type of mobile terminal be apple terminal when, the background server of application program need using iOS Cloud push mode into
Row push;The type of mobile terminal be Huawei's terminal when, the background server of application program need using Huawei push mode into
Row push;The type of mobile terminal be in the terminal of types such as emerging, OPPO or VIVO when, the background server of application program needs
Mode (such as aurora push) is pushed using third party to push.However, PUSH message needs with the continuous expansion of user group
The quantity for the mobile terminal being sent to also is being increasing, this is easy for causing the background server of application program in PUSH message
When, the push mode that used push mode may be supported with mobile terminal cannot be corresponding, such as occurs pushing using Huawei
The case where mode sends PUSH message to iPhone, and then there is the case where push failure.
Based on this, a kind of management method of PUSH message is needed at present, after solving application program in the prior art
The problem of push mode that the push mode that platform server uses may be supported with mobile terminal is not corresponding, leads to push failure.
Summary of the invention
This application provides a kind of management method of PUSH message and device, can be used for solving in the prior art using journey
The push mode that the push mode that the background server of sequence uses may be supported with mobile terminal is not corresponding, and push is caused to fail
Technical problem.
In a first aspect, the embodiment of the present application provides a kind of management method of PUSH message, the method is applied to push pipe
Reason system, the system comprises interface layer and service layer, the background server of the interface layer and multiple application programs passes through net
Network connection, the PUSH message that the background server for receiving the application program is sent;The service layer includes multiple message
Queue, the message queue is for storing PUSH message;The described method includes:
It is described push management system receive application program background server send to PUSH message, it is described to disappear wait push
Breath carries the type identification of target terminal;
The push management system is according to the type identification of the target terminal and pre-stored type identification and pushes away
The corresponding relationship for sending mode determines that target pushes mode;
The push management system pushes mode and pre-stored push mode and message queue according to the target
Corresponding relationship, determine target message queue;
The push management system will be described to PUSH message storage to the target message queue;
The push management system successively sends the PUSH message stored in the target message queue.
Using the above method, pushes management system and receiving after PUSH message, can be carried according to PUSH message
Target terminal type identification, come determine target push mode, and support the target push mode target message queue,
In this way, push management system can be by different PUSH messages according to the type identification of its target terminal respectively carried, distribution
Into different message queues, it thereby may be ensured that and pushed using applicable push mode, and then can be avoided existing skill
The not corresponding feelings of push mode that the push mode that the background server of application program uses in art may be supported with mobile terminal
Condition, that improves PUSH message is sent to rate and accuracy rate.
In one possible implementation, the push management system pushes mode according to the target, and in advance
The push mode of storage and the corresponding relationship of message queue, determine target message queue, comprising:
The push management system pushes mode and pre-stored push mode and message queue according to the target
Corresponding relationship, determine at least one alternate message queue;
The push management system obtains the load value of the alternate message queue;
The smallest alternate message queue of load value is determined as the target message queue by the push management system.
In this way, the processing capacity of whole system can be improved with the quantity of the PUSH message in unbalanced message queue, realize whole
The effect of the load balancing of a system.
In one possible implementation, the push management system obtain the candidate push mode load value it
Afterwards, further includes:
The push management system judges whether the load value of the candidate push mode is all larger than or is equal to first threshold,
If being all larger than or being equal to the first threshold, increase new message queue in the service layer, and will be described new
Message queue is determined as the target message queue;Otherwise, the smallest alternate message queue of load value is determined as the target
Message queue.
In this way, the embodiment of the present application can adjust the quantity of message queue according to the real time load situation of message queue, it is full
The needs that sufficient peak period business increases guarantee the timeliness of PUSH message so as to improve the transmitting efficiency of PUSH message.
In one possible implementation, the push management system pushes away the new message queue with the target
Send mode corresponding storage.
In one possible implementation, the push management system if it is determined that candidate's push mode load
Value is all larger than or is equal to after first threshold, further includes:
The push management system obtains the load value of the message queue in the service layer;
The push management system determines push management system according to the load value of the message queue in the service layer
It unites corresponding system load value;
The push management system judges whether the system load value is less than second threshold, if it is less than second threshold
Value, then increase new message queue in the service layer;Otherwise, warning message is sent to administrator.
The case where so, it is possible that the quantity of message queue is avoided to be more than system bearing ability, so that system be avoided event occur
Barrier.
In one possible implementation, the push management system, which is successively sent in the target message queue, stores
PUSH message after, further includes:
Whether the push management system judgement is described adjusts back success to PUSH message, will be described if readjustment failure
The target message queue is stored again in PUSH message.
In this way, push can be improved to avoid the situation for causing PUSH message not sent because of reasons such as of short duration network interruptions
Message is sent to rate.In one possible implementation, the device identification of the PUSH message also carried terminal;
The push management system successively sends the PUSH message stored in the target message queue, comprising:
For any PUSH message stored in the target message queue, the push management system is according to the push
The device identification for the terminal that message carries, judges whether the terminal is online, if be online, by institute
It states PUSH message and is sent to described be mounted in the application program of terminal corresponding with device identification;Otherwise, the push is disappeared
Breath be sent to in the operating system of device identification counterpart terminal.
Even if PUSH message can also be sent to and equipment mark by push management system in this way, terminal is in off-line state
In the operating system for knowing counterpart terminal, it is ensured that user can timely receive PUSH message.
Second aspect, the embodiment of the present application provide a kind of managing device of PUSH message, and described device is applied to push pipe
Reason system, the system comprises interface layer and service layer, the background server of the interface layer and multiple application programs passes through net
Network connection, the PUSH message that the background server for receiving the application program is sent;The service layer includes multiple message
Queue, the message queue is for storing PUSH message;Described device further include:
Receiving unit, for receive application program background server send to PUSH message, it is described to PUSH message
Carry the type identification of target terminal;
Processing unit, for according to the type identification of the target terminal and pre-stored type identification and push
The corresponding relationship of mode determines that target pushes mode;And mode and pre-stored push are pushed according to the target
The corresponding relationship of mode and message queue determines target message queue;And it will be described to PUSH message storage to the target
Message queue;
Transmission unit, for successively sending the PUSH message stored in the target message queue.
In one possible implementation, the processing unit is specifically used for:
The corresponding relationship of mode and pre-stored push mode and message queue is pushed according to the target, is determined
At least one alternate message queue;And obtain the load value of the alternate message queue;And by the smallest time of load value
Message queue is selected to be determined as the target message queue.
In one possible implementation, the push management system pushes away the new message queue with the target
Send mode corresponding storage.
In one possible implementation, the processing unit is also used to:
Judge whether the load value of the candidate push mode is all larger than or is equal to first threshold, if being all larger than or being equal to
The first threshold then increases new message queue in the service layer, and the new message queue is determined as institute
State target message queue;Otherwise, the smallest alternate message queue of load value is determined as the target message queue.
In one possible implementation, the processing unit is also used to:
Obtain the load value of the message queue in the service layer;And according to the message queue in the service layer
Load value determines the corresponding system load value of the push management system;And judge the system load value whether less than
Two threshold values then increase new message queue if it is less than the second threshold in the service layer;Otherwise, it is sent out to administrator
Send warning message.
In one possible implementation, it successively sends in the transmission unit and stores in the target message queue
After PUSH message, the processing unit is also used to:
Whether the push management system judgement is described adjusts back success to PUSH message, will be described if readjustment failure
The target message queue is stored again in PUSH message.
In one possible implementation, the device identification of the PUSH message also carried terminal;
The transmission unit is specifically used for:
For any PUSH message stored in the target message queue, according to the terminal of PUSH message carrying
Device identification, judges whether the terminal is online, if be online, the PUSH message is sent to
In the application program for being mounted on terminal corresponding with device identification;Otherwise, the PUSH message is sent to and equipment mark
In the operating system for knowing counterpart terminal.
Detailed description of the invention
Fig. 1 is the schematic diagram of message push in the prior art;
Fig. 2 is a kind of schematic diagram for scene that the embodiment of the present application is applicable in;
Fig. 3 is flow diagram corresponding to the management method of PUSH message provided by the embodiments of the present application;
Fig. 4 is the schematic diagram of the process of globality involved in the embodiment of the present application;
Fig. 5 is a kind of flow diagram for sending the PUSH message stored in target message queue provided by the present application;
Fig. 6 is a kind of inner bay composition for pushing management system provided by the embodiments of the present application;
Fig. 7 is a kind of structural schematic diagram of the managing device of PUSH message provided by the embodiments of the present application.
Specific embodiment
To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with attached drawing to the application embodiment party
Formula is described in further detail.
The possible scene for combining Fig. 2 to be applicable in the embodiment of the present application first below is introduced.
Referring to FIG. 2, its schematic diagram for illustrating a kind of applicable scene of the embodiment of the present application.The scene includes
Background server (such as the background server of APP shown in Figure 21 of multiple application programs (Application, APP)
101, the background server 103 of the background server 102 of APP 1 and APP 1), and push management system 200.
Pushing management system 200 may include interface layer 201 and service layer 202.Wherein, interface layer 201 can be used for leading to
The background server for crossing network and multiple APP establishes connection, such as shown in Figure 2, the background server of APP 1, APP 1
The background server of background server and APP 1 can establish connection by network and interface layer 201 respectively.Service layer 202 can
To include multiple message queues, such as message queue shown in Figure 21, message queue 2 and message queue 3, message queue can be with
For storing PUSH message.
Further, different message queues can establish connection from different push modes.For example, shown in Figure 2
It is corresponding that message queue 1 can push mode with iOS Cloud, that is to say, that the PUSH message in message queue 1 can use
IOS Cloud push mode is pushed to the mobile terminal of apple brand;Similarly, message queue 2 can push mode with Huawei
It is corresponding, that is to say, that the PUSH message in message queue 2 can be pushed to the movement of Huawei's brand using Huawei's push mode
Terminal;It is corresponding that message queue 3 can push mode (aurora push as shown in Figure 2) with third party, that is to say, that message
PUSH message in queue 3 can be pushed to using aurora push mode supports the mobile terminal of this push mode (in such as Fig. 2
The OPPO brand that shows, VIVO brand or in emerging brand mobile terminal) in.
Using Fig. 2 shows system architecture, the PUSH message of each application program, a side are managed collectively by push management system
Face is developed respectively compared with the prior art for the Push Service of different application, and the embodiment of the present application only needs to develop one
A push management system, it is possible to reduce the development amount of the Push Service of each application program improves developer's
Working efficiency is also convenient for subsequent;Further, using Fig. 2 shows system architecture, one or more mobile phone product can also be reduced
Board quotient greatly reduces modification time because the phenomenon that multiple application program ends repeat modification Push Service caused by changing SDK.Separately
On the one hand, for needing to distinguish register account number in the background server of different application programs compared with the prior art, this Shen
Please embodiment can be managed collectively the account registration process of Push Service, can prevent account from excessively causing management is mixed and disorderly to ask
Topic.
Based on system architecture shown in Fig. 2, Fig. 3 illustrates the management of PUSH message provided by the embodiments of the present application
Flow diagram corresponding to method.As shown in figure 3, specifically comprising the following steps:
Step 301, push management system receive application program background server send to PUSH message.
Step 302, push management system according to the type identification of target terminal and pre-stored type identification and pushes away
The corresponding relationship for sending mode determines that target pushes mode.
Step 303, push management system pushes mode and pre-stored push mode and message queue according to target
Corresponding relationship, determine target message queue.
Step 304, push management system will be stored to PUSH message to target message queue.
Step 305, push management system successively sends the PUSH message stored in target message queue.
Using the above method, pushes management system and receiving after PUSH message, can be carried according to PUSH message
Target terminal type identification, come determine target push mode, and support the target push mode target message queue,
In this way, push management system can be by different PUSH messages according to the type identification of its target terminal respectively carried, distribution
Into different message queues, it thereby may be ensured that and pushed using applicable push mode, and then can be avoided existing skill
The not corresponding feelings of push mode that the push mode that the background server of application program uses in art may be supported with mobile terminal
Condition, that improves PUSH message is sent to rate and accuracy rate.
Specifically, in step 301, the background server of application program is generated after PUSH message, to push management system
System is sent to PUSH message.It wherein, can be with the device identification of carried terminal and the type identification of terminal to PUSH message.
The device identification of terminal can be the unique identifier of terminal, such as the international mobile equipment identification number of terminal
(International Mobile Equipment Identity, IMEI), specifically without limitation.
The type identification of terminal can be presented in a variety of forms, for example, the type identification of terminal can be the brand of terminal
Mark.Specifically, brand identity can be the image identification of brand trademark;Alternatively, being also possible to the words identification of brand trademark;
Alternatively, can also be customized type identification, for example, apple brand is identified with letter A, by Huawei's brand letter b
It identifies, specifically without limitation.
In step 302, push management system can be previously stored with type identification and push the corresponding relationship of mode.Such as table
It is a kind of example of the corresponding relationship of type identification and push mode shown in 1.
A kind of table 1: example of type identification and the corresponding relationship of push mode
As shown in table 1, when the type identification that PUSH message carries is " Apple ", corresponding push mode is " iOS
Cloud";When the type identification that PUSH message carries is " HUAWEI ", corresponding push mode is " Huawei's push ";PUSH message
When the type identification of carrying is " OPPO " or " VIVO " or " ZTE ", corresponding push mode is " aurora push ".
Further, management system is pushed according to the type identification of the target terminal carried to PUSH message, and in advance
The type identification of storage and the corresponding relationship of push mode, can determine that target pushes mode.For example, it is assumed that target terminal
Type identification be " Apple ", according to the corresponding relationship shown in table 1, can determine that target push mode is " iOS Cloud ".
In step 303, push management system can be previously stored with the corresponding relationship of push mode and message queue.Its
In, the corresponding relationship for pushing mode and message queue can be by a variety of, and in an example, push mode and message queue be can be
One-to-one corresponding relationship.It as shown in table 2, is a kind of example of push mode and the corresponding relationship of message queue.
A kind of table 2: example of the corresponding relationship of push mode and message queue
Push mode | Message queue |
iOS Cloud | Message queue 1 |
Huawei's push | Message queue 2 |
Aurora push | Message queue 3 |
Content is shown according to table 2, when push mode is " iOS Cloud ", corresponding message queue 1;Push mode is " Huawei
When push ", corresponding message queue 2;When push mode is " aurora push ", corresponding message queue 3.
Further, push management system pushes mode and pre-stored push mode and message team according to target
The corresponding relationship of column can determine target message queue.For example, it is assumed that it is " iOS Cloud " that target, which pushes mode, according to
Corresponding relationship shown in table 2 can determine that target message queue is message queue 1.
In another example, it is contemplated that the quantity for the mobile terminal that different push modes covers is also different, for example, " China
For push " the mobile terminal occupation rate of market of corresponding Huawei's brand is larger, support the quantity of the mobile terminal of " Huawei's push "
Also more, accordingly, it is desirable to which the quantity for being sent to the PUSH message of Huawei's brand is also larger.That is, push mode with disappear
Breath queue can be one-to-many relationship.
It as shown in table 3, is another example of push mode and the corresponding relationship of message queue.
Table 3: another example of the corresponding relationship of push mode and message queue
According to the content shown in table 3, when push mode is " iOS Cloud ", corresponding message queue 1-1, message queue 1-2
With message queue 1-3;When push mode is " Huawei's push ", corresponding message queue 2-1, message queue 2-2, message queue 2-3
With message queue 2-4;When push mode is " aurora push ", corresponding message queue 3-1 and message queue 3-2.
Further, push management system can by elder generation according to target push in a manner of and pre-stored push mode and
The corresponding relationship of message queue determines at least one alternate message queue, then the load value of available alternate message queue,
Finally the smallest alternate message queue of load value can be determined as target message queue.Wherein, the load value of message queue can
To be determined according to the quantity of the PUSH message stored in message queue and/or the processing capacity of message queue itself.
In this way, the processing capacity of whole system can be improved with the quantity of the PUSH message in unbalanced message queue, realize whole
The effect of the load balancing of a system.
For example, it is assumed that it is " Huawei's push " that target, which pushes mode, according to the corresponding relationship shown in table 3, can be determined
Alternate message queue is message queue 2-1, message queue 2-2, message queue 2-3 and message queue 2-4.Further, it is assumed that message
The load of queue 2-1 chases after minimum, then, message queue 2-1 can be used as target message queue.
Further, it is contemplated that in the peak traffic phase, in fact it could happen that certain corresponding message queue of push mode is located
In the overload the case where.It can first judge to wait after pushing the load value that management system obtains candidate push mode based on this
It selects the load value of push mode whether to be all larger than or is equal to first threshold, it, can be if being all larger than or being equal to first threshold
Increase new message queue in service layer, and new message queue is determined as target message queue;Otherwise, push management system
The smallest alternate message queue of load value can be determined as target message queue by system.
In this way, the embodiment of the present application can adjust the quantity of message queue according to the real time load situation of message queue, it is full
The needs that sufficient peak period business increases guarantee the timeliness of PUSH message so as to improve the transmitting efficiency of PUSH message.
Correspondingly, in business low peak period, certain corresponding message queue of push mode is likely to be at underloaded feelings
Condition, therefore, in the case that when some push mode, there are multiple message queues, and each message queue is in underloading,
At least one message queue can be deleted, to save the resource of system.
In the embodiment of the present application, push management system after increasing new message queue, can by new message queue with
Target pushes the corresponding storage of mode.For example, it is assumed that it is " Huawei's push ", the correspondence according to table 3 that target, which pushes mode,
Relationship can determine that alternate message queue is message queue 2-1, message queue 2-2, message queue 2-3 and message queue 2-4.
In turn, if it is determined that the load value of aforementioned four message queue is all larger than or is equal to first threshold, then can increase new message
Queue (such as message queue 2-5), and by message queue 2-5 it is corresponding with the push mode of " Huawei's push " storage.
Further, it is contemplated that push management system own load be also limited, push management system if it is determined that
The load value of candidate push mode is all larger than or is equal to after first threshold, can also obtain message queue all in service layer
Load value determine the corresponding system load value of push management system then according to the load value of the message queue in service layer,
And then may determine that whether system load value is less than second threshold, if it is less than second threshold, then increase newly in service layer
Message queue;Otherwise, warning message is sent to administrator, which overloads for informing that administrator pushes management system,
Indicate the problem of timely processing system of administrator is overloaded.The quantity that so, it is possible to avoid message queue is more than system bearing ability
The case where, so that system be avoided to break down.
It should be noted that in order to improve the processing capacity of message queue, the application can optimize message queue consumption
Process.It specifically, can be according to message queue when the length of push management system monitors to message queue is more than preset length
Total length divided by each message queue per minute can quantity consumed, so that it is determined that needing message queue quantity to be started.Further
The quantity on ground, the message queue that push management system starts as needed carrys out initiation message queue, and message queue per minute can
It is consumed.When the quantity of the message queue of starting is more than the preset value of system, then no longer newly-increased message queue, to guarantee to disappear
Cease the stability and real-time of queue consumption.
In order to more clearly introduce the manager of PUSH message under above-mentioned push mode and the one-to-many relationship of message queue
Method carries out globality explanation to process involved in the embodiment of the present application below with reference to Fig. 4.As shown in figure 4, can wrap
Include following steps:
Step 401, push management system receive application program background server send to PUSH message.
Step 402, push management system according to the type identification of target terminal and pre-stored type identification and pushes away
The corresponding relationship for sending mode determines that target pushes mode.
Step 403, push management system pushes mode and pre-stored push mode and message queue according to target
Corresponding relationship, determine at least one alternate message queue.
Step 404, push management system obtains the load value of alternate message queue.
Step 405, push management system judges whether the load value of candidate push mode is all larger than or is equal to first threshold,
If being all larger than or being equal to first threshold, 406 are thened follow the steps;Otherwise, step 411 is executed.
Step 406, push management system obtains the load value of message queue all in service layer.
Step 407, push management system determines push management system pair according to the load value of the message queue in service layer
The system load value answered.
Step 408, push management system judges whether system load value is less than second threshold, if it is less than second threshold,
Then follow the steps 409;Otherwise, step 410 is executed.
Step 409, push management system increases new message queue in service layer, and new message queue is determined
For target message queue.
Step 410, push management system sends warning message to administrator.
Step 411, the smallest alternate message queue of load value can be determined as target message queue by push management system.
Using the above method, on the one hand, push management system can respectively carry different PUSH messages according to it
The type identification of target terminal is assigned in different message queues, be thereby may be ensured that and is carried out using applicable push mode
Push, and then the push mode that the background server that can be avoided application program in the prior art uses may be with mobile terminal branch
The situation that the push mode held does not correspond to, that improves PUSH message is sent to rate and accuracy rate.On the other hand, push management system can
To increase new message queue, in this way, the transmitting efficiency of PUSH message can be improved, to protect according to the load value of message queue
Demonstrate,prove the timeliness of PUSH message.
In step 304 and step 305, when pushing the PUSH message that management system stores in sending target message queue,
Specifically PUSH message can be sent using the flow diagram shown in Fig. 5.As shown in figure 5, being a kind of transmission provided by the present application
The flow diagram of the PUSH message stored in target message queue, specifically comprises the following steps:
Step 501, for any PUSH message stored in target message queue, management system is pushed according to PUSH message
The device identification of the terminal of carrying, judges whether terminal is online, if be online, thens follow the steps 502;
Otherwise, step 503 is executed.
Step 502, PUSH message is sent to the application for being mounted on terminal corresponding with device identification by push management system
In program.
Step 503, push management system judges whether PUSH message needs to push immediately, if it is desired, thens follow the steps
504;Otherwise, step 505 is executed.
Step 504, push management system by PUSH message be sent to in the operating system of device identification counterpart terminal.
Step 505, PUSH message is stored the end to message queue by push management system again, and waiting is sent out next time
It send.
Even if PUSH message can also be sent to and equipment mark by push management system in this way, terminal is in off-line state
In the operating system for knowing counterpart terminal, it is ensured that user can timely receive PUSH message.
After executing step 305, push management system can also further judge whether adjust back success to PUSH message,
If readjustment failure, target message queue will be stored again in PUSH message, waiting is sent next time.In this way, can keep away
Exempt from the situation for causing PUSH message not sent because of reasons such as of short duration network interruptions, that improves PUSH message is sent to rate.
Further, in order to which the operation burden for reducing push management system pushes pipe when PUSH message adjusts back failure
Reason system will be stored again in target message queue to PUSH message, and attempt the push processing of most n times, if had in n times
Primary success is labeled as consuming successfully;If n times push all fails, the information of push failure can be sent to administrative staff.Its
In, N is the integer greater than 1, and N can be what those skilled in the art rule of thumb set with actual conditions, specifically without limitation.
Following is the application system embodiment, can be used for executing the application embodiment of the method.It is real for the application system
Undisclosed details in example is applied, the application embodiment of the method is please referred to.
Fig. 6 illustrates a kind of inner bay composition for pushing management system provided by the embodiments of the present application.Such as Fig. 6 institute
Show, system includes interface layer and service layer, and interface layer and the background server of multiple application programs pass through network connection, for connecing
Receive the PUSH message that the background server of the application program is sent.
Service layer includes multiple message queues (not showing directly in Fig. 6), and the message queue is for storing PUSH message.
Further, service layer can also include business APP access service, log query service, offline message configuration services, push disappears
Breath query service, message are sent, message queue production, message queue is consumed, system is arranged, alert service and others are more
Service.Wherein, there is log recording from interface layer to service layer, service layer, that is to say, that log query service possesses completely
Log recording checks push problem convenient for developer.
Can be seen that the system according to the content of Fig. 6 can also include data Layer, database and physical facility layer.Specifically
Content may refer to no longer describe one by one herein shown in Fig. 6.
Push management system shown in fig. 6 has the function of realizing the management method of above-mentioned PUSH message, and the function can
Corresponding software realization can also be executed by hardware by hardware realization.As shown in fig. 7, being provided by the embodiments of the present application one
The structural schematic diagram of the managing device of kind PUSH message.The device can be applied to above-mentioned push management system, which can be with
It include: receiving unit 701, processing unit 702 and transmission unit 703.
Receiving unit 701, for receive application program background server send to PUSH message, it is described to disappear wait push
Breath carries the type identification of target terminal;
Processing unit 702, for according to the type identification of the target terminal and pre-stored type identification and pushing away
The corresponding relationship for sending mode determines that target pushes mode;And mode is pushed according to the target and pre-stored is pushed away
The corresponding relationship for sending mode and message queue determines target message queue;And it will be described to PUSH message storage to the mesh
Mark message queue;
Transmission unit 703, for successively sending the PUSH message stored in the target message queue.
In one possible implementation, the processing unit 702 is specifically used for:
The corresponding relationship of mode and pre-stored push mode and message queue is pushed according to the target, is determined
At least one alternate message queue;And obtain the load value of the alternate message queue;And by the smallest time of load value
Message queue is selected to be determined as the target message queue.
In one possible implementation, the push management system pushes away the new message queue with the target
Send mode corresponding storage.
In one possible implementation, the processing unit 702 is also used to:
Judge whether the load value of the candidate push mode is all larger than or is equal to first threshold, if being all larger than or being equal to
The first threshold then increases new message queue in the service layer, and the new message queue is determined as institute
State target message queue;Otherwise, the smallest alternate message queue of load value is determined as the target message queue.
In one possible implementation, the processing unit 702 is also used to:
Obtain the load value of the message queue in the service layer;And according to the message queue in the service layer
Load value determines the corresponding system load value of the push management system;And judge the system load value whether less than
Two threshold values then increase new message queue if it is less than the second threshold in the service layer;Otherwise, it is sent out to administrator
Send warning message.
In one possible implementation, it successively sends in the target message queue and deposits in the transmission unit 703
After the PUSH message of storage, the processing unit 702 is also used to:
Whether the push management system judgement is described adjusts back success to PUSH message, will be described if readjustment failure
The target message queue is stored again in PUSH message.
In one possible implementation, the device identification of the PUSH message also carried terminal;
The transmission unit 703 is specifically used for:
For any PUSH message stored in the target message queue, according to the terminal of PUSH message carrying
Device identification, judges whether the terminal is online, if be online, the PUSH message is sent to
In the application program for being mounted on terminal corresponding with device identification;Otherwise, the PUSH message is sent to and equipment mark
In the operating system for knowing counterpart terminal.
In the exemplary embodiment, a kind of computer readable storage medium is additionally provided, is stored in the storage medium
Computer program or intelligent contract, the computer program or intelligent contract are loaded and executed by nodes to realize above-described embodiment
The transaction methods of offer.Optionally, above-mentioned computer readable storage medium can be read-only memory (Read-
Only Memory, ROM), random access memory (Random Access Memory, RAM), CD-ROM, tape, floppy disk and
Optical data storage devices etc..
It is required that those skilled in the art can be understood that the technology in the embodiment of the present application can add by software
The mode of general hardware platform realize.Based on this understanding, the technical solution in the embodiment of the present application substantially or
Say that the part that contributes to existing technology can be embodied in the form of software products, which can deposit
Storage is in storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions are used so that computer equipment (can be with
It is personal computer, server or the network equipment etc.) execute certain part institutes of each embodiment of the application or embodiment
The method stated.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following
Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.
Claims (13)
1. a kind of management method of PUSH message, which is characterized in that the method is applied to push management system, the system packet
Interface layer and service layer are included, the interface layer and the background server of multiple application programs pass through network connection, for receiving
State the PUSH message that the background server of application program is sent;The service layer includes multiple message queues, the message queue
For storing PUSH message;The described method includes:
It is described push management system receive application program background server send to PUSH message, it is described to be taken to PUSH message
Type identification with target terminal;
The push management system is according to the type identification of the target terminal and pre-stored type identification and push side
The corresponding relationship of formula determines that target pushes mode;
The push management system pushes pair of mode and pre-stored push mode and message queue according to the target
It should be related to, determine target message queue;
The push management system will be described to PUSH message storage to the target message queue;
The push management system successively sends the PUSH message stored in the target message queue.
2. the method according to claim 1, wherein the push management system is according to the target push side
The corresponding relationship of formula and pre-stored push mode and message queue, determines target message queue, comprising:
The push management system pushes pair of mode and pre-stored push mode and message queue according to the target
It should be related to, determine at least one alternate message queue;
The push management system obtains the load value of the alternate message queue;
The smallest alternate message queue of load value is determined as the target message queue by the push management system.
3. according to the method described in claim 2, it is characterized in that, the push management system obtains the candidate push mode
Load value after, further includes:
The push management system judges whether the load value of the candidate push mode is all larger than or is equal to first threshold, if
It is all larger than or is equal to the first threshold, then increases new message queue in the service layer, and by the new message
Queue is determined as the target message queue;Otherwise, the smallest alternate message queue of load value is determined as the target message
Queue.
4. according to the method described in claim 3, it is characterized in that, the push management system by the new message queue with
The corresponding storage of target push mode.
5. according to the method described in claim 3, it is characterized in that, the push management system is if it is determined that the candidate push
The load value of mode is all larger than or is equal to after first threshold, further includes:
The push management system obtains the load value of the message queue in the service layer;
The push management system determines the push management system pair according to the load value of the message queue in the service layer
The system load value answered;
The push management system judges whether the system load value is less than second threshold, if it is less than the second threshold,
Then increase new message queue in the service layer;Otherwise, warning message is sent to administrator.
6. the method according to claim 1, wherein the push management system successively sends the target message
After the PUSH message stored in queue, further includes:
Whether the push management system judgement is described adjusts back success to PUSH message, if readjustment failure, by described wait push away
Message is sent to be stored again in the target message queue.
7. the method according to claim 1, wherein the device identification of the PUSH message also carried terminal;
The push management system successively sends the PUSH message stored in the target message queue, comprising:
For any PUSH message stored in the target message queue, the push management system is according to the PUSH message
The device identification of the terminal of carrying, judges whether the terminal is online, if be online, pushes away described
Message is sent to be sent to described be mounted in the application program of terminal corresponding with device identification;Otherwise, the PUSH message is sent out
Send to in the operating system of device identification counterpart terminal.
8. a kind of managing device of PUSH message, which is characterized in that described device is applied to push management system, the system packet
Interface layer and service layer are included, the interface layer and the background server of multiple application programs pass through network connection, for receiving
State the PUSH message that the background server of application program is sent;The service layer includes multiple message queues, the message queue
For storing PUSH message;Described device includes:
Receiving unit, the background server for receiving application program send to PUSH message, it is described to be carried to PUSH message
The type identification of target terminal;
Processing unit, for according to the type identification of the target terminal and pre-stored type identification and push mode
Corresponding relationship, determine target push mode;And mode and pre-stored push mode are pushed according to the target
With the corresponding relationship of message queue, target message queue is determined;And it will be described to PUSH message storage to the target message
Queue;
Transmission unit, for successively sending the PUSH message stored in the target message queue.
9. device according to claim 8, which is characterized in that the processing unit is specifically used for:
The corresponding relationship of mode and pre-stored push mode and message queue is pushed according to the target, is determined at least
One alternate message queue;And obtain the load value of the alternate message queue;And the smallest candidate of load value is disappeared
Breath queue is determined as the target message queue.
10. device according to claim 9, which is characterized in that the processing unit is also used to:
Judge whether the load value of the candidate push mode is all larger than or is equal to first threshold, if being all larger than or being equal to described
First threshold then increases new message queue in the service layer, and the new message queue is determined as the mesh
Mark message queue;Otherwise, the smallest alternate message queue of load value is determined as the target message queue.
11. device according to claim 10, which is characterized in that the processing unit is also used to:
Obtain the load value of the message queue in the service layer;And the load according to the message queue in the service layer
Value, determines the corresponding system load value of the push management system;And judge the system load value whether less than the second threshold
Value, if it is less than the second threshold, then increases new message queue in the service layer;Otherwise, it sends and reports to administrator
Alert message.
12. device according to claim 8, which is characterized in that successively send the target message in the transmission unit
After the PUSH message stored in queue, the processing unit is also used to:
Whether the push management system judgement is described adjusts back success to PUSH message, if readjustment failure, by described wait push away
Message is sent to be stored again in the target message queue.
13. device according to claim 8, which is characterized in that the device identification of the PUSH message also carried terminal;
The transmission unit is specifically used for:
For any PUSH message stored in the target message queue, according to the equipment for the terminal that the PUSH message carries
Mark, judges whether the terminal is online, if be online, the PUSH message is sent to described
It is mounted in the application program of terminal corresponding with device identification;Otherwise, the PUSH message is sent to and device identification pair
It answers in the operating system of terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910415279.2A CN110149392A (en) | 2019-05-17 | 2019-05-17 | A kind of management method and device of PUSH message |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910415279.2A CN110149392A (en) | 2019-05-17 | 2019-05-17 | A kind of management method and device of PUSH message |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110149392A true CN110149392A (en) | 2019-08-20 |
Family
ID=67591806
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910415279.2A Pending CN110149392A (en) | 2019-05-17 | 2019-05-17 | A kind of management method and device of PUSH message |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110149392A (en) |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110515749A (en) * | 2019-08-30 | 2019-11-29 | 深圳乐信软件技术有限公司 | Method, apparatus, server and the storage medium for the queue scheduling that information is sent |
CN110764892A (en) * | 2019-10-22 | 2020-02-07 | 北京字节跳动网络技术有限公司 | Task processing method, device and computer readable storage medium |
CN111225044A (en) * | 2019-12-31 | 2020-06-02 | 北京奇才天下科技有限公司 | Client message pushing method, device and system |
CN111416763A (en) * | 2020-02-21 | 2020-07-14 | 北京值得买科技股份有限公司 | Message pushing method |
CN111711697A (en) * | 2020-06-17 | 2020-09-25 | 北京同邦卓益科技有限公司 | Message pushing method, device, equipment and storage medium |
CN111741060A (en) * | 2020-05-08 | 2020-10-02 | 广州三七互娱科技有限公司 | Message pushing method and device, computer equipment and storage medium |
CN111949912A (en) * | 2020-08-12 | 2020-11-17 | 北京一起教育信息咨询有限责任公司 | Message pushing method, device and system based on label |
CN112231552A (en) * | 2020-09-27 | 2021-01-15 | 武汉木仓科技股份有限公司 | Message pushing method and device |
CN112420217A (en) * | 2020-11-30 | 2021-02-26 | 腾讯科技(深圳)有限公司 | Message pushing method, device, equipment and storage medium |
CN113067882A (en) * | 2021-03-31 | 2021-07-02 | 建信金融科技有限责任公司 | Message processing method and device, electronic equipment and medium |
CN113079382A (en) * | 2021-03-24 | 2021-07-06 | 百度国际科技(深圳)有限公司 | Message transmission method, device, equipment, system and storage medium |
CN113490164A (en) * | 2021-08-13 | 2021-10-08 | 中原银行股份有限公司 | Mobile application message pushing platform |
CN114428684A (en) * | 2020-10-29 | 2022-05-03 | 中移互联网有限公司 | Message pushing method, device and system based on distribution |
CN114866963A (en) * | 2022-03-16 | 2022-08-05 | 青岛海尔科技有限公司 | Message sending method, storage medium and electronic device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102457906A (en) * | 2010-10-26 | 2012-05-16 | 中国移动通信集团河南有限公司 | Load balancing control method and system of message queues |
CN104137520A (en) * | 2014-01-10 | 2014-11-05 | 华为技术有限公司 | Message pushing method and device |
US20150271256A1 (en) * | 2014-03-19 | 2015-09-24 | Dell Products L.P. | Message Processing Using Dynamic Load Balancing Queues in a Messaging System |
CN106878197A (en) * | 2017-02-22 | 2017-06-20 | 郑州云海信息技术有限公司 | A kind of management system and method for the transmission of cloud platform message |
CN107766160A (en) * | 2017-09-26 | 2018-03-06 | 平安科技(深圳)有限公司 | Queue message processing method and terminal device |
CN107888641A (en) * | 2016-09-30 | 2018-04-06 | 阿里巴巴集团控股有限公司 | A kind of information push method and device |
CN108063724A (en) * | 2018-01-12 | 2018-05-22 | 吉浦斯信息咨询(深圳)有限公司 | Information push method and its system based on Android platform |
-
2019
- 2019-05-17 CN CN201910415279.2A patent/CN110149392A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102457906A (en) * | 2010-10-26 | 2012-05-16 | 中国移动通信集团河南有限公司 | Load balancing control method and system of message queues |
CN104137520A (en) * | 2014-01-10 | 2014-11-05 | 华为技术有限公司 | Message pushing method and device |
US20150271256A1 (en) * | 2014-03-19 | 2015-09-24 | Dell Products L.P. | Message Processing Using Dynamic Load Balancing Queues in a Messaging System |
CN107888641A (en) * | 2016-09-30 | 2018-04-06 | 阿里巴巴集团控股有限公司 | A kind of information push method and device |
CN106878197A (en) * | 2017-02-22 | 2017-06-20 | 郑州云海信息技术有限公司 | A kind of management system and method for the transmission of cloud platform message |
CN107766160A (en) * | 2017-09-26 | 2018-03-06 | 平安科技(深圳)有限公司 | Queue message processing method and terminal device |
CN108063724A (en) * | 2018-01-12 | 2018-05-22 | 吉浦斯信息咨询(深圳)有限公司 | Information push method and its system based on Android platform |
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110515749A (en) * | 2019-08-30 | 2019-11-29 | 深圳乐信软件技术有限公司 | Method, apparatus, server and the storage medium for the queue scheduling that information is sent |
CN110515749B (en) * | 2019-08-30 | 2022-06-24 | 深圳乐信软件技术有限公司 | Method, device, server and storage medium for queue scheduling of information transmission |
CN110764892A (en) * | 2019-10-22 | 2020-02-07 | 北京字节跳动网络技术有限公司 | Task processing method, device and computer readable storage medium |
CN111225044A (en) * | 2019-12-31 | 2020-06-02 | 北京奇才天下科技有限公司 | Client message pushing method, device and system |
CN111416763A (en) * | 2020-02-21 | 2020-07-14 | 北京值得买科技股份有限公司 | Message pushing method |
CN111741060A (en) * | 2020-05-08 | 2020-10-02 | 广州三七互娱科技有限公司 | Message pushing method and device, computer equipment and storage medium |
CN111741060B (en) * | 2020-05-08 | 2023-12-12 | 广州三七互娱科技有限公司 | Message pushing method, device, computer equipment and storage medium |
CN111711697A (en) * | 2020-06-17 | 2020-09-25 | 北京同邦卓益科技有限公司 | Message pushing method, device, equipment and storage medium |
CN111949912A (en) * | 2020-08-12 | 2020-11-17 | 北京一起教育信息咨询有限责任公司 | Message pushing method, device and system based on label |
CN111949912B (en) * | 2020-08-12 | 2021-05-18 | 北京一起教育信息咨询有限责任公司 | Message pushing method, device and system based on label |
CN112231552A (en) * | 2020-09-27 | 2021-01-15 | 武汉木仓科技股份有限公司 | Message pushing method and device |
CN114428684A (en) * | 2020-10-29 | 2022-05-03 | 中移互联网有限公司 | Message pushing method, device and system based on distribution |
CN112420217A (en) * | 2020-11-30 | 2021-02-26 | 腾讯科技(深圳)有限公司 | Message pushing method, device, equipment and storage medium |
CN112420217B (en) * | 2020-11-30 | 2023-07-28 | 腾讯科技(深圳)有限公司 | Message pushing method, device, equipment and storage medium |
CN113079382A (en) * | 2021-03-24 | 2021-07-06 | 百度国际科技(深圳)有限公司 | Message transmission method, device, equipment, system and storage medium |
CN113067882A (en) * | 2021-03-31 | 2021-07-02 | 建信金融科技有限责任公司 | Message processing method and device, electronic equipment and medium |
CN113490164A (en) * | 2021-08-13 | 2021-10-08 | 中原银行股份有限公司 | Mobile application message pushing platform |
CN114866963A (en) * | 2022-03-16 | 2022-08-05 | 青岛海尔科技有限公司 | Message sending method, storage medium and electronic device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110149392A (en) | A kind of management method and device of PUSH message | |
CN108540536B (en) | Block chain-based network mass service processing method, equipment and storage medium | |
CN102369688B (en) | Method for adjusting resources dynamically and scheduling device | |
US8010840B2 (en) | Generation of problem tickets for a computer system | |
US9954941B2 (en) | Global server load balancer apparatus and method for dynamically controlling time-to-live | |
CN103548315B (en) | Method and apparatus for high performance low latency real time notification delivery | |
CN108805704A (en) | Block chain service implementation method, audiomonitor, storage medium and system | |
CN111093162A (en) | Method for intelligently selecting short message sending channel | |
CN106302647B (en) | Message distributing method and server | |
CN103516918B (en) | Faulty resource restoration methods and device | |
CN109983736A (en) | A kind of processing method, equipment and the system of NF component exception | |
CN105407128A (en) | Interest keep alives at intermediate routers in a ccn | |
CN110012115A (en) | The update method and system of direct broadcasting room pushed information | |
CN101808119A (en) | Method and equipment for multiple storage array load balancing | |
CN105656964B (en) | The implementation method and device of data-pushing | |
CN112751761A (en) | Transaction routing switching method, intermediate system and service processing system | |
CN109150745A (en) | A kind of message processing method and device | |
US20200211027A1 (en) | Business rules processing framework | |
CN109194993B (en) | Media file distribution method and file distribution platform | |
CN108833588B (en) | Session processing method and device | |
CN109218447A (en) | Media file distribution method and file distributing platform | |
CN101695049A (en) | Method and device for processing businesses in monitoring system | |
US10757263B1 (en) | Dynamic resource allocation | |
CN109412942B (en) | Cloud network transmission routing method and system | |
CN103442257A (en) | Method, device and system for achieving flow resource management |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190820 |
|
RJ01 | Rejection of invention patent application after publication |