CN104796495A - Message pushing method and system - Google Patents

Message pushing method and system Download PDF

Info

Publication number
CN104796495A
CN104796495A CN201510234404.1A CN201510234404A CN104796495A CN 104796495 A CN104796495 A CN 104796495A CN 201510234404 A CN201510234404 A CN 201510234404A CN 104796495 A CN104796495 A CN 104796495A
Authority
CN
China
Prior art keywords
application terminal
message
processing unit
access unit
sent
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
Application number
CN201510234404.1A
Other languages
Chinese (zh)
Inventor
赵明
余华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gigaset Digital Technology Shenzhen Co Ltd
Original Assignee
Gigaset Digital Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gigaset Digital Technology Shenzhen Co Ltd filed Critical Gigaset Digital Technology Shenzhen Co Ltd
Priority to CN201510234404.1A priority Critical patent/CN104796495A/en
Publication of CN104796495A publication Critical patent/CN104796495A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a message pushing method and a server, and is used for preventing the problem of low message processing efficiency caused by message middleware. The method disclosed by the embodiment of the invention comprises the following steps: obtaining a mapping relationship between an access unit and an application terminal, which is transmitted by the access unit by a processing unit; receiving a message processing instruction transmitted by a message transmission terminal, wherein the message processing instruction comprises a message push rule and to-be-transmitted content; determining a target application terminal by the processing unit according to the message push rule; determining a target access unit corresponding to a target application terminal according to a mapping relationship between the target application terminal and the application terminal and the mapping relationship between the access unit and the application terminal; and transmitting the to-be-transmitted content to the target application terminal through the target access unit. The to-be-transmitted content is processed through the processing unit, and is directly transferred to the access unit, so that the problem of low message processing efficiency caused by the message middleware is avoided.

Description

A kind of information push method and system
Technical field
The present invention relates to Internet technical field, particularly relate to a kind of information push method and system.
Background technology
Along with the develop rapidly of Internet technology, carried increasing application program (APP, application) in the terminal such as mobile phone, panel computer of user, the background application server of these APP is often to user's active push application message.
Message push service all adopts MQ Message Queuing Middleware to realize message distribution usually, the framework of message push system comprises application terminal, incoming end, message-oriented middleware, end for process, business end, and message forwards and deferred information persistence is completed by message-oriented middleware.But when message push service, the forwarding of a large amount of message and storage, and be an acid test to the query of subscription frequently of these message etc. for middleware, cause for large-scale messages application cost too high, efficiency is lower.
Summary of the invention
Embodiments provide a kind of information push method and system, the problem of the Message Processing inefficiency because of message-oriented middleware can be avoided.
First aspect, embodiments provides a kind of information push method, comprising:
Processing unit obtains the mapping relations between the access unit of access unit transmission and application terminal; The message processing instruction that processing unit receipt message transmitting terminal sends, comprises message push rule and content to be sent in this message processing instruction, message push rule is used to indicate the rule pushing this content to be sent; Processing unit determines target application terminal according to message push rule; Processing unit is according to target application terminal and target access unit corresponding to the mapping relations determination target application terminal between access unit with application terminal, and wherein, target access unit is at least one in access unit; Afterwards, content to be sent is sent to target application terminal by target access unit by processing unit.
In conjunction with first aspect, in the first possible implementation of first aspect, the method also comprises: if content to be sent sends unsuccessfully, then processing unit preserves the content to be sent sent unsuccessfully.
In conjunction with the first possible implementation of first aspect, first aspect, in the implementation that the second of first aspect is possible, processing unit and access unit are different server; Or processing unit and access unit are the disparate modules in same server.
In conjunction with the first possible implementation of first aspect, first aspect, in the third possible implementation of first aspect, according to message push rule, processing unit determines that target application terminal comprises: processing unit obtains the identification information of target application terminal from message push rule; Processing unit is according to the identification information determination target application terminal of target application terminal.
In conjunction with the first possible implementation of first aspect, first aspect, in the 4th kind of possible implementation of first aspect, according to message push rule, processing unit determines that target application terminal comprises: processing unit obtains the attributive character of application terminal; This attributive character and message push rule are mated; If this attributive character meets message push rule, then processing unit determines that this application terminal is target application terminal.
In conjunction with the 4th kind of possible implementation of first aspect, in the 5th kind of possible implementation of first aspect, the attributive character that processing unit obtains described application terminal comprises: processing unit receives the notification message of application terminal; Processing unit obtains the attributive character of described application terminal according to notification message.
Second aspect, embodiments provides a kind of message push system, and this message push system comprises processing unit, access unit, application terminal and message sending end; Message sending end, for sending message processing instruction to processing unit, comprise message push rule and content to be sent in this message processing instruction, wherein message push rule is used to indicate the rule pushing content to be sent; Access unit, for sending the mapping relations between access unit and application terminal to processing unit; Processing unit, for obtaining the mapping relations that access unit sends, the message processing instruction that receipt message transmitting terminal sends, afterwards, target application terminal is determined according to the message push rule in message processing instruction, again according to target application terminal and target access unit corresponding to mapping relations determination target application terminal, content to be sent is sent to target application terminal by target access unit, and wherein target access unit is at least one in access unit.
In conjunction with second aspect, in the first possible implementation of second aspect, processing unit and access unit are different server; Or processing unit and access unit are the disparate modules in same server.
In conjunction with second aspect, in the implementation that the second of second aspect is possible, processing unit comprises: the first acquisition module, for obtaining the mapping relations between the access unit of access unit transmission and application terminal; First receiver module, for the message processing instruction that receipt message transmitting terminal sends; First determination module, for determining target application terminal according to message push rule; Second determination module, for according to target application terminal and target access unit corresponding to mapping relations determination target application terminal; Sending module, for being sent to target application terminal by content to be sent by target access unit.
In conjunction with the implementation that the second of second aspect is possible, in the third possible implementation of second aspect, described message push system also comprises: memory cell; Processing unit also comprises: preserve module, for when content to be sent sends unsuccessfully, preserves the content to be sent of this transmission failure to described memory cell.
The third possible implementation of the implementation possible in conjunction with the second of second aspect or second aspect, in the 4th kind of possible implementation of second aspect, first determination module specifically for obtaining the identification information of target application terminal from message push rule, according to the identification information determination target application terminal of target application terminal.
The third possible implementation of the implementation possible in conjunction with the second of second aspect or second aspect, in the 5th kind of possible implementation of second aspect, processing unit also comprises: the second acquisition module, for obtaining the attributive character of application terminal; Matching module, for mating the attributive character of application terminal and described message push rule; First determination module, during specifically for determining that when matching module the attributive character of application terminal meets message push rule, determines that described application terminal is target application terminal.
In conjunction with the 5th kind of possible implementation of second aspect, in the 6th kind of possible implementation of second aspect, application terminal is used for sending a notification message to processing unit, and processing unit comprises: the second receiver module, for receiving the notification message of application terminal; Then the second acquisition module is specifically for obtaining the attributive character of application terminal according to this notification message.
As can be seen from the above technical solutions, the scheme of the embodiment of the present invention has following beneficial effect:
In the embodiment of the present invention, processing unit obtains the mapping relations between the access unit of access unit transmission and application terminal, the message processing instruction that receipt message transmitting terminal sends, message push rule and content to be sent is comprised in this message processing instruction, afterwards, processing unit determines target application terminal according to message push rule, again according to target application terminal and target access unit corresponding to the mapping relations determination target application terminal between access unit with application terminal, content to be sent is sent to target application terminal by target access unit.Thus process content to be sent by processing unit and content to be sent is directly forwarded to access unit, therefore avoid the problem of the Message Processing inefficiency caused because of message-oriented middleware.
Term " first ", " second ", " the 3rd " " 4th " etc. (if existence) in specification of the present invention and claims and above-mentioned accompanying drawing are for distinguishing similar object, and need not be used for describing specific order or precedence.The embodiments described herein should be appreciated that the data used like this can be exchanged in the appropriate case, so that can be implemented with the order except the content except here diagram or description.In addition, term " comprises " and " having " and their any distortion, intention is to cover not exclusive comprising, such as, contain those steps or unit that the process of series of steps or unit, method, system, product or equipment is not necessarily limited to clearly list, but can comprise clearly do not list or for intrinsic other step of these processes, method, product or equipment or unit.
The embodiment of the present invention is described to the application program PUSH message in the terminal such as mobile phone, panel computer for server.Server can be message push server or message server.When the background application server of application program is to user's active push application message, actual is to application terminal PUSH message by message server.
Application server (i.e. message sending end or service server) can send dissimilar message to message push server, to meet different message push application scenarios demands, such as: send message to the cellphone subscriber in the geographic area of specifying, send message to the cellphone subscriber of a certain model of specifying, send message etc. to a certain specific user colony specified.Message server can, by the dissimilar message send request of response message transmitting terminal, realize pushing dissimilar message to the application terminal such as mobile phone, panel computer.
Message push system is made up of message sending end, processing unit, access unit, application terminal, wherein, processing unit and access unit can form message server, after message is sent to message server by message sending end, message is processed by processing unit, send to the access unit that target application terminal is corresponding again, then send to target application terminal by access unit.
Composition graphs 1, in the embodiment of the present invention, an embodiment of information push method comprises:
101, processing unit obtains the mapping relations between the access unit of access unit transmission and application terminal;
In message push system, application terminal and access unit carry out communication, access unit again with processing unit communication, processing unit and message sending end communication.Wherein, the asynchronous long connected mode of NIO can be adopted between application terminal with access unit to be connected, can be 1 to many relations between application terminal and access unit, namely 1 application terminal be only set up 1 with some access units and is connected, and 1 access unit can connect with multiple application terminal.
When registration connection is carried out in application terminal, be that registration request is sent to corresponding access unit, registration request is transmitted to processing unit by access unit again, now, processing unit can obtain the mapping relations between the access unit of access unit transmission and application terminal, and preserves these mapping relations.
It should be noted that, the application terminal in the embodiment of the present invention can include but are not limited to PC, panel computer, smart mobile phone, electronic reader, car-mounted terminal and Wearable etc. and run the internet device having application program.
102, the message processing instruction of processing unit receipt message transmitting terminal transmission;
When message sending end has message to need to push, can send message processing instruction, comprise message push rule and content to be sent in this instruction to processing unit, wherein the instruction of message push rule pushes the rule of this content to be sent.Afterwards, processing unit receives the content to be sent that message push is regular and this rule is corresponding that this message sending end sends.
It should be noted that, processing unit is mainly for the treatment of the relevant service logic of message to be sent.
In actual applications, message sending end is application server or the service server on application program backstage.
103, processing unit determines target application terminal according to message push rule;
Processing unit, after receiving the message processing instruction comprising message push rule and content to be sent, is determined the application terminal that this message will be sent to this application terminal to be referred to as target application terminal according to this message push rule.
104, processing unit is according to target application terminal and target access unit corresponding to the mapping relations determination target application terminal between access unit with application terminal;
After processing unit determines target application terminal according to message push rule, according to the mapping relations between the application terminal stored in this target application terminal and memory cell and access unit, determine the target access unit that this target application terminal is corresponding.Wherein, this target access unit is at least one in access unit.
It should be noted that, the Main Function of access unit is forwarding messages between application terminal and processing unit, access unit has two communication interfaces, one for setting up communication port with application terminal, one, for setting up communication port with processing unit, completes the message forwarding between application terminal and message processing server.Access server belongs to state, the connection status of in store each application terminal, so, processing unit sends message during to application terminal, processing unit needs first to find and with which access unit sends, and then by this access unit, message is sent to the target application terminal of specifying.
And because access unit is owing to being only responsible for data retransmission, so, less demanding to the host performance of server, a large amount of application terminals can be met and connect concurrent.
104, content to be sent is sent to target application terminal by target access unit by processing unit;
Processing unit is after determining target access unit corresponding to target application terminal, and content to be sent corresponding for this message push rule is sent to this target access unit, and this content to be sent is sent to target application terminal by target access unit again.
In the embodiment of the present invention, processing unit receipt message processing instruction, message push rule and content to be sent is comprised in this message processing instruction, wherein, message push rule is used to indicate the rule pushing content to be sent, processing unit is according to the identification information of message push Rule target application terminal, afterwards, the access unit corresponding according to the identification information determination target application terminal of target application terminal, access unit is arranged in message server, afterwards, content to be sent is sent to access unit by processing unit, content to be sent is sent to target application terminal by access unit.Thus process content to be sent by processing unit and content to be sent is directly forwarded to access unit, therefore avoid the problem of the Message Processing inefficiency caused because of message-oriented middleware.
Processing unit is determined the mode that two kinds, target application terminal is different to be described in detail below respectively according to message push rule.
One, processing unit determines the first kind of way of target application terminal according to message push rule: from the message push rule received, obtain target application terminal.
Composition graphs 2, in the embodiment of the present invention, another embodiment of information push method comprises:
201, processing unit obtains the mapping relations between the access unit of access unit transmission and application terminal;
In message push system, application terminal and access unit carry out communication, access unit again with processing unit communication, processing unit and message sending end communication.Wherein, the asynchronous long connected mode of NIO can be adopted between application terminal with access unit to be connected, can be 1 to many relations between application terminal and access unit, namely 1 application terminal be only set up 1 with some access units and is connected, and 1 access unit can connect with multiple application terminal.
When registration connection is carried out in application terminal, be that registration request is sent to corresponding access unit, registration request is transmitted to processing unit by access unit again, now, processing unit can obtain the mapping relations between the access unit of access unit transmission and application terminal, and preserves these mapping relations.
It should be noted that, processing unit in the present embodiment and access unit, it can be the disparate modules in a message server, also can be different message servers, such as: processing server and access server, these different servers can form message server cluster, with support distribution formula framework.
In addition, it should be noted that, the application terminal in the embodiment of the present invention can include but are not limited to PC, panel computer, smart mobile phone, electronic reader, car-mounted terminal and Wearable etc. and run the internet device having application program.
202, the message processing instruction of processing unit receipt message transmitting terminal transmission;
When message sending end has message to need to push, can send message processing instruction, comprise message push rule and content to be sent in this instruction to processing unit, wherein the instruction of message push rule pushes the rule of this content to be sent.Afterwards, processing unit receives the content to be sent that message push is regular and this rule is corresponding that this message sending end sends.
It should be noted that, processing unit is mainly for the treatment of the relevant service logic of message to be sent.
In actual applications, message sending end is application server or the service server on application program backstage.
203, processing unit obtains the identification information of target application terminal from message push rule;
In fact, the message push rule that processing unit receives is made up of one or more attributive character.
Processing unit, after receiving the message push rule in message processing instruction, first obtains the attributive character comprised in this message push rule, then judges whether this attributive character is account ID or device id from this message push rule.
If device id, then this device id is the identification information of target application terminal.
If account ID, then from memory cell, find corresponding all devices ID according to account ID, these device ids are then the identification information of target application terminal.Account ID can corresponding multiple device id, such as: user has certain App in 4 station terminal device logs simultaneously, then finds corresponding 4 device ids of the account ID of this user, and using the identification information of these 4 device ids as target application terminal.
In the embodiment of the present invention, attributive character can be the user property (such as: account ID, sex, age etc.) of application terminal, it can also be the device attribute (such as: device id, unit type) of this application terminal, can also be in advance to the tag attributes (such as: hobby football) that the user of this application terminal is arranged, can also be the geographical position attribute (such as: Shenzhen) of this application terminal, specifically not limit herein.
It should be noted that, the attributive character of application terminal not necessarily only comprises the attributive character of foregoing description, can also comprise more eurypalynous attributive character, specifically not limit herein.
204, processing unit is according to the identification information determination target application terminal of target application terminal;
Obtain the identification information of target application terminal at processing unit, namely after device id, target application terminal can be determined according to this device id.
205, processing unit is according to target application terminal and target access unit corresponding to the mapping relations determination target application terminal between access unit with application terminal;
After processing unit determines target application terminal according to message push rule, according to the mapping relations between the application terminal stored in this target application terminal and memory cell and access unit, determine the target access unit that this target application terminal is corresponding.Wherein, this target access unit is at least one in access unit.
It should be noted that, the Main Function of access unit is forwarding messages between application terminal and processing unit, access unit has two communication interfaces, one for setting up communication port with application terminal, one, for setting up communication port with processing unit, completes the message forwarding between application terminal and message processing server.Access server belongs to state, the connection status of in store each application terminal, so, processing unit sends message during to application terminal, processing unit needs first to find and with which access unit sends, and then by this access unit, message is sent to the target application terminal of specifying.
And because access unit is owing to being only responsible for data retransmission, so, less demanding to the host performance of server, a large amount of application terminals can be met and connect concurrent.
206, content to be sent is sent to target application terminal by target access unit by processing unit;
Processing unit is after determining target access unit corresponding to target application terminal, and content to be sent corresponding for this message push rule is sent to this target access unit, and this content to be sent is sent to target application terminal by target access unit again.
If 207 contents to be sent send unsuccessfully, then processing unit preserves the content to be sent sent unsuccessfully.
After content to be sent is sent to target application terminal by processing unit, if because application terminal is not online, or due to other reasons cause this content to be sent to send unsuccessfully time, the notification message that these target application terminal return messages take defeat, after access unit receives the notification message of this message sink failure, returned to processing unit, processing unit then preserves this content to be sent sent unsuccessfully.
The content to be sent of transmission failure that processing unit is preserved be with this target application terminal ID preserve for Key, when target application terminal next time has the message such as heartbeat, registration to send to processing unit, the content to be sent of this transmission failure sends by processing unit again, or, processing unit starts timer, this content to be sent is often sent once at regular intervals, until transmission success or transmission times exceed threshold value.
In the embodiment of the present invention, processing unit is by judging whether the attributive character in message push rule is account ID or device id, in a case of yes, using device id or device id corresponding to the account ID identification information as target application terminal, thus target application terminal is determined.Thus improve the realizability of scheme.
Secondly, in the embodiment of the present invention, if message sends unsuccessful, processing unit preserves the content to be sent sent unsuccessfully, ensure that the Storage and Processing of deferred information.
Two, processing unit determines the second way of target application terminal according to message push rule: the attributive character of the application terminal obtained and message push rule are mated, if when the attributive character of this application terminal meets this message push rule, determine that this application terminal is target application terminal.
Composition graphs 3, in the embodiment of the present invention, another embodiment of information push method comprises:
301, processing unit obtains the mapping relations between the access unit of access unit transmission and application terminal;
In message push system, application terminal and access unit carry out communication, access unit again with processing unit communication, processing unit and message sending end communication.Wherein, the asynchronous long connected mode of NIO can be adopted between application terminal with access unit to be connected, can be 1 to many relations between application terminal and access unit, namely 1 application terminal be only set up 1 with some access units and is connected, and 1 access unit can connect with multiple application terminal.
When registration connection is carried out in application terminal, be that registration request is sent to corresponding access unit, registration request is transmitted to processing unit by access unit again, now, processing unit can obtain the mapping relations between the access unit of access unit transmission and application terminal, and preserves these mapping relations.
It should be noted that, processing unit in the present embodiment and access unit, it can be the disparate modules in a message server, also can be different message servers, such as: processing server and access server, these different servers can form message server cluster, with support distribution formula framework.
In addition, it should be noted that, the application terminal in the embodiment of the present invention can include but are not limited to PC, panel computer, smart mobile phone, electronic reader, car-mounted terminal and Wearable etc. and run the internet device having application program.
302, the message processing instruction of processing unit receipt message transmitting terminal transmission;
When message sending end has message to need to push, can send message processing instruction, comprise message push rule and content to be sent in this instruction to processing unit, wherein the instruction of message push rule pushes the rule of this content to be sent.Afterwards, processing unit receives the content to be sent that message push is regular and this rule is corresponding that this message sending end sends.The message push rule received and content to be sent can be preserved in the memory unit by processing unit, send in time can sending this transmission content again.
It should be noted that, processing unit is mainly for the treatment of the relevant service logic of message to be sent.
In actual applications, message sending end is application server or the service server on application program backstage.
303, processing unit obtains the attributive character of application terminal;
Processing unit, when being communicated with application terminal by access unit, gets the identification information of application terminal, and from memory cell, obtains the attributive character of this application terminal according to the identification information of this application terminal.Concrete flow process can be as follows:
Communicated by network between application terminal and message server, in different business scenarios, application terminal can send different notification messages to message server, to complete different service communications.
When application terminal sends a notification message to message server, the access unit of message server receives the notification message of application terminal, notification message is forwarded to processing unit by access unit, and processing unit therefrom obtains the identification information (such as: the ID of application terminal) of this application terminal.
The attributive character of each application terminal of registered mistake is preserved in the memory cell of message server.Processing unit, after getting the identification information of application terminal, obtains the attributive character of this application terminal from memory cell according to the identification information of application terminal.
In actual applications, the notification message that application terminal sends to the access unit of message server can be registration request: registration request is initiatively initiated to the access unit of message server in application terminal, after connection establishment, processing unit processes the registration request of application terminal immediately, and returns registering result to application terminal.
In actual applications, the notification message that application terminal sends to the access unit of message server can be heartbeat request: application terminal at set intervals, access unit to message server initiates heartbeat request, to keep the active state be connected with message server, after processing unit receives, application terminal can be responded; Otherwise, when message server does not receive the heartbeat request of application terminal within the specific time period, will passage be disconnected.
In actual applications, the notification message that application terminal sends to the access unit of message server can also be message sink success notification: when the access unit of message server successful transmission of message to this application terminal, and application terminal sends message sink success notification to message server.
It should be noted that, the notification message that application terminal sends can be not limited only to registration request, heartbeat request and message sink success notification, can also be other notification messages, as long as application terminal and message server can be allowed to carry out the message communicated.
In the embodiment of the present invention, attributive character can be the user property (such as: account ID, sex, age etc.) of application terminal, it can also be the device attribute (such as: device id, unit type) of this application terminal, can also be in advance to the tag attributes (such as: hobby football) that the user of this application terminal is arranged, can also be the geographical position attribute (such as: Shenzhen) of this application terminal, specifically not limit herein.
It should be noted that, the attributive character of application terminal not necessarily only comprises the attributive character of foregoing description, can also comprise more eurypalynous attributive character, specifically not limit herein.
304, this attributive character and message push rule are mated by processing unit;
Message push rule in the attributive character of application terminal and step 302, after getting the attributive character of application terminal, is mated by processing unit, judges whether the attributive character of this application terminal can match this message push rule.
In fact, the message push rule that processing unit receives is made up of one or more attributive character.
Optionally, as another embodiment, the specific implementation that the attributive character of application terminal and message push rule carry out mating can be by processing unit:
A, processing unit obtain particular community feature from message push rule;
Processing unit obtains the attributive character comprised in this message push rule from message push rule, and the attributive character herein got can be one, also can be multiple, in the present embodiment, the attributive character got is called particular community feature herein.
B, processing unit judge whether the attributive character of this application terminal comprises this particular community feature;
After processing unit gets particular community feature from message push rule, judge in the attributive character of application terminal, whether to include this particular community feature.
C, processing unit determine that the attributive character of this user terminal meets message push rule;
If the result that processing unit judges is when comprising this particular community feature in the attributive character of this application terminal, then determine that the attributive character of this user terminal meets message push rule.
If 305 attributive character meet message push rule, then processing unit determines that this application terminal is target application terminal;
If processing unit determines that the attributive character of this application terminal meets message push rule, processing unit then determines that this application terminal is target application terminal.
Step 205 in embodiment shown in step 306 to step 308 with Fig. 2 is identical to step 207, repeats no more herein.
In the embodiment of the present invention, the mode of processing unit determination target application terminal is: the attributive character of the application terminal obtained and message push rule are mated, if when the attributive character of this application terminal meets this message push rule, then determine that this application terminal is target application terminal, the identification information of this application terminal is the identification information of target application terminal.Thus the flexibility that the scheme that improves realizes.
For the ease of understanding, with a concrete application scenarios, the information push method described in above-described embodiment is described in detail below, concrete:
Message sending end (i.e. service server) can be the background service of any a App application, for the social App business of certain money, the user having this App public number logs in the public platform of this App, if desired message is sent to the user subscribing to this public number, then select a newly-built pocket transmission news, input message content to be sent, and select this message push rule, such as: the sex of message sending object is female, and geographical position is Shenzhen.After submitting this message to, this message push rule and content to be sent are sent to processing unit by this App service server.
Processing unit, after receiving this message, judges whether the attributive character in message push rule is account ID or device id, and if so, this message content is then directly sent to the application terminal of account ID or device id instruction by processing unit.
If not, then perform following operation:
This message push rule and content to be sent are saved to (such as NoSQL) in memory cell by processing unit.Message push rule list in database is as shown in table 1:
Table 1
In table 1, to be the content of the rule correspondence of " 001 " be rule ID: sex is " female ", and geographical position is " Shenzhen ", and to be the content of the rule correspondence of " 002 " be rule ID: the age " is greater than 30 ", and mobile phone model is " iPhone 5S ".
Message push contents table in database is as shown in table 2:
Table 2
Message content ID Rule ID Message content
1523 001 The first list of shopping is reach 79 yuan and is sent 79 yuan
1524 002 Fresh 7 foldings of import are preferential
In table 2, message content ID for content corresponding to the message of " 1523 " for " shopping first single completely 79 yuan send 79 yuan ", corresponding propelling movement rule ID is " 001 ", message content ID is content corresponding to the message of " 1524 " is " fresh 7 foldings of import are preferential ", and corresponding propelling movement rule ID is " 002 ".
Each user is when using this App, and processing unit can obtain the attributive character such as subscriber data, cellphone information, geographical location information of this user from various approach, and these attributive character is preserved in a database.In database, the attributive character table of user is as shown in table 3:
Table 3
In table 3, represent that application terminal ID is the mobile phone of " 35203906323600 ", account ID is " Iris_wang@qq.com ", sex is " female ", the age " 45 years old ", and geographical position is in " Shenzhen ", mobile phone model is " iPhone 5S ", and label is " enterpriser, football fan ".Application terminal ID is the mobile phone of " 35203906323601 ", and account ID is " 18976541256 ", and sex is " female ", and at the age " 28 years old ", geographical position is in " Shenzhen ", and mobile phone model is " HuaweiP8 ", and label is " product manager, after 80s ".Application terminal ID can be the international identification code (IMEI, International Mobile Equipment Identity) of mobile device of mobile phone.
This App application program on the mobile phone of each user of this App keeps the asynchronous length of NIO to be connected by heartbeat and access unit, when not having data transmit-receive action between the mobile phone and message server of this user in a period of time, the App application program in this mobile phone then sends heartbeat request to access unit.After access unit receives heartbeat request, obtain the IMEI of this user mobile phone according to this heartbeat request, i.e. application terminal ID, the IMEI of this user is sent to processing unit by access unit again.
In message server, processing unit finds the attributive character that this mobile phone is corresponding according to this application terminal ID again from the memory cell of self.Such as, that message server receives is mobile phone IMEI is the heartbeat request of " 35203906323600 ", then, can to obtain attributive character corresponding to this mobile phone in dependency mark sheet 3 be sex is " female ", age " 45 years old ", geographical position is in " Shenzhen ", and mobile phone model is " iPhone 5S ", and label is " enterpriser, football fan ".
It is after the attributive character of " 35203906323600 " that processing unit obtains mobile phone IMEI, rule in message push rule list in these attributive character and table 1 is mated one by one, judges that mobile phone IMEI is the attributive character during whether the attributive character of " 35203906323600 " comprises in message push rule list certain rule.
Processing unit passes through comparison, obtaining the attributive character sex that mobile phone IMEI is " 35203906323600 " is " female ", age " 45 years old ", geographical position is in " Shenzhen ", mobile phone model is " iPhone5S ", label is " enterpriser, football fan ", and containing rule ID in table 1 is completely the attributive character of " 002 ": the age " is greater than 18 ", and mobile phone model is " iPhone 5S ".Expression mobile phone IMEI is that the mobile phone of " 35203906323600 " meets message push rule " 002 ".
And the content to be sent of rule correspondence that message push rule is " 002 " message that to be message content ID in table 2 message push contents table be " 1524 ": " fresh 7 foldings of import are preferential ".
Determine that IMEI is that the mobile phone of " 35203906323600 " meets message push rule " 002 " at processing unit, and obtain corresponding content to be sent: time " fresh 7 foldings of import are preferential ", it is 35203906323600 that processing unit obtains IMEI from memory cell " access unit corresponding to application terminal; afterwards; this content to be sent is sent so far access unit by processing unit, this content to be sent is sent to this App in the mobile phone that IMEI is " 35203906323600 " by access unit again.
Be more than that the information push method in the embodiment of the present invention is described, from the angle of modular functionality entity, the message server the embodiment of the present invention be described below.
Composition graphs 4, a kind of message push system that the embodiment of the present invention provides, comprising:
Processing unit 401, access unit 402, application terminal 403 and message sending end 404.
Wherein, message sending end 404, for sending message processing instruction to processing unit 401, comprises message push rule and content to be sent in this message processing instruction, wherein message push rule is used to indicate the rule pushing content to be sent;
Access unit 402, for sending the mapping relations between access unit and application terminal to processing unit 401;
Wherein, the mapping relations that processing unit 401 sends for obtaining access unit 402, the message processing instruction that receipt message transmitting terminal 404 sends, afterwards, target application terminal is determined according to the message push rule in message processing instruction, again according to target application terminal and target access unit corresponding to mapping relations determination target application terminal, content to be sent is sent to target application terminal by target access unit, and wherein target access unit is at least one in access unit.
In the embodiment of the present invention, processing unit 401 obtains the mapping relations between the access unit of access unit 402 transmission and application terminal 403, the message processing instruction that receipt message transmitting terminal 404 sends, message push rule and content to be sent is comprised in this message processing instruction, afterwards, processing unit determines target application terminal according to message push rule, again according to target application terminal and target access unit corresponding to the mapping relations determination target application terminal between access unit with application terminal, content to be sent is sent to target application terminal by target access unit.Thus process content to be sent by processing unit and content to be sent is directly forwarded to access unit, therefore avoid the problem of the Message Processing inefficiency caused because of message-oriented middleware.
Below the structure in processing unit is described in detail.
Composition graphs 5, a kind of message push system that the embodiment of the present invention provides, comprising:
Processing unit 501, access unit 502, application terminal 503 and message sending end 504.
Wherein, message sending end 504, for sending message processing instruction to processing unit 501, comprises message push rule and content to be sent in this message processing instruction, wherein message push rule is used to indicate the rule pushing content to be sent;
Access unit 502, for sending the mapping relations between access unit and application terminal to processing unit 501;
Wherein, the mapping relations that processing unit 501 sends for obtaining access unit 502, the message processing instruction that receipt message transmitting terminal 504 sends, afterwards, target application terminal is determined according to the message push rule in message processing instruction, again according to target application terminal and target access unit corresponding to mapping relations determination target application terminal, content to be sent is sent to target application terminal by target access unit, and wherein target access unit is at least one in access unit.
Wherein, processing unit 501 and access unit 502 can be different server; Or processing unit 501 and access unit 502 are the disparate modules in same server.
Wherein, processing unit 501 comprises:
First acquisition module 5011, for obtaining the mapping relations between the access unit of access unit 502 transmission and application terminal 503;
First receiver module 5012, for the message processing instruction that receipt message transmitting terminal 504 sends;
First determination module 5013, for determining target application terminal according to message push rule;
Second determination module 5014, the target access unit that the mapping relations determination target application terminal for obtaining according to target application terminal and the first acquisition module 5011 is corresponding;
Sending module 5015, for being sent to target application terminal by content to be sent by target access unit.
Message push system also comprises: memory cell 505;
Processing unit 501 also comprises: preserve module 5016, for when content to be sent sends unsuccessfully, preserve the content to be sent of this transmission failure to memory cell 505.
First determination module 5013, specifically for obtaining the identification information of target application terminal from message push rule, according to the identification information determination target application terminal of target application terminal.
Below with a concrete application scenarios to being described alternately between module each in message push system of the present invention:
In message push system, application terminal 503 and access unit 502 carry out communication, access unit 502 again with processing unit 501 communication, processing unit 501 and message sending end 504 communication.Wherein, the asynchronous long connected mode of NIO can be adopted between application terminal 503 with access unit 502 to be connected, can be 1 to many relations between application terminal 503 and access unit 502, namely 1 application terminal is only set up 1 with some access units and is connected, and 1 access unit can connect with multiple application terminal.
When registration connection is carried out in application terminal 503, registration request is sent to corresponding access unit 502, registration request is transmitted to processing unit 501 by access unit 502 again, now, the first acquisition module 5011 in processing unit 501 can obtain the mapping relations between the access unit 502 of access unit 502 transmission and application terminal 503, and preserves these mapping relations to memory cell 505.
It should be noted that, processing unit 501 in the present embodiment and access unit 502, it can be the disparate modules in a message server, also can be different message servers, such as: processing server and access server, these different servers can form message server cluster, with support distribution formula framework.
It should be noted that, the application terminal 503 in the embodiment of the present invention can include but are not limited to PC, panel computer, smart mobile phone, electronic reader, car-mounted terminal and Wearable etc. and run the internet device having application program.
When message sending end has message to need to push, can send message processing instruction, comprise message push rule and content to be sent in this instruction to processing unit 501, wherein the instruction of message push rule pushes the rule of this content to be sent.Afterwards, the first receiver module 5012 in processing unit 501 receives the content to be sent that message push is regular and this rule is corresponding that this message sending end sends.
It should be noted that, processing unit 501 is mainly for the treatment of the relevant service logic of message to be sent.
In actual applications, message sending end 503 is application server or the service servers on application program backstage.
In fact, the message push rule that the first receiver module 5012 in processing unit 501 receives is made up of one or more attributive character.
The first receiver module 5012 in processing unit 501 is after receiving the message push rule in message processing instruction, first determination module 5013 first obtains the attributive character comprised in this message push rule from this message push rule, then judges whether this attributive character is account ID or device id.
If device id, then the first determination module 5013 determines that this device id is the identification information of target application terminal.
If account ID, then the first determination module 5013 finds corresponding all devices ID according to account ID from memory cell, and these device ids are then the identification information of target application terminal.Account ID can corresponding multiple device id, such as: user has certain App in 4 station terminal device logs simultaneously, then finds corresponding 4 device ids of the account ID of this user, and using the identification information of these 4 device ids as target application terminal.
In the embodiment of the present invention, attributive character can be the attributive character (such as: account ID, sex, age etc.) of the user of application terminal, it can also be the attributive character (such as: device id, unit type) of the equipment of this application terminal, can also be in advance to the tag attributes feature (such as: hobby football) that the user of this application terminal is arranged, can also be the geographical position attributive character (such as: Shenzhen) of this application terminal, specifically not limit herein.
It should be noted that, the attributive character of application terminal not necessarily only comprises the attributive character of foregoing description, can also comprise more eurypalynous attributive character, specifically not limit herein.
After the first determination module 5013 in processing unit 501 determines target application terminal according to message push rule, the second determination module 5014 in processing unit 501, according to the mapping relations between the application terminal stored in this target application terminal and memory cell 505 and access unit, determines the target access unit that this target application terminal is corresponding.Wherein, this target access unit is at least one in access unit 502.
It should be noted that, the Main Function of access unit 502 is forwarding messages between application terminal 503 and processing unit 501, access unit 502 has two communication interfaces, one for setting up communication port with application terminal, one, for setting up communication port with processing unit 501, completes the message forwarding between application terminal and message processing server.Access unit belongs to state, the connection status of in store each application terminal, so, processing unit 501 sends message during to application terminal, processing unit 501 needs first to find and with which access unit sends, and then by this access unit 502, message is sent to the target application terminal of specifying.
And because access unit 502 is owing to being only responsible for data retransmission, so, less demanding to the host performance of server, a large amount of application terminals can be met and connect concurrent.
The second determination module 5014 in processing unit 501 is after determining target access unit corresponding to target application terminal, content to be sent corresponding for message push rule is sent to target access unit corresponding to this target application terminal by sending module 5015, and this content to be sent is sent to target application terminal by target access unit again.
After content to be sent is sent to target application terminal by processing unit 501, if because target application terminal is not online, or due to other reasons cause this content to be sent to send unsuccessfully time, the notification message that these target application terminal return messages take defeat, after access unit 502 receives the notification message of this message sink failure, returned to processing unit 501, this content to be sent that this sends unsuccessfully by the preservation module 5016 in processing unit 501 is saved in memory cell 505.
The content to be sent of transmission failure of preserving in memory cell 505 be with this target application terminal ID preserve for Key, when target application terminal next time has the message such as heartbeat, registration to send to processing unit 501, the content to be sent of this transmission failure sends by processing unit 501 again, or, processing unit 501 starts timer, this content to be sent is often sent once at regular intervals, until transmission success or transmission times exceed threshold value.
In the embodiment of the present invention, the first determination module 5013 in processing unit 501 is by judging whether the attributive character in message push rule is account ID or device id, in a case of yes, device id or device id corresponding to the account ID identification information as target application terminal is obtained.Thus improve the realizability of scheme.
Secondly, in the embodiment of the present invention, if message sends unsuccessful, the preservation module 5016 in processing unit 501 preserves the content to be sent that sends unsuccessfully in memory cell 505, ensure that the Storage and Processing of deferred information.
Composition graphs 6, a kind of message push system that the embodiment of the present invention provides, comprising:
Processing unit 601, access unit 602, application terminal 603 and message sending end 604.
Wherein, message sending end 604, for sending message processing instruction to processing unit 601, comprises message push rule and content to be sent in this message processing instruction, wherein message push rule is used to indicate the rule pushing content to be sent;
Access unit 602, for sending the mapping relations between access unit and application terminal to processing unit 601;
Wherein, the mapping relations that processing unit 601 sends for obtaining access unit 602, the message processing instruction that receipt message transmitting terminal 604 sends, afterwards, target application terminal is determined according to the message push rule in message processing instruction, again according to target application terminal and target access unit corresponding to mapping relations determination target application terminal, content to be sent is sent to target application terminal by target access unit, and wherein target access unit is at least one in access unit.
Wherein, processing unit 601 and access unit 602 can be different server; Or processing unit 601 and access unit 602 are the disparate modules in same server.
Wherein, processing unit 601 comprises:
First acquisition module 6011, for obtaining the mapping relations between the access unit of access unit 602 transmission and application terminal 603;
First receiver module 6012, for the message processing instruction that receipt message transmitting terminal 604 sends;
First determination module 6013, for determining target application terminal according to message push rule;
Second determination module 6014, the target access unit that the mapping relations determination target application terminal for obtaining according to target application terminal and the first acquisition module 6011 is corresponding;
Sending module 6016, for being sent to target application terminal by content to be sent by target access unit.
Message push system also comprises: memory cell 605;
Processing unit 601 also comprises: preserve module 6016, for when content to be sent sends unsuccessfully by sending module 6015, preserve the content to be sent of this transmission failure to memory cell 605.
First determination module 6013, specifically for obtaining the identification information of target application terminal from message push rule, according to the identification information determination target application terminal of target application terminal.
Further, processing unit also comprises:
Second acquisition module 6017, for obtaining the attributive character of application terminal;
Matching module 6018, mates for the message push rule attributive character of application terminal and the first receiver module 6012 received;
First determination module 6013, when the attributive character specifically for matching application terminal when matching module 6018 meets message push rule, determines that described application terminal is target application terminal.
Application terminal 603 is for sending a notification message to processing unit 601, then the second receiver module 6019, for receiving the notification message of application terminal; Then the second acquisition module 6017 is specifically for obtaining the attributive character of application terminal according to this notification message.
Below with a concrete application scenarios to being described alternately between module each in message push system of the present invention:
In message push system, application terminal 603 and access unit 602 carry out communication, access unit 602 again with processing unit 601 communication, processing unit 601 and message sending end 604 communication.Wherein, the asynchronous long connected mode of NIO can be adopted between application terminal 603 with access unit 602 to be connected, can be 1 to many relations between application terminal 603 and access unit 602, namely 1 application terminal is only set up 1 with some access units and is connected, and 1 access unit can connect with multiple application terminal.
When registration connection is carried out in application terminal 603, registration request is sent to corresponding access unit 602, registration request is transmitted to processing unit 601 by access unit 602 again, now, the first acquisition module 6011 in processing unit 601 can obtain the mapping relations between the access unit 602 of access unit 602 transmission and application terminal 603, and preserves these mapping relations to memory cell 605.
It should be noted that, processing unit 601 in the present embodiment and access unit 602, it can be the disparate modules in a message server, also can be different message servers, such as: processing server and access server, these different servers can form message server cluster, with support distribution formula framework.
When message sending end has message to need to push, can send message processing instruction, comprise message push rule and content to be sent in this instruction to processing unit 601, wherein the instruction of message push rule pushes the rule of this content to be sent.Afterwards, the first receiver module 6012 in processing unit 601 receives the content to be sent that message push is regular and this rule is corresponding that this message sending end sends.The message push received rule and content to be sent can be kept in memory cell 605 by processing unit 601, send in time can sending this transmission content again.
Processing unit 601 is when communicating with application terminal 603, the second acquisition module 6017 in processing unit 601 obtains the identification information of application terminal 603, and from memory cell, obtain the attributive character of this application terminal 603 according to the identification information of this application terminal 603.Concrete flow process can be as follows:
Communicated by network between application terminal 603 and processing unit 601, in different business scenarios, application terminal can send different notification messages to message server, to complete different service communications.
When application terminal 603 sends a notification message to message server, access unit 602 receives the notification message of application terminal 603, again notification message is forwarded to processing unit 601, second receiver module 6019 receives this notification message, and the second acquisition module 6017 therefrom obtains the identification information (such as: the ID of application terminal) of this application terminal.
The attributive character of each application terminal of registered mistake is preserved in the memory cell 603 of message server.The second acquisition module 6017 in processing unit 601 after getting the identification information of application terminal, then obtains the attributive character of this application terminal from memory cell according to the identification information of application terminal.
In actual applications, the notification message that application terminal sends to the access unit 602 of message server can be registration request: registration request is initiatively initiated to the access unit 602 of message server in application terminal, after connection establishment, processing unit 602 processes the registration request of application terminal immediately, and returns registering result to application terminal.
In actual applications, the notification message that application terminal sends to the access unit 602 of message server can be heartbeat request: application terminal at set intervals, access unit 602 to message server initiates heartbeat request, to keep the active state be connected with message server, after processing unit 601 receives, application terminal can be responded; Otherwise, when message server does not receive the heartbeat request of application terminal within the specific time period, will passage be disconnected.
In actual applications, the notification message that application terminal sends to the access unit 602 of message server can also be message sink success notification: when the access unit 602 of message server successful transmission of message to this application terminal, and application terminal sends message sink success notification to message server.
It should be noted that, the notification message that application terminal sends can be not limited only to registration request, heartbeat request and message sink success notification, can also be other notification messages, as long as application terminal and message server can be allowed to carry out the message communicated.
In addition, it should be noted that, the application terminal in the embodiment of the present invention can include but are not limited to PC, panel computer, smart mobile phone, electronic reader, car-mounted terminal and Wearable etc. and run the internet device having application program.
In the embodiment of the present invention, the attributive character of application terminal can be the user property (such as: account ID, sex, age etc.) of this application terminal, it can also be the device attribute (such as: device id, unit type) of this application terminal, can also be in advance to the tag attributes (such as: hobby football) that the user of this application terminal is arranged, can also be the geographical position attribute (such as: Shenzhen) of this application terminal, specifically not limit herein.
It should be noted that, the attributive character of application terminal not necessarily only comprises the attributive character of foregoing description, can also comprise more eurypalynous attributive character, specifically not limit herein.
The second acquisition module 6017 in processing unit 601 is after getting the attributive character of application terminal, the message push rule that the attributive character of this application terminal and the first receiver module 6012 receive is mated by matching module 6018, judges whether the attributive character of this application terminal can match this message push rule.
In fact, the message push rule that the first receiver module 6012 receives is made up of one or more attributive character.The specific implementation that the attributive character of application terminal and message push rule carry out mating can be by matching module 6018:
A, matching module 6018 obtain particular community feature from message push rule;
Matching module 6018 obtains the attributive character comprised in this message push rule from message push rule, and the attributive character herein got can be one, also can be multiple, in the present embodiment, the attributive character got is called particular community feature herein.
B, matching module 6018 judge whether the attributive character of this application terminal comprises this particular community feature;
After matching module 6018 gets particular community feature from message push rule, judge in the attributive character of application terminal, whether to include this particular community feature.
C, matching module 6018 determine that the attributive character of this user terminal meets message push rule;
If the result that matching module 6018 judges is when comprising this particular community feature in the attributive character of this application terminal, then determine that the attributive character of this user terminal meets message push rule.
If matching module 6018 determines that the attributive character of this user terminal meets message push rule, then the first determination module 6013 determines that this application terminal is target application terminal.
After the first determination module 6013 determines target application terminal, the mapping relations that the second determination module 6014 obtains according to this target application terminal and the first acquisition module 6011 determine the target access unit that this target application terminal is corresponding.
Wherein, the Main Function of access unit 602 is forwarding messages between application terminal 603 and processing unit 601.Access unit belongs to state, the connection status of in store each application terminal, so, processing unit 601 sends message during to application terminal, processing unit 601 needs first to find and with which access unit sends, and then by this access unit 602, message is sent to the target application terminal of specifying.
Second determination module 6014 is after determining target access unit corresponding to target application terminal, and content to be sent corresponding for message push rule is sent to this access unit 602 by sending module 6015.
Access unit 602 is after the content to be sent receiving sending module 6015 transmission, and this content to be sent is forwarded to target application terminal by access unit 602.
After content to be sent is sent to target application terminal by access unit 602 by processing unit 601, if because application terminal is not online, or due to other reasons cause this content to be sent to send unsuccessfully time, the notification message that these target application terminal return messages take defeat, after access unit 602 receives the notification message of this message sink failure, returned to processing unit 601, this content to be sent that this sends unsuccessfully by the preservation module 6015 in processing unit 601 is saved in memory cell 605.
The content to be sent of transmission failure of preserving in memory cell 605 be with this target application terminal ID preserve for Key, when target application terminal next time has the message such as heartbeat, registration to send to processing unit 601, the content to be sent of this transmission failure sends by processing unit 601 again, or, processing unit 601 starts timer, this content to be sent is often sent once at regular intervals, until transmission success or transmission times exceed threshold value.
In the embodiment of the present invention, processing unit 601 determines that the mode of target application terminal is: after the second receiver module 6019 receives the notification message of application terminal 603, second acquisition module 6017 obtains the attributive character of this application terminal and the mark of application terminal and information, the attributive character of application terminal and message push rule are mated by matching module 6018, if when the attributive character of this application terminal meets this message push rule, then determine that this application terminal is target application terminal.Thus the flexibility that the scheme that improves realizes.
The above is described from the angle of modular functionality entity the message push system the embodiment of the present invention, here is described from the angle of hardware handles the message server the embodiment of the present invention, and the embodiment of the present invention is that disparate modules in same message server is described for processing unit and access unit.Refer to Fig. 7, another embodiment of the message server in the embodiment of the present invention comprises:
Input interface 701, output interface 702, processor 703, memory 704, wherein in the present embodiment, in message server, the quantity of processor 703 can be one or more, for a processor 703 in Fig. 7, the quantity of memory 704 can be one or more, for a memory 704 in Fig. 7.In some embodiments of the invention, input interface 701, output interface 702, processor 703, memory 704 are connected, wherein, to be connected by bus in Fig. 7 by bus or alternate manner.
Wherein, the message processing instruction of input interface 701 receipt message transmitting terminal (service server), comprises message push rule and content to be sent in this message processing instruction, message push rule is used to indicate the rule pushing this content to be sent.The operational order that processor 703 stores by calling memory 704, processor 703, for performing following steps:
Obtain the mapping relations between the access unit of access unit transmission and application terminal; Target application terminal is determined according to the message push rule in message processing instruction; Again according to this target application terminal and target access unit corresponding to the mapping relations determination target application terminal between access unit with application terminal, wherein, target access unit is at least one in access unit; Afterwards, then content to be sent is sent to target access unit, then is sent to target application terminal by output interface 702.
In the embodiment of the present invention, processor 703 is also for performing following steps:
When content to be sent sends unsuccessfully, the content to be sent of this transmission failure is saved in memory 704.
In the embodiment of the present invention, processor 703 is also for performing following steps:
The identification information of target application terminal is obtained, according to the identification information determination target application terminal of target application terminal from message push rule.
In the embodiment of the present invention, input interface 701 receives the notification message (such as: heartbeat request, registration request or message sink success notification) of application terminal, and processor 703 is also for performing following steps:
The attributive character of application terminal is obtained according to notification message, particular community feature is obtained in the message push rule received from input interface 701, and judge whether the attributive character of application terminal comprises this particular community feature, if the attributive character of this application terminal comprises this particular community feature, determine that this application terminal meets this message push rule, thus determine that this application terminal is target application terminal.
In the embodiment of the present invention, using modules different as two in the processor 703 in a station server to processing unit and access unit, it should be noted that, processing unit and access unit may reside in two different servers, if exist in different servers, be then referred to as processing server and access server, between them, adopted the asynchronous long connection of NIO, can be the relation of multi-to-multi, server set group network can be formed.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the system of foregoing description, the specific works process of device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that, disclosed system, apparatus and method, can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. various can be program code stored medium.
The above, above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.
Accompanying drawing explanation
Fig. 1 is a kind of flow chart of information push method in the embodiment of the present invention;
Fig. 2 is the another kind of flow chart of information push method in the embodiment of the present invention;
Fig. 3 is the another kind of flow chart of information push method in the embodiment of the present invention;
Fig. 4 is the embodiment schematic diagram of message push system in the embodiment of the present invention;
Fig. 5 is another embodiment schematic diagram of message push system in the embodiment of the present invention;
Fig. 6 is another embodiment schematic diagram of message push system in the embodiment of the present invention;
Fig. 7 is the structural representation of message server in the embodiment of the present invention.
Embodiment
Embodiments provide a kind of information push method and server, for avoiding the problem of the Message Processing inefficiency caused because of message-oriented middleware.Be described in detail respectively below.
The present invention program is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the embodiment of a part of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, should belong to the scope of protection of the invention.

Claims (13)

1. an information push method, is characterized in that, comprising:
Processing unit obtains the mapping relations between the described access unit of access unit transmission and application terminal;
The message processing instruction that described processing unit receipt message transmitting terminal sends, comprises message push rule and content to be sent in described message processing instruction, described message push rule is used to indicate the rule pushing described content to be sent;
Described processing unit determines target application terminal according to described message push rule;
Described processing unit determines according to described target application terminal and described mapping relations the target access unit that described target application terminal is corresponding, and described target access unit is at least one in described access unit;
Described content to be sent is sent to described target application terminal by described target access unit by described processing unit.
2. information push method according to claim 1, is characterized in that, described method also comprises:
If described content to be sent sends unsuccessfully, then described processing unit preserves the described content to be sent sent unsuccessfully.
3. information push method according to claim 1 and 2, is characterized in that, described method also comprises:
Described processing unit and described access unit are different server;
Or described processing unit and described access unit are the disparate modules in same server.
4. information push method according to claim 1 and 2, is characterized in that, according to described message push rule, described processing unit determines that target application terminal comprises:
Described processing unit obtains the identification information of described target application terminal from described message push rule;
Described processing unit determines described target application terminal according to the identification information of described target application terminal.
5. information push method according to claim 1 and 2, is characterized in that, according to described message push rule, described processing unit determines that target application terminal comprises:
Described processing unit obtains the attributive character of described application terminal;
Described attributive character and described message push rule are mated by described processing unit;
If described attributive character meets described message push rule, then described processing unit determines that described application terminal is target application terminal.
6. information push method according to claim 5, is characterized in that, the attributive character that described processing unit obtains described application terminal comprises:
Described processing unit receives the notification message of described application terminal;
Described processing unit obtains the attributive character of described application terminal according to described notification message.
7. a message push system, is characterized in that, described message push system comprises processing unit, access unit, application terminal and message sending end;
Described message sending end, for sending message processing instruction to described processing unit, comprises message push rule and content to be sent in described message processing instruction, described message push rule is used to indicate the rule pushing described content to be sent;
Described access unit, for sending the mapping relations between described access unit and described application terminal to described processing unit;
Described processing unit, for obtaining the described mapping relations that described access unit sends, receive the described message processing instruction that described message sending end sends, afterwards, target application terminal is determined according to the described message push rule in described message processing instruction, the target access unit that described target application terminal is corresponding is determined again according to described target application terminal and described mapping relations, described content to be sent is sent to described target application terminal by described target access unit, and described target access unit is at least one in described access unit.
8. message push system according to claim 7, is characterized in that,
Described processing unit and described access unit are different server;
Or described processing unit and described access unit are the disparate modules in same server.
9. message push system according to claim 7, is characterized in that, described processing unit comprises:
First acquisition module, for obtaining the mapping relations between the described access unit of described access unit transmission and described application terminal;
First receiver module, for receiving described message processing instruction;
First determination module, for determining described target application terminal according to described message push rule;
Second determination module, for determining the described target access unit that described target application terminal is corresponding according to described target application terminal and described mapping relations;
Sending module, for being sent to described target application terminal by described content to be sent by described target access unit.
10. message push system according to claim 9, is characterized in that, described message push system also comprises:
Memory cell;
Described processing unit also comprises: preserve module, for when described content to be sent sends unsuccessfully, preserves the described content to be sent extremely described memory cell sent unsuccessfully.
11. message push systems according to claim 9 or 10, it is characterized in that, described first determination module, specifically for obtaining the identification information of described target application terminal from described message push rule, determines described target application terminal according to the identification information of described target application terminal.
12. message push systems according to claim 9 or 10, it is characterized in that, described processing unit also comprises:
Second acquisition module, for obtaining the attributive character of described application terminal;
Matching module, for mating described attributive character and described message push rule;
Described first determination module, during specifically for determining that when described matching module described attributive character meets described message push rule, determines that described application terminal is target application terminal.
13. message push systems according to claim 12, is characterized in that, described application terminal is used for sending a notification message to described processing unit;
Described processing unit comprises:
Second receiver module, for receiving the described notification message of described application terminal;
Described second acquisition module is specifically for obtaining the attributive character of described application terminal according to described notification message.
CN201510234404.1A 2015-05-08 2015-05-08 Message pushing method and system Pending CN104796495A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510234404.1A CN104796495A (en) 2015-05-08 2015-05-08 Message pushing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510234404.1A CN104796495A (en) 2015-05-08 2015-05-08 Message pushing method and system

Publications (1)

Publication Number Publication Date
CN104796495A true CN104796495A (en) 2015-07-22

Family

ID=53561003

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510234404.1A Pending CN104796495A (en) 2015-05-08 2015-05-08 Message pushing method and system

Country Status (1)

Country Link
CN (1) CN104796495A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105162807A (en) * 2015-10-12 2015-12-16 中国银行股份有限公司 Large-scale message push method and system
CN105516265A (en) * 2015-11-27 2016-04-20 山东中创软件商用中间件股份有限公司 Short message transmission method and apparatus
CN105872025A (en) * 2016-02-08 2016-08-17 物联智慧科技(深圳)有限公司 Push message transmission method and message transmission system
CN106254435A (en) * 2016-07-28 2016-12-21 努比亚技术有限公司 Message push system and method
WO2017125020A1 (en) * 2016-01-22 2017-07-27 腾讯科技(深圳)有限公司 Message processing method, device and system
CN109461238A (en) * 2018-10-30 2019-03-12 北京摩拜科技有限公司 Control method for vehicle, server, vehicle and Vehicular system
CN111211972A (en) * 2020-01-10 2020-05-29 青岛特来电云科技有限公司 Message notification system and method supporting information pulling and multi-channel pushing

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102333105A (en) * 2010-07-14 2012-01-25 华为技术有限公司 Business communication method, system, push client terminal and user equipment
CN103024050A (en) * 2012-12-17 2013-04-03 北京奇虎科技有限公司 Distributor and distributing method for multiple servers
CN104144098A (en) * 2013-05-07 2014-11-12 腾讯科技(深圳)有限公司 Information pushing method and system and pushing server equipment
CN104253741A (en) * 2014-07-31 2014-12-31 腾讯科技(深圳)有限公司 Information sending method and device and system thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102333105A (en) * 2010-07-14 2012-01-25 华为技术有限公司 Business communication method, system, push client terminal and user equipment
CN103024050A (en) * 2012-12-17 2013-04-03 北京奇虎科技有限公司 Distributor and distributing method for multiple servers
CN104144098A (en) * 2013-05-07 2014-11-12 腾讯科技(深圳)有限公司 Information pushing method and system and pushing server equipment
CN104253741A (en) * 2014-07-31 2014-12-31 腾讯科技(深圳)有限公司 Information sending method and device and system thereof

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105162807A (en) * 2015-10-12 2015-12-16 中国银行股份有限公司 Large-scale message push method and system
CN105516265A (en) * 2015-11-27 2016-04-20 山东中创软件商用中间件股份有限公司 Short message transmission method and apparatus
WO2017125020A1 (en) * 2016-01-22 2017-07-27 腾讯科技(深圳)有限公司 Message processing method, device and system
CN105872025A (en) * 2016-02-08 2016-08-17 物联智慧科技(深圳)有限公司 Push message transmission method and message transmission system
CN105872025B (en) * 2016-02-08 2019-07-19 物联智慧科技(深圳)有限公司 push message transmission method and message transmission system
CN106254435A (en) * 2016-07-28 2016-12-21 努比亚技术有限公司 Message push system and method
CN109461238A (en) * 2018-10-30 2019-03-12 北京摩拜科技有限公司 Control method for vehicle, server, vehicle and Vehicular system
CN111211972A (en) * 2020-01-10 2020-05-29 青岛特来电云科技有限公司 Message notification system and method supporting information pulling and multi-channel pushing

Similar Documents

Publication Publication Date Title
CN104796495A (en) Message pushing method and system
CN104796434A (en) Message pushing method and message server
CN104253741B (en) A kind of method for sending information, relevant apparatus and system
CN102307056B (en) Method for processing mobile terminal contact information and mobile terminal
CN104683216A (en) Forwarding method and forwarding device for customer service information as well as customer service system
CN105144664B (en) User perceives cloud to device message system and method
CN105245577A (en) Information push method, device and system
CN104917586A (en) Verification method, device and system of transmitted data
CN107734076A (en) Information push method, device and storage medium
CN102316049A (en) Method for automatically receiving group message
KR20160090340A (en) Systems, methods, and computer program products for obtaining mobile device data
CN111159530A (en) System, apparatus, method and storage medium for automatically pushing financial product message
CN110582998A (en) Group communication method and device, computer storage medium and computer equipment
US20200004785A1 (en) Automatic grouping based on user behavior
CN104796435A (en) Message pushing method and message server
CN102185701A (en) Method and system for realizing group information interaction
CN104144099A (en) Method, system and electronic device for determining communication mode
CN103581846A (en) User business card updating method and system
CN102739558A (en) Method and device used for identifying interference messages
CN102244695A (en) Contact person grouping system and method
CN104737559A (en) Method, mobile terminal and system for exchanging electronic business cards
CN104065563A (en) Processing method, device and system for instant message
CN112861004B (en) Method and device for determining rich media
CN107222392B (en) Communication method, device, system and computer storage medium
CN104954441A (en) E-card exchange method, device and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150722