CN104104591B - Message pushing method and system - Google Patents
Message pushing method and system Download PDFInfo
- Publication number
- CN104104591B CN104104591B CN201410383996.9A CN201410383996A CN104104591B CN 104104591 B CN104104591 B CN 104104591B CN 201410383996 A CN201410383996 A CN 201410383996A CN 104104591 B CN104104591 B CN 104104591B
- Authority
- CN
- China
- Prior art keywords
- channel
- message
- push
- information
- priority
- 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
Links
Landscapes
- Computer And Data Communications (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Communication Control (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention provides a message pushing method and system. The method comprises the steps of utilizing a message pushing port to receive pushing messages sent from the outside and store the messages to a message database; utilizing a message sending unit to compare the sending priority of the pushing messages stored in the message database, sequentially obtaining the pushing messages according to the sequence of the sending priority from high to low; according to each pushing message, when judging that a channel of a user terminal exists in a channel of channel messages, utilizing the message sending unit to convert the pushing messages into sending messages matched with a communication protocol of a communication server; utilizing the communication server to send the sending messages to channel adapters matched with the channel corresponding to the channel priority according to the sequence of the sending priority from high to low; utilizing each matched channel adapter to adapt the sending messages into messages matched with communication protocols of the channel adapter, and sending channels corresponding to the matched channel adapters to the user terminal. According to the message pushing method and system, message pushing is facilitated, time is saved, and the cost is reduced.
Description
Technical field
It is more particularly to a kind of (expansible using XMPP the present invention relates to a kind of information push method and message push system
Communication and presentation protocol) protocol realization multichannel information push method and message push system.
Background technology
With the development of mobile Internet, the channel linked up each other for user is more and more, for example:It is wechat, short
Letter, wireless aps P (application), GTalk (Google Talk, the immediate communication tool of Google's exploitation), microblogging etc., when a certain
When push person has the PUSH message to need to notify user, selectable communications conduit has a lot, if all providing every kind of communications conduit
Different communication protocol and interface mode, then push person push message and operate pretty troublesome, the time of consuming can be very long, and association
Interface is numerous is difficult to management service for view.
The content of the invention
The technical problem to be solved in the present invention is to overcome the mode troublesome poeration of PUSH message in the prior art, expending
Time is long and interface many and be difficult to the defect safeguarded, there is provided it is a kind of facilitate PUSH message, the message that saves time and cost is pushed away
Delivery method and system.
The present invention is to solve above-mentioned technical problem by following technical proposals:
The present invention provides a kind of information push method, and its feature is that it is comprised the following steps:
S1, a message pushes the PUSH message that sends outside interface, and those PUSH messages are stored to one disappears
In breath database, each of which PUSH message includes message content, sends priority, channel information and an at least user terminal,
Channel information includes multiple support channels and channel priority corresponding with each channel;
S2, a message sending unit compares the transmission priority of each PUSH message stored in the message database, and presses
The PUSH message for sending priority order from high to low to obtain storage successively approved for distribution;
For the operation that each PUSH message for obtaining is implemented:
S3, the message sending unit each user's end for judging in the PUSH message stored in user's channels database
During the channel at end is with the presence or absence of the channel in the channel information of the PUSH message, if the channel of the user terminal is present in the canal
In channel in road information, then into step S4;
S4, the message sending unit PUSH message is converted to the hair matched with the communication protocol of a communication server
Deliver letters breath and by the transmission information transfer to the communication server;
S5, order of the communication server according to the channel priority in the channel information from high to low successively send this
Information is sent on the channel adapter matched to the corresponding channel of channel priority;
S6, each matching the channel adapter message that is adapted to match with self communication agreement by the transmission information;
S7, each matching channel adapter will be fitted by the channel for matching with the message that self communication agreement matches
The corresponding channel of orchestration is sent into the user terminal, terminates flow.
Message pushes interface and constantly receives the outside PUSH message for sending, and by the storage of these PUSH messages in message
In database, each PUSH message includes being pushed in advance message content, the transmission priority of the message content, the channel of user
Information and at least a user terminal (i.e. sending object), channel information include multiple support channels (such as canals such as wechat, short message, microblogging
Road) and channel priority corresponding with each channel (i.e. regulation first pass through which kind of channel send the message content again pass through which kind of
Channel sends the message content).
Message sending unit compares the transmission priority of each PUSH message stored in message database, thereby determines that those
The priority order to be sent of PUSH message, and obtain those PUSH messages successively according to successively order to be sent, i.e., according to transmission
Priority order from high to low obtains the PUSH message of storage successively.
Message sending unit is obtained after those PUSH messages, it is necessary to judge user's channel successively according to successively order to be sent
The channel of each user terminal in those user terminals stored in database is believed with the presence or absence of the channel in the PUSH message
In channel in breath, if the channel of a certain user terminal in those user terminals is present in the channel in the channel information,
Then illustrate that the user terminal can finally receive PUSH message, if the channel of a certain user terminal in those user terminals is not
It is present in the channel in the channel information, then illustrates that the user terminal cannot finally receive PUSH message.
PUSH message to be sent is converted to message sending unit the hair matched with the communication protocol of the communication server
Breath of delivering letters enables that the transmission information is successfully transmitted to the communication server, and the communication server is according to the channel in channel information
Priority order from high to low the transmission information is sent the channel matched to the corresponding channel of channel priority successively and is fitted
On orchestration, such as channel priority in channel information order from high to low is followed successively by wechat, microblogging, short message, then communication clothes
The transmission message is first sent business device the wechat adapter matched to wechat channel, then the transmission message is sent to microblogging canal
The microblogging adapter that road is matched, the transmission message is finally sent the short message adapter matched to short message channel.
The message that the transmission information is adapted to match with self communication agreement by the channel adapter of each matching, then
It is corresponding with the channel adapter of the matching in the channel that the user terminal will be passed through with the message that self communication agreement matches
Channel is sent into the user terminal.For example, channel priority in channel information order from high to low is followed successively by wechat, micro-
Rich, short message, the channel in a certain user terminal has wechat and short message, then be adapted to the transmission information and wechat by wechat adapter
The message that communication protocol matches, then the message matched with wechat communication protocol is sent to user's end by wechat channel
End;Thereafter, the message that the transmission information is adapted to match with microblogging communication protocol by microblogging adapter, but due to user terminal
Channel (wechat, short message) in microblogging channel not corresponding with microblogging adapter, so matching with microblogging communication protocol
Message cannot be sent to user terminal by microblogging channel;Finally, the transmission information is adapted to lead to short message by short message adapter
The message that letter agreement matches, then the message matched with short message communication agreement is sent to user terminal by short message channel,
So the user terminal can successively receive the PUSH message sent with wechat and short message form, i.e., the user in this programme
Terminal is probably by different channel reception to identical PUSH message.
It is preferred that in step S5In, the transmission information is sent into the channel of the user terminal and pressed by the communication server
On the channel adapter that the channel of the highest priority sorted out according to the channel priority order from high to low is matched;
S7, the matching channel adapter channel that the message matched with self communication agreement is passed through into highest priority
Send into the user terminal.
Channel in the channel information that the channel of the user terminal of PUSH message to be sent is present in the PUSH message
When middle, this programme be not by PUSH message respectively by the channel of user terminal with channel information in channel identical canal
Road is sent to the user terminal, the i.e. user terminal probably by different channel reception to identical PUSH message, and
It is priority that the order in the channel that pushed information is passed through into the user terminal according to channel priority from high to low sorts out
Highest channel sends to user terminal, the i.e. user terminal and only passes through a channel reception PUSH message.Assuming that channel information
In channel priority order from high to low be followed successively by wechat, microblogging, short message, the channel in a certain user terminal have short message and
Wechat, then according to channel priority by height in the channel (short message and wechat) for pushed information being passed through into the user terminal in this programme
The channel (wechat) of the highest priority sorted out to the order of low (wechat, microblogging, short message) is sent to user terminal.
It is preferred that the information push method also includes:
S1', the urgent PUSH message that sends outside a quick interface, the urgent PUSH message is converted to and this
Urgent transmission information that the communication protocol of the communication server matches and by the urgent transmission information transfer to the communication server,
Wherein the urgent PUSH message includes message content, channel information and an at least user terminal, and channel information includes multiple support channels
And channel priority corresponding with each channel;
S2', the communication server according to the channel priority in the channel information of the urgent PUSH message from high to low
Order is successively sent on the channel adapter matched to the corresponding channel of channel priority the urgent transmission information;
S3', be adapted to for the urgent transmission information to match with self communication agreement by the channel adapter of each matching
Emergency message;
S4', the channel adapter of each matching sends to the user emergency message matched with self communication agreement
Terminal.
In this programme, urgent PUSH message can be sent directly to user without message database and message sending unit
Terminal, quick interface can be used for the quick transmission of very urgent message, reduce the retardance of urgent pushed information.
It is preferred that when message sending unit is for multiple, in step S2In, those message sending units compare the message count
According to the transmission priority of each PUSH message stored in storehouse, and obtained simultaneously successively according to priority order from high to low is sent
The PUSH message of storage, and the PUSH message that each message sending unit is obtained is different.This programme ensure that PUSH message not
Repeatedly obtained, it is necessary to when PUSH message is read when a certain message sending unit obtains PUSH message from message database
Locked plus row, it is ensured that this PUSH message is not read by other message sending units.
It is preferred that the message sending unit sends the PUSH message for obtaining successively in the way of multithreading, in order to ensure to disappear
The High Availabitity of transmitting element is ceased, message sending unit takes multithreading, it is ensured that message sending unit synchronization can be simultaneously
Multiple PUSH messages are sent, the transmitting efficiency of PUSH message is improve.
It is preferred that the communication protocol of the communication server is XMPP.
It is preferred that each PUSH message also includes type of service, channel information in each PUSH message also include with it is every
The corresponding source template of one channel, in step S7In, the channel adapter of each matching will match with self communication agreement
Message is sent into the user terminal in the source template form corresponding to the corresponding channel.
It is preferred that in step S3In, if the channel of the user terminal is not present in the channel in the channel information, enter
Enter step S8;
S8, the message sending unit sends the message for pushing to the user terminal in advance and pushes the information of failure to outside.
The present invention also provides a kind of message push system, and its feature is that it includes that a message pushes interface, a message count
According to storehouse, a message sending unit, user's channels database, at least a communication server, a channel adapter, at least a channel
And an at least user terminal;
The message pushes interface and disappears for receiving the outside PUSH message for sending, and those PUSH messages being stored to this
In breath database, each of which PUSH message includes message content, sends priority, channel information and an at least user terminal,
Channel information includes multiple support channels and channel priority corresponding with each channel;
The message sending unit is used to compare the transmission priority of each PUSH message stored in the message database, and presses
The PUSH message for sending priority order from high to low to obtain storage successively approved for distribution;
For the operation that each PUSH message for obtaining is implemented:
The message sending unit is used to judge each user terminal in the PUSH message of storage in the customer data base
Channel with the presence or absence of in channel in the channel information of the PUSH message, be present in the channel in the channel of the user terminal
When in the channel in information, the message sending unit is additionally operable to that the PUSH message is converted to the communication protocols with the communication server
The transmission information that matches of view and by the transmission information transfer to the communication server;
The order that the communication server is used for according to the channel priority in the channel information from high to low successively sends out this
Breath of delivering letters is sent on the channel adapter matched to the corresponding channel of channel priority;
The channel adapter of each matching is used to for the transmission information to be adapted to the message that matches with self communication agreement,
And will be sent to user's end by the corresponding channel of the channel adapter of the matching with the message that self communication agreement matches
In end.
It is preferred that the communication server is used to send the transmission information into the channel of the user terminal according to the channel
On the channel adapter that the channel of the highest priority that priority order from high to low sorts out is matched;
The channel adapter of the matching is used for the canal that the message matched with self communication agreement is passed through into highest priority
Road is sent into the user terminal.
It is preferred that the message push system also includes a quick interface, what is sent outside the quick interface is urgent
PUSH message, the urgent PUSH message is converted to the urgent transmission information matched with the communication protocol of the communication server simultaneously
By the urgent transmission information transfer to the communication server, wherein the urgent PUSH message include message content, channel information and
An at least user terminal, channel information includes multiple support channels and channel priority corresponding with each channel;
The communication server is used for according to the channel priority in the channel information of the urgent PUSH message from high to low
Order is successively sent on the channel adapter matched to the corresponding channel of channel priority the urgent transmission information;
The channel adapter of each matching is used to be adapted to the urgent transmission information to match with self communication agreement
Emergency message;
The channel adapter of each matching is used to send the emergency message matched with self communication agreement to the user
Terminal.
It is preferred that message sending unit for it is multiple when, those message sending units are used to comparing in the message database
The transmission priority of each PUSH message of storage, and obtain storage simultaneously successively according to priority order from high to low is sent
PUSH message, and the PUSH message that each message sending unit is obtained is different.
It is preferred that the message sending unit sends the PUSH message for obtaining successively in the way of multithreading.
It is preferred that the communication protocol of the communication server is XMPP.
It is preferred that each PUSH message also includes type of service, channel information in each PUSH message also include with it is every
The corresponding source template of one channel;The channel adapter of each matching is used for the message that will be matched with self communication agreement with this
Source template form corresponding to corresponding channel is sent into the user terminal.
It is preferred that the message sending unit is used in the channel for judging the user terminal is not present in the channel information
Channel in when, send the message for pushing to the user terminal in advance and push the information of failure to outside.
On the basis of common sense in the field is met, above-mentioned each optimum condition can be combined, and obtain final product each preferable reality of the present invention
Example.
Positive effect of the invention is:
The present invention has unified the message interface and communication protocol of different messages channel, simplifies the stream of push person's PUSH message
Journey, facilitates push person's PUSH message, reduces the cost of push person's PUSH message, shortens the time of push person's PUSH message.
When there is new channel to need to access push, it is only necessary to newly-increased channel adapter, and message informing side accesses
Do not need then any modification to be capable of achieving, it would be preferable to support flexible expansion, quickly access new communications conduit, new traffic canal can be reduced
The construction cycle that road is accessed, and message informing side need not pay close attention to the canal set by the pre- user terminal being sent in PUSH message
Road.
Brief description of the drawings
Fig. 1 is the flow chart of the information push method of embodiments of the invention 1.
Fig. 2 is the structured flowchart of the message push system of embodiments of the invention 1.
Fig. 3 is the flow chart of the information push method of embodiments of the invention 2.
Fig. 4 is the structured flowchart of the message push system of embodiments of the invention 2.
Specific embodiment
The present invention is further illustrated below by the mode of embodiment, but does not therefore limit the present invention to described reality
Apply among a scope.
Embodiment 1
The present embodiment provides a kind of information push method, and it is comprised the following steps:
Step 101, a message push interface and constantly receive the outside PUSH message for sending, and by those PUSH messages
Store into a message database, each of which PUSH message includes message content, sends priority, channel information, business
Type and at least a user terminal, channel information include multiple support channels channel priority corresponding with each channel and with it is every
The corresponding source template of one channel.
Step 102, a message sending unit compare the transmission priority of each PUSH message stored in the message database,
And the order according to transmission priority from high to low obtains the PUSH message of storage successively.
The operation implemented for each PUSH message obtained in step 102 is as follows:
Step 103, the message sending unit judge each in the PUSH message stored in user's channels database
During the channel of user terminal is with the presence or absence of the channel in the channel information of the PUSH message, if the channel of the user terminal is present
In channel in the channel information, then into step 104;If the channel of the user terminal is not present in the channel information
In channel, then into step 108:The message sending unit sends the letter that the message for pushing to the user terminal in advance pushes failure
Cease to outside.
Step 104, the message sending unit are converted to the communication protocol of a communication server (i.e. the PUSH message
XMPP) the transmission information that matches and by the transmission information transfer to the communication server.
The transmission information is sent into the channel of the user terminal excellent according to the channel by step 105, the communication server
On the channel adapter that the channel of the highest priority that first level order from high to low sorts out is matched.
Be adapted to the transmission information and disappearing that self communication agreement matches by step 106, the channel adapter of the matching
Breath.
The message matched with self communication agreement is passed through the priority most by step 107, the channel adapter of the matching
Channel high is simultaneously sent into the user terminal in the source template form corresponding to the channel, terminates flow.
In addition, the High Availabitity in order to ensure message sending unit, message sending unit takes multithreading, it is ensured that message
Transmitting element synchronization can simultaneously send multiple PUSH messages, improve the transmitting efficiency of PUSH message.
With reference to shown in Fig. 2, the present embodiment also provides a kind of message transmission system, and it includes that a message pushes interface 1, and disappears
It is breath database 2, a message sending unit 3, user's channels database 4, a communication server 5, multiple support channels adapter 6, many
Individual user's channel 7 and multiple user terminal (not shown)s.
Wherein, show that 7,4 channel adapters 6 of 4 channel adapters 6 and 4 user's channels are respectively wechat in Fig. 2
Adapter 61, short message adapter 62,64,4 user's channels 7 of wireless aps P adapters 63 and microblogging adapter are respectively wechat canal
Road 71, short message channel 72, wireless aps P channels 73 and microblogging channel 74.
The message pushes interface 1 to be used to receive the outside PUSH message for sending, and those PUSH messages are stored to this
In message database 2, each of which PUSH message includes message content, sends priority, channel information, type of service and extremely
A few user terminal, channel information include multiple support channels channel priority corresponding with each channel and with each channel pair
The source template answered.
The message sending unit 3 is used to compare the transmission priority of each PUSH message stored in the message database 2, and
Obtain the PUSH message of storage successively according to transmission priority order from high to low.
For the operation that each PUSH message for obtaining is implemented:
The message sending unit 3 is used to judge each user's end in the PUSH message of storage in the customer data base 4
During the channel at end is with the presence or absence of the channel in the channel information of the PUSH message, the canal is present in the channel of the user terminal
When in the channel in road information, the message sending unit 3 is additionally operable to be converted to the PUSH message logical with a communication server 5
Letter agreement (i.e. XMPP) the transmission information that matches and by the transmission information transfer to the communication server 5, in the user
When the channel of terminal is not present in the channel in the channel information, the message sending unit 3 is additionally operable to transmission one and pushes in advance
The message of the user terminal pushes the information of failure to outside.
The communication server 5 is used to send the transmission information into the channel of the user terminal according to the channel priority
On the channel adapter 6 that the channel of the highest priority that order from high to low sorts out is matched.
The channel adapter 6 of the matching is used to for the transmission information to be adapted to the message that matches with self communication agreement;
The channel adapter 6 of the matching be additionally operable to the message that will match with self communication agreement by the channel of highest priority and with
Source template form corresponding to the channel is sent into the user terminal.
Name a specific example to illustrate the present invention, so that those skilled in the art better understood when
Technical scheme:
Message pushes interface 1 and constantly receives the outside PUSH message for sending, it is assumed that message pushes interface 1 in the time
Outside 3 PUSH messages for sending are received in section, and by this 3 PUSH message storages in message database 2.
Wherein, first PUSH message includes being pushed in advance message content, the transmission priority of the message content of user
(1 grade), channel information and 5 user terminals (i.e. sending object), channel information include wechat (1 grade of priority, source template
1), short message (2 grades of priority, source template 2), microblogging (priority 3 level, source template 4), in addition, in user's channels database 4
The channel of each user terminal being stored with this 5 user terminals, specifically, first channel of user terminal is wechat canal
Road, second channel of user terminal is short message channel and wechat channel, the channel of third party terminal for microblogging channel and
Short message channel, the 4th channel of user terminal is wireless aps P channels and microblogging channel, and the channel of the 5th user terminal is nothing
Line APP channels and short message channel.
Second PUSH message include being pushed in advance the message content of user, the transmission priority (3 grades) of the message content,
Channel information and 1 user terminal, channel information include that wechat (1 grade of priority, source template 1), microblogging (2 grades of priority, disappear
Breath template 4).It is stored with user's channels database 4:The channel of the user terminal is wireless aps P channels.
3rd PUSH message include being pushed in advance the message content of user, the transmission priority (2 grades) of the message content,
Channel information and 3 user terminals, channel information include that short message (1 grade of priority, source template 2), wechat (2 grades of priority, disappear
Breath template 1), wireless aps P (priority 3 level, source template 3), in addition, being stored with user's channels database 4:First user
The channel of terminal is wechat channel and wireless aps P channels, and second channel of user terminal is wireless aps P channels, the 3rd use
The channel of family terminal is short message channel and microblogging channel.
Message sending unit 3 compares the transmission priority of this 3 PUSH messages stored in message database 2, i.e., first
The transmission highest priority of individual PUSH message, the 3rd transmission priority of PUSH message secondly, second hair of PUSH message
Send priority minimum, then according to send priority order from high to low obtain successively first PUSH message, the 3rd push away
Send message and second PUSH message.
After message sending unit 3 obtains first PUSH message, this first of storage in user's channels database 4 is judged
The channel of each user terminal in PUSH message is with the presence or absence of in the channel in first channel information of PUSH message.
Specifically, channel (short message, wechat), the third party of first channel of user terminal (wechat), second user terminal
The channel (microblogging, short message) of terminal, the channel (wireless aps P, microblogging) of the 4th user terminal and the 5th user terminal
Channel (wireless aps P, short message) is present in the channel in first channel information of PUSH message (wechat, short message, microblogging).
Then, first PUSH message is converted to and meets the first transmission information of XMPP simultaneously by message sending unit 3
By the first transmission information transfer to the communication server 5.The communication server 5 sends to wechat adapter the first transmission information
61st, short message adapter 62 and microblogging adapter 64.
The first message that the first transmission information is adapted to match with self communication agreement by wechat adapter 61, and will
First message is sent to first user terminal and second user terminal by wechat channel 71 and in the form of source template 1;
Short message adapter 62 sends to third party terminal and first message by short message channel 72 and in the form of source template 2
Five user terminals;Microblogging adapter 64 sends to the 4th first message by microblogging channel 74 and in the form of source template 4
Individual user terminal.
After message sending unit 3 obtains second PUSH message, the 3rd of storage in user's channels database 4 is judged
The channel of each user terminal in PUSH message is with the presence or absence of in the channel in the 3rd channel information of PUSH message.
Specifically, first channel of user terminal (wechat wireless aps P), the channel (wireless aps P) of second user terminal, the 3rd
The channel (short message, microblogging) of user terminal be present in the 3rd channel information of PUSH message channel (short message, wechat,
Wireless aps P) in.
Then, the 3rd PUSH message is converted to the 3rd transmission information for meeting XMPP simultaneously for message sending unit 3
Information transfer to the communication server 5 is sent by the 3rd.The communication server 5 sends to short message adapter the 3rd transmission information
62nd, wechat adapter 61 and wireless aps P adapters 63.
The 3rd message that 3rd transmission information is adapted to match with self communication agreement by short message adapter 62, and will
3rd message is sent to third party terminal by short message channel 72 and in the form of source template 2;Wechat adapter 61 is by
Three message are sent to first user terminal by wechat channel 71 and in the form of source template 1;Wireless aps P adapters 64 are by
Three message are sent to second user terminal by wireless aps P channels 73 and in the form of source template 3.
After message sending unit 3 obtains second PUSH message, this second of storage in user's channels database 4 is judged
The channel of the user terminal in PUSH message is with the presence or absence of in the channel in second channel information of PUSH message.Tool
Body ground, the channel (wireless aps P) of the user terminal be not present in second channel information of PUSH message channel (wechat,
Microblogging) in, the information that the message push that the transmission of message sending unit 3 one pushes to the user terminal in advance fails to outside.
Embodiment 2
With reference to shown in Fig. 3, the information push method also includes for the tight of urgent PUSH message on the basis of embodiment 1
Flow is sent in hitch:
The urgent PUSH message sent outside step 201, a quick interface, the urgent PUSH message is converted to
The urgent transmission information that matches with the communication protocol of the communication server simultaneously takes urgent transmission information transfer to the communication
Business device, the wherein urgent PUSH message include message content, channel information and an at least user terminal, and channel information includes multiple
Channel and channel priority corresponding with each channel;
Step 202, the communication server are according to the channel priority in the channel information of the urgent PUSH message by up to
Low order is successively sent on the channel adapter matched to the corresponding channel of channel priority the urgent transmission information;
Be adapted to the urgent transmission information and self communication agreement phase by step 203, the channel adapter of each matching
The emergency message matched somebody with somebody;
Step 204, the channel adapter of each matching send to this emergency message matched with self communication agreement
User terminal.
With reference to shown in Fig. 4, the message push system of the present embodiment also includes a quick interface 8 on the basis of embodiment 1,
The quick interface 8 receives the outside urgent PUSH message for sending, and the urgent PUSH message is converted to and the communication server
The urgent transmission information that matches of communication protocol and by the urgent transmission information transfer to the communication server 5, wherein this is tight
Hitch send message include message content, channel information and an at least user terminal, channel information include multiple support channels and with it is each
The corresponding channel priority of channel;
The communication server 5 is used for according to the channel priority in the channel information of the urgent PUSH message from high to low
Order is successively sent on the channel adapter 6 matched to the corresponding channel of channel priority the urgent transmission information;
The channel adapter 6 of each matching is used to be adapted to the urgent transmission information to match with self communication agreement
Emergency message;
The channel adapter 6 of each matching is used to send the emergency message matched with self communication agreement to the user
Terminal.
In the present embodiment, urgent PUSH message can be without the message database 2 and message sending unit 3 in embodiment 1
And user terminal is sent directly to, quick interface can be used for the quick transmission of very urgent message, reduce urgent pushed information
Retardance.
And, when message sending unit 3 in fig. 4 is multiple, in a step 102, those message sending units 3 compare
The transmission priority of each PUSH message stored in the message database 2, and according to send priority order from high to low according to
It is secondary at the same obtain storage PUSH message, and each message sending unit obtain PUSH message it is different.For example, it is assumed that message
Be stored with 10 PUSH messages in database 2, and the quantity of message sending unit 3 is respectively first message transmitting element, for 3
Two message sending units and the 3rd message sending unit, these three message sending units 3 obtain 10 push of storage simultaneously
During message, the PUSH message that first message transmitting element, the second message sending unit and the 3rd message sending unit are obtained is equal
Difference, such as first message transmitting element obtain first, the three, the 7th and the tenth PUSH messages, and the second message sends single
Unit obtains second, the four, the 5th and the 8th PUSH messages, and the 3rd message sending unit obtains the 6th and the 9th push and disappears
Breath.
Present embodiment ensure that PUSH message is not repeated acquisition, a certain message sending unit obtains from message database
, it is necessary to be locked plus row when PUSH message is read during PUSH message, it is ensured that this PUSH message does not send single by other message
Unit is read.
Although the foregoing describing specific embodiment of the invention, it will be appreciated by those of skill in the art that these
It is merely illustrative of, protection scope of the present invention is defined by the appended claims.Those skilled in the art is not carrying on the back
On the premise of principle of the invention and essence, various changes or modifications can be made to these implementation methods, but these are changed
Protection scope of the present invention is each fallen within modification.
Claims (12)
1. a kind of information push method, it is characterised in that it is comprised the following steps:
S1, a message pushes the PUSH message that sends outside interface, and those PUSH messages stored to a message data
In storehouse, each of which PUSH message includes message content, sends priority, channel information and an at least user terminal, channel letter
Breath includes multiple support channels and channel priority corresponding with each channel;
S2, a message sending unit compare the transmission priority of each PUSH message stored in the message database, and according to transmission
Priority order from high to low obtains the PUSH message of storage successively;
For the operation that each PUSH message for obtaining is implemented:
S3, the message sending unit judge each user terminal in the PUSH message stored in user's channels database
During channel is with the presence or absence of the channel in the channel information of the PUSH message, if the channel of the user terminal is present in channel letter
In channel in breath, then into step S4;
S4, the message sending unit PUSH message is converted to the transmission matched with the communication protocol of a communication server and believed
Cease and by the transmission information transfer to the communication server;
S5, the communication server according to the order from high to low of the channel priority in the channel information successively by the transmission information
On the channel adapter that transmission is matched to the corresponding channel of channel priority;
S6, each matching the channel adapter message that is adapted to match with self communication agreement by the transmission information;
S7, each matching the channel adapter that is matched by this of the message that will match with self communication agreement of channel adapter
Corresponding channel is sent into the user terminal, terminates flow;
In step S5In, the transmission information is sent into the channel of the user terminal preferential according to the channel by the communication server
On the channel adapter that the channel of the highest priority that level order from high to low sorts out is matched;
In step S7In, the message matched with self communication agreement is passed through highest priority by the channel adapter of the matching
Channel is sent into the user terminal.
2. information push method as claimed in claim 1, it is characterised in that the information push method also includes:
S1', the urgent PUSH message that sends outside a quick interface, the urgent PUSH message is converted to and the communication
Urgent transmission information that the communication protocol of server matches and by the urgent transmission information transfer to the communication server, wherein
The urgent PUSH message include message content, channel information and an at least user terminal, channel information include multiple support channels and with
The corresponding channel priority of each channel;
S2', the communication server according to the order from high to low of the channel priority in the channel information of the urgent PUSH message according to
It is secondary to send on the channel adapter matched to the corresponding channel of channel priority the urgent transmission information;
S3', be adapted to for the urgent transmission information urgent to disappear with what self communication agreement matched by the channel adapter of each matching
Breath;
S4', the channel adapter of each matching sends to the user terminal emergency message matched with self communication agreement.
3. information push method as claimed in claim 1, it is characterised in that message sending unit for it is multiple when, in step S2
In, those message sending units compare the transmission priority of each PUSH message stored in the message database, and according to transmission
Priority order from high to low obtains the PUSH message of storage simultaneously successively, and the push that each message sending unit is obtained disappears
Breath is different.
4. information push method as claimed in claim 1, it is characterised in that the message sending unit is sent out in the way of multithreading
Send the PUSH message for obtaining successively;And/or, the communication protocol of the communication server is XMPP.
5. information push method as claimed in claim 1, it is characterised in that each PUSH message also includes type of service, often
Channel information in one PUSH message also includes source template corresponding with each channel, in step S7In, the canal of each matching
Road adapter by with the message that self communication agreement matches with the source template form corresponding to the corresponding channel send to
In the user terminal.
6. information push method as claimed in claim 1, it is characterised in that in step S3In, if the channel of the user terminal is not
It is present in the channel in the channel information, then into step S8;
S8, the message sending unit sends the message for pushing to the user terminal in advance and pushes the information of failure to outside.
7. a kind of message push system, it is characterised in that it includes that a message pushes interface, a message database, message hair
Send unit, user's channels database, a communication server, at least a channel adapter, at least a channel and an at least use
Family terminal;
The message pushes interface to be used to receive the outside PUSH message for sending, and those PUSH messages are stored to the message count
According in storehouse, each of which PUSH message includes message content, sends priority, channel information and at least a user terminal, channel
Information includes multiple support channels and channel priority corresponding with each channel;
The message sending unit is used to compare the transmission priority of each PUSH message stored in the message database, and according to hair
Priority order from high to low is sent to obtain the PUSH message of storage successively;
For the operation that each PUSH message for obtaining is implemented:
The message sending unit is used to judge the canal of each user terminal in the PUSH message of storage in the customer data base
During road is with the presence or absence of the channel in the channel information of the PUSH message, the channel information is present in the channel of the user terminal
In channel in when, the message sending unit is additionally operable to that the PUSH message is converted to the communication protocol phase with the communication server
The transmission information of matching and by the transmission information transfer to the communication server;
The order that the communication server is used for according to the channel priority in the channel information from high to low successively believes the transmission
Breath is sent on the channel adapter matched to the corresponding channel of channel priority;
The channel adapter of each matching is used to for the transmission information to be adapted to the message that matches with self communication agreement, and will
Sent into the user terminal by the corresponding channel of the channel adapter of the matching with the message that self communication agreement matches;
The communication server is used to send the transmission information into the channel of the user terminal according to the channel priority by height
On the channel adapter that the channel of the highest priority sorted out to low order is matched;
The message that the channel adapter of the matching is used to match with self communication agreement is sent out by the channel of highest priority
In delivering to the user terminal.
8. message push system as claimed in claim 7, it is characterised in that the message push system also fast connects including
Mouthful, the urgent PUSH message sent outside the quick interface is converted to and the communication service the urgent PUSH message
Urgent transmission information that the communication protocol of device matches and by the urgent transmission information transfer to the communication server, wherein this is tight
Hitch send message include message content, channel information and an at least user terminal, channel information include multiple support channels and with it is each
The corresponding channel priority of channel;
The communication server is used for the order according to the channel priority in the channel information of the urgent PUSH message from high to low
The urgent transmission information is sent on the channel adapter matched to the corresponding channel of channel priority successively;
The channel adapter of each matching is urgent with what self communication agreement matched for the urgent transmission information to be adapted to
Message;
The channel adapter of each matching is used to send the emergency message matched with self communication agreement to the user terminal.
9. message push system as claimed in claim 7, it is characterised in that message sending unit for it is multiple when, those disappear
Breath transmitting element is used to compare the transmission priority of each PUSH message stored in the message database, and according to transmission priority
Order from high to low obtains the PUSH message of storage simultaneously successively, and the PUSH message that each message sending unit is obtained is not
Together.
10. message push system as claimed in claim 7, it is characterised in that the message sending unit is in the way of multithreading
The PUSH message that transmission is obtained successively;And/or, the communication protocol of the communication server is XMPP.
11. message push systems as claimed in claim 7, it is characterised in that each PUSH message also includes type of service, often
Channel information in one PUSH message also includes source template corresponding with each channel;The channel adapter of each matching is used for
To be sent to user's end in the source template form corresponding to the corresponding channel with the message that self communication agreement matches
In end.
12. message push systems as claimed in claim 7, it is characterised in that the message sending unit is used to judge this
When the channel of user terminal is not present in the channel in the channel information, sends the message for pushing to the user terminal in advance and push away
Send the information of failure to outside.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410383996.9A CN104104591B (en) | 2014-08-06 | 2014-08-06 | Message pushing method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410383996.9A CN104104591B (en) | 2014-08-06 | 2014-08-06 | Message pushing method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104104591A CN104104591A (en) | 2014-10-15 |
CN104104591B true CN104104591B (en) | 2017-05-17 |
Family
ID=51672403
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410383996.9A Active CN104104591B (en) | 2014-08-06 | 2014-08-06 | Message pushing method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104104591B (en) |
Families Citing this family (38)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104540105B (en) * | 2014-12-31 | 2017-12-26 | 北京无线天利移动信息技术股份有限公司 | A kind of mobile message is up and descending transmission method and system |
CN105050059A (en) * | 2015-06-05 | 2015-11-11 | 成都凌凯通信技术有限公司 | Information push method and information push platform |
CN106487827B (en) * | 2015-08-25 | 2020-06-16 | 平安科技(深圳)有限公司 | Multi-module push control method and system |
CN105426398A (en) * | 2015-10-29 | 2016-03-23 | 小米科技有限责任公司 | Information processing method and apparatus |
CN105554709A (en) * | 2015-12-17 | 2016-05-04 | 宁波优而雅电器有限公司 | Message transmission method based on application grades |
CN105376146A (en) * | 2015-12-17 | 2016-03-02 | 宁波优而雅电器有限公司 | Information transmission system based on application grade |
CN106656745B (en) * | 2016-10-31 | 2021-06-29 | 北京小米移动软件有限公司 | Information sending method and device |
CN108076130B (en) * | 2017-04-06 | 2023-11-03 | 北京微应软件科技有限公司 | Cross-platform user management method and device for mobile Internet |
CN107370810B (en) * | 2017-07-13 | 2020-08-28 | 北京奇艺世纪科技有限公司 | Push channel selection method, server and terminal equipment |
CN107819823A (en) * | 2017-09-26 | 2018-03-20 | 深圳市诚壹科技有限公司 | A kind of information processing method, server and computer-readable recording medium |
CN107770048A (en) * | 2017-10-16 | 2018-03-06 | 浪潮软件股份有限公司 | A kind of application message method for pushing and device |
CN108183933A (en) * | 2017-12-04 | 2018-06-19 | 深圳开思时代科技有限公司 | Information push method, apparatus and system, electronic equipment and computer storage media |
CN108093076A (en) * | 2017-12-29 | 2018-05-29 | 北京奇虎科技有限公司 | Information push method and device |
CN109948046B (en) * | 2018-01-05 | 2021-09-28 | 深圳壹账通智能科技有限公司 | Message pushing method and device, mobile terminal and storage medium |
CN108400927B (en) * | 2018-01-22 | 2021-01-26 | 广州欧赛斯信息科技有限公司 | Message pushing method and device for high-concurrency messages |
CN110601952B (en) * | 2018-06-12 | 2022-12-27 | 北京京东尚科信息技术有限公司 | Multi-channel message notification sending method and device |
CN108809994A (en) * | 2018-06-15 | 2018-11-13 | 挖财网络技术有限公司 | Unified message method for pushing and system based on event and regulation management |
CN109104357A (en) * | 2018-07-10 | 2018-12-28 | 携程旅游信息技术(上海)有限公司 | The processing method and system of PUSH message |
CN109067874B (en) * | 2018-08-02 | 2021-05-04 | 每日互动股份有限公司 | Method for processing push information based on port occupation |
CN109241414A (en) * | 2018-08-20 | 2019-01-18 | 中国平安人寿保险股份有限公司 | System message method for pushing and terminal device based on message template |
CN111131368A (en) * | 2018-11-01 | 2020-05-08 | 中国移动通信集团浙江有限公司 | Message pushing method and device |
CN109299387B (en) * | 2018-11-13 | 2024-03-19 | 平安科技(深圳)有限公司 | Message pushing method and device based on intelligent recommendation and terminal equipment |
CN109981445A (en) * | 2019-03-05 | 2019-07-05 | 上海博泰悦臻网络技术服务有限公司 | Vehicle device message uniformly configures method for pushing, server-side, engine end and client |
CN110737513A (en) * | 2019-09-17 | 2020-01-31 | Oppo广东移动通信有限公司 | information processing method, system and electronic equipment |
CN111651287A (en) * | 2020-05-31 | 2020-09-11 | 成都新潮传媒集团有限公司 | Message notification method, device and computer readable storage medium |
CN111885516A (en) * | 2020-07-09 | 2020-11-03 | 深圳市富之富信息技术有限公司 | Multi-channel access short message configuration method and device, computer equipment and storage medium |
CN111953776A (en) * | 2020-08-12 | 2020-11-17 | 江苏云柜网络技术有限公司 | Application service message pushing method and device, computer equipment and computer storage medium |
CN112256458A (en) * | 2020-11-09 | 2021-01-22 | 北京沃东天骏信息技术有限公司 | Message enqueuing method and device, electronic equipment and computer readable medium |
CN112491696A (en) * | 2020-11-30 | 2021-03-12 | 上海昌投网络科技有限公司 | Message center system based on message pushing |
CN112764795B (en) * | 2021-01-21 | 2022-02-18 | 奇秦科技(北京)股份有限公司 | Service-oriented cross-platform and cross-terminal information publishing system and method |
CN112948140A (en) * | 2021-02-04 | 2021-06-11 | 上海伊邦医药信息科技股份有限公司 | Method and system for improving user notification sending efficiency based on user using habits |
CN113905037A (en) * | 2021-06-18 | 2022-01-07 | 武汉理工数字传播工程有限公司 | File transmission management method, device, equipment and storage medium |
CN113609383A (en) * | 2021-07-15 | 2021-11-05 | 苏州工业园区凌志软件股份有限公司 | Unified information pushing system and method |
CN114125050A (en) * | 2021-11-29 | 2022-03-01 | 深圳十方融海科技有限公司 | Message scheduling method, device, equipment and storage medium |
CN114339627A (en) * | 2021-12-07 | 2022-04-12 | 联奕科技股份有限公司 | Message centralized control forwarding method |
CN114565425A (en) * | 2021-12-31 | 2022-05-31 | 北京城市网邻信息技术有限公司 | Message pushing method and device, electronic equipment and storage medium |
CN114363409B (en) * | 2022-01-05 | 2023-09-22 | 厦门市易联众易惠科技有限公司 | Multi-channel configurable unified message management method, platform and system |
CN115510366A (en) * | 2022-11-21 | 2022-12-23 | 北京白龙马云行科技有限公司 | Business message pushing method and device, computer equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102158822A (en) * | 2011-03-24 | 2011-08-17 | 华为终端有限公司 | User equipment and information sending method |
CN102364967A (en) * | 2011-11-21 | 2012-02-29 | 携程计算机技术(上海)有限公司 | Short message transmission method and system |
CN103139732A (en) * | 2011-11-24 | 2013-06-05 | 方正国际软件有限公司 | Improved short message sending method and system |
CN103166832A (en) * | 2011-12-15 | 2013-06-19 | 腾讯科技(深圳)有限公司 | Method and server for sending message |
CN103561394A (en) * | 2013-11-08 | 2014-02-05 | 惠州Tcl移动通信有限公司 | Method and system for sending message |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102348171B (en) * | 2010-07-29 | 2014-10-15 | 国际商业机器公司 | Message processing method and system thereof |
-
2014
- 2014-08-06 CN CN201410383996.9A patent/CN104104591B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102158822A (en) * | 2011-03-24 | 2011-08-17 | 华为终端有限公司 | User equipment and information sending method |
CN102364967A (en) * | 2011-11-21 | 2012-02-29 | 携程计算机技术(上海)有限公司 | Short message transmission method and system |
CN103139732A (en) * | 2011-11-24 | 2013-06-05 | 方正国际软件有限公司 | Improved short message sending method and system |
CN103166832A (en) * | 2011-12-15 | 2013-06-19 | 腾讯科技(深圳)有限公司 | Method and server for sending message |
CN103561394A (en) * | 2013-11-08 | 2014-02-05 | 惠州Tcl移动通信有限公司 | Method and system for sending message |
Also Published As
Publication number | Publication date |
---|---|
CN104104591A (en) | 2014-10-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104104591B (en) | Message pushing method and system | |
CN105812235B (en) | Message processing method, device and system | |
US20090219880A1 (en) | Automatic quality of service based resource allocation | |
CN104954446B (en) | Information push method and system | |
RU2008129126A (en) | DEVICE AND METHOD FOR TRANSMISSING MANY TO MANY MESSAGES ON A MOBILE COMMUNICATION NETWORK | |
CN103095684A (en) | Method obtaining attention user aggregate information, device and system | |
CN103580842A (en) | Method and system for conducting parallel transmission through multiple types of wireless links | |
CN103580966A (en) | Wireless link and wire link parallel data transmission method and system | |
CN108430038B (en) | The method and system that multiterminal are communicated based on bluetooth multiterminal | |
CN104063353B (en) | The method of synchronizing information between master-slave equipment | |
CN103606085A (en) | Method of issuing after-sale service data and server | |
CN105825409B (en) | Electronic invoice message pushing system and method | |
EP2624590A3 (en) | Method, apparatus and system for interconnected ring protection | |
CN110266582B (en) | Message pushing method, system, server and communication terminal | |
EP1569491A3 (en) | Group network system using bluetooth and generating method thereof | |
CN105471700B (en) | A kind of methods, devices and systems of Message Processing | |
MY159442A (en) | System and method for a global directory service | |
CN104243610A (en) | Distributed file transmission service method | |
CN107124628B (en) | Advertisement data publishing method and system | |
CN106027380A (en) | Message pushing method and device | |
CN105303365A (en) | Office schedule planning method based on intelligent terminals | |
CN109474900B (en) | Short message service system and service method | |
CN103685430A (en) | A mobile terminal combined display method, a system, and a server | |
CN105471719A (en) | Method for solving communication problems of chatting software under weak signals via cloud server storage technology | |
CN109257434A (en) | A kind of real-time messages method for pushing and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C41 | Transfer of patent application or patent right or utility model | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20160205 Address after: 200335 Shanghai city Changning District Admiralty Road No. 968 Building No. 16 10 floor Applicant after: SHANGHAI XIECHENG BUSINESS CO., LTD. Address before: 200335 Shanghai City, Changning District Fuquan Road No. 99, Ctrip network technology building Applicant before: Ctrip computer technology (Shanghai) Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |