HK1219184A1 - Method and device for transmitting message - Google Patents
Method and device for transmitting message Download PDFInfo
- Publication number
- HK1219184A1 HK1219184A1 HK16107104.0A HK16107104A HK1219184A1 HK 1219184 A1 HK1219184 A1 HK 1219184A1 HK 16107104 A HK16107104 A HK 16107104A HK 1219184 A1 HK1219184 A1 HK 1219184A1
- Authority
- HK
- Hong Kong
- Prior art keywords
- message
- template
- priority
- sending
- management platform
- Prior art date
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a message transmitting method and device. The message transmitting method includes the following steps that: when it needs to transmit a message to a user, a message management platform obtains a message template identifier corresponding to the message, a user identifier and message content and determines a message template corresponding to the message template identifier; the message management platform determines a message transmitting channel corresponding the message template; the message management platform determines the current load situation of the message transmitting channel; the message management platform determines a current priority transmitting strategy according to the current load situation; and the message management platform adds the identifier and the message content in the message template so as to obtain a current message to be transmitted, and transmits the message through utilizing the priority transmitting strategy. With the message transmitting method and device of the invention adopted, when messages are accumulated in the message transmitting channel, messages having high timeliness requirements can be transmitted first, and therefore, the messages having high timeliness requirements can be transmitted to the user as soon as possible, and the use experience of the user can be improved, and the messages can be prevented from getting lost.
Description
Technical Field
The present application relates to the field of internet technologies, and in particular, to a message sending method and device.
Background
When a user uses some services or performs service operations, the service platform sends a message (such as a notification message or a reminder message) to the user through a message sending channel, for example: the short message service platform sends messages to users through short messages, and the mail service platform sends messages to users through mails and the like. Specifically, when the service platform sends a message to the user through the message sending channel, the service platform sends the message to the user in sequence according to the sending sequence of the message. For example, the order of sending the messages is: message 1, message 2 …, and message 1000, the service platform sends message 1, message 2 …, and message 1000 to the user in sequence.
However, in a specific application, some messages have high requirements on timeliness, and some messages have low requirements on timeliness. Therefore, when the service platform sequentially sends messages to the users according to the sending sequence of the messages, the messages with high requirements on the timeliness cannot be sent to the users in time, and therefore the using experience of the users is influenced. For example, when the message 1000 has a high requirement on timeliness, the service platform sends the message 1 and the message 2 … to the user in sequence, and when the message 1000 is sent to the user, a long time is required to send the message 1000 to the user, which affects the user experience.
Disclosure of Invention
The embodiment of the application provides a message sending method and device, so that a message with a high requirement on timeliness is sent preferentially, and therefore the message with the high requirement on timeliness is sent to a user as soon as possible.
In order to achieve the above object, an embodiment of the present application provides a message sending method, where the message sending method includes:
when a message needs to be sent to a user, a message management platform obtains a message template identifier, a user identifier and message content corresponding to the message, and determines a message template corresponding to the message template identifier;
the message management platform determines a message sending channel corresponding to the message template;
the message management platform determines the current load condition of the message sending channel;
the message management platform determines a current priority sending strategy by using the load condition;
and the message management platform adds the user identification and the message content in the message template to obtain the current message to be sent, and sends the message by using the priority sending strategy.
The process of the message management platform determining the message template corresponding to the message template identifier and determining the message sending channel corresponding to the message template specifically includes:
the message management platform queries a template configuration table by using the message template identifier; the template configuration table is used for recording the corresponding relation between the message template identification and the message template;
when the message template identifier corresponds to a message template of a message sending channel in the template configuration table, the message management platform determines that the message template is a message template corresponding to the message template identifier and determines that the message sending channel is a message sending channel corresponding to the message template;
when the message template identifier corresponds to a message template of a plurality of message sending channels in the template configuration table, the message management platform selects one message sending channel from the plurality of message sending channels, determines the message template of the selected message sending channel as the message template corresponding to the message template identifier, and determines the selected message sending channel as the message sending channel corresponding to the message template.
The message management platform determines a current priority sending strategy by using the load condition, and the method comprises the following steps:
in the case of the load condition: when the load is greater than a preset first value, the message management platform determines that the current priority sending strategy is as follows: messages with a message priority greater than the first priority can be sent;
in the case of the load condition: when the load is not greater than the preset first value, the message management platform determines that the current priority sending policy is as follows: messages of all message priorities can be sent; alternatively, the first and second electrodes may be,
in the case of the load condition: when the load is greater than a preset second value, the message management platform determines that the current priority sending strategy is as follows: messages with a message priority greater than the second priority can be sent;
in the case of the load condition: when the load is greater than a preset third value and not greater than the preset second value, the message management platform determines that the current priority sending policy is as follows: messages with a message priority greater than the third priority can be sent; wherein the second priority is better than the third priority;
in the case of the load condition: when the load is not greater than the preset third value, the message management platform determines that the current priority sending policy is as follows: messages of all message priorities can be sent.
The process of sending the message by the message management platform by using the priority sending policy specifically includes: the message management platform queries a message priority configuration table by using the message template so as to obtain the message priority corresponding to the message template from the message priority configuration table; the message priority configuration table is used for recording the corresponding relation between the message template and the message priority;
and when the message priority corresponding to the message template meets the priority sending strategy, the message management platform sends the message through a message sending channel corresponding to the message template.
After the message management platform obtains the message priority corresponding to the message template from the message priority configuration table, when the message priority corresponding to the message template does not meet the priority sending strategy, the message management platform judges whether other message sending channels are allowed to send messages which need to be sent by the message sending channels corresponding to the message template; if not, the message is refused to be sent.
After the message management platform determines whether to allow other message sending channels to send the message which needs to be sent by the message sending channel corresponding to the message template, the method further includes:
when the judgment result is yes, the message management platform judges whether the message priority corresponding to the message template meets the priority sending strategy corresponding to the current load condition of other message sending channels;
if not, the message management platform refuses to send the message through other message sending channels;
if the message priority only meets the priority sending strategy corresponding to one other message sending channel, the message management platform sends the message through the other message sending channel;
and if the message priority meets the priority sending strategy corresponding to a plurality of other message sending channels, the message management platform selects the message sending channel with the highest login probability from the plurality of other message sending channels and sends the message through the message sending channel with the highest login probability.
Before the message management platform determines the message template corresponding to the message template identifier, the method further includes: the message management platform checks whether one or more of the message template identification, the user identification and the message content are legal or not; if the message template is legal, the message management platform executes a process of determining the message template corresponding to the message template identification; and if the information is illegal, the information management platform finishes the process.
An embodiment of the present application provides a message management platform, where the message management platform specifically includes:
an obtaining module, configured to obtain, when a message needs to be sent to a user, a message template identifier corresponding to the message, a user identifier corresponding to the message, and message content corresponding to the message;
a determining module, configured to determine a message template corresponding to the message template identifier, determine a message sending channel corresponding to the message template, determine a current load condition of the message sending channel, and determine a current priority sending policy by using the current load condition of the message sending channel;
and the sending module is used for adding the user identification and the message content in the message template to obtain the current message to be sent and sending the message by utilizing the priority sending strategy.
The determining module is specifically configured to query a template configuration table by using the message template identifier when determining the message template corresponding to the message template identifier and the message sending channel corresponding to the message template; the template configuration table is used for recording the corresponding relation between the message template identification and the message template;
when the message template mark corresponds to a message template of a message sending channel in the template configuration table, determining that the message template is a message template corresponding to the message template mark, and determining that the message sending channel is a message sending channel corresponding to the message template;
when the message template mark corresponds to the message templates of the plurality of message sending channels in the template configuration table, selecting one message sending channel from the plurality of message sending channels, determining the message template of the selected message sending channel as the message template corresponding to the message template mark, and determining the selected message sending channel as the message sending channel corresponding to the message template.
The determining module is specifically configured to, when determining the priority sending policy, if the load condition is: when the load is greater than a preset first value, determining that the current priority sending strategy is as follows: messages with a message priority greater than the first priority can be sent; in the case of the load condition: when the load is not greater than the preset first value, determining that the current priority sending strategy is as follows: messages of all message priorities can be sent; or, in the case of the load: when the load is greater than a preset second value, determining that the current priority sending strategy is as follows: messages with a message priority greater than the second priority can be sent; in the case of the load condition: when the load is greater than a preset third value and not greater than the preset second value, determining that the current priority sending strategy is as follows: messages with a message priority greater than the third priority can be sent; wherein the second priority is better than the third priority; in the case of the load condition: when the load is not greater than the preset third value, determining that the current priority sending strategy is as follows: messages of all message priorities can be sent.
The sending module is specifically configured to query a message priority configuration table by using the message template when the message is sent by using the priority sending policy, and obtain a message priority corresponding to the message template from the message priority configuration table, where the message priority configuration table is used to record a correspondence between the message template and the message priority; and when the message priority corresponding to the message template meets the priority sending strategy, sending the message through a message sending channel corresponding to the message template.
The sending module is further configured to, after obtaining the message priority corresponding to the message template from the message priority configuration table, determine whether to allow other message sending channels to send a message that needs to be sent by the message sending channel corresponding to the message template when the message priority corresponding to the message template does not satisfy the priority sending policy; if not, the message is refused to be sent.
The sending module is further configured to, after determining whether to allow other message sending channels to send messages that need to be sent by the message sending channel corresponding to the message template, further determine whether the message priority corresponding to the message template meets a priority sending policy corresponding to the current load condition of the other message sending channels when the determination result is yes; if not, refusing to send the message through other message sending channels; if the message priority only meets the priority sending strategy corresponding to one other message sending channel, the message is sent through the other message sending channel; and if the message priority meets the priority sending strategy corresponding to a plurality of other message sending channels, selecting the message sending channel with the highest login probability from one of the other message sending channels, and sending the message through the message sending channel with the highest login probability.
The determining module is further configured to check whether one or more of the message template identifier, the user identifier, and the message content is legal before determining the message template corresponding to the message template identifier; if the message template is legal, determining the message template corresponding to the message template identification; if not, the process is ended.
Compared with the prior art, the embodiment of the application has at least the following advantages: in the embodiment of the application, when the message backlog exists in the message sending channel, the message with high requirement on timeliness can be sent preferentially, so that the message with high requirement on timeliness can be sent to a user as soon as possible, the use feeling of the user is improved, the message with low requirement on timeliness can be sent to the user smoothly, and the message is prevented from being lost.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments of the present application will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings of the embodiments of the present application without creative efforts.
Fig. 1 is a schematic view of an application scenario proposed in a first embodiment of the present application;
fig. 2 is a schematic flow chart of a message sending method according to a first embodiment of the present application;
fig. 3 is a schematic structural diagram of a message management platform according to a second embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Example one
In view of the problems in the prior art, an embodiment of the present application provides a message sending method, and fig. 1 is a schematic view of an application scenario of the embodiment of the present application. The message management platform is a platform for managing all message templates provided by the embodiment of the application and is responsible for managing and verifying message contents, inquiring message sending records and the like; the service platform is a platform which has message content and needs to be sent to a user; the application gateways are gateways corresponding to the applications and are used for sending messages to users, such as a gateway corresponding to a mail, a gateway corresponding to a WeChat, a gateway corresponding to a short message and the like.
In the application scenario, as shown in fig. 2, the message sending method may include the following steps:
step 201, when a message needs to be sent to a user (for example, a service platform needs to send a message to a user), the message management platform obtains a message template identifier, a user identifier and message content corresponding to the message.
In the embodiment of the present application, the process of the message management platform obtaining the message template identifier, the user identifier, and the message content corresponding to the message specifically includes, but is not limited to, the following ways: when the service platform needs to send a message to a user, the service platform sends a notification message to the message management platform, wherein the notification message carries a message template identifier, a user identifier and message content; after receiving the notification message from the service platform, the message management platform obtains the message template identifier, the user identifier and the message content from the notification message.
The service platform maintains a correspondence between the message type and the message template identifier, as shown in table 1. Based on the corresponding relationship, when the service platform needs to send a message to the user, the service platform needs to obtain a message template identifier corresponding to the message. For example, when the service platform needs to send a payment and repayment reminding message to the user, the service platform obtains a message template identifier corresponding to the payment and repayment reminding message as a message template 1; when the service platform needs to send a credit card repayment reminding message to the user, the service platform obtains a message template identifier corresponding to the credit card repayment reminding message as a message template 2.
TABLE 1
Message type | Message template identification |
Payment and repayment reminding message | Message template 1 |
Credit card repayment reminding message | Message template 2 |
Marketing message | Message template 3 |
… | … |
When the service platform needs to send a message to a user, the service platform also needs to obtain message content corresponding to the message. For example, when the service platform needs to send a payment and repayment reminding message to the user, assuming that the service platform needs to remind the user to repay 1 ten thousand yuan to the chinese bank before 2014-6-5 days 8:00, the content of the message corresponding to the payment and repayment reminding message obtained by the service platform is 2014-6-5 days 8:00 and 1 ten thousand yuan.
When the service platform needs to send a message to a user, the service platform also needs to obtain a user identifier corresponding to the user. And when the message template identification corresponds to the message template of one message sending channel, the user identification is the user identification corresponding to the message sending channel. And when the message template identification corresponds to the message templates of the plurality of message sending channels, the user identification is the user identification corresponding to all the message sending channels respectively.
In the embodiment of the present application, the message sending channel includes but is not limited to: the system comprises a vigorous channel, a mail channel, a short message channel, an information channel in a website, an application client channel, a QQ channel, a WeChat channel and an MSN channel. The user identifier corresponding to the message sending channel includes but is not limited to: the system comprises a vigorous number corresponding to a vigorous channel of a user, a mailbox address corresponding to a mail channel of the user, a mobile phone number corresponding to a short message channel of the user, a website registration name corresponding to an information channel of the user in a website, an application identifier corresponding to an application client channel of the user, a QQ number corresponding to a QQ channel of the user, a micro signal code corresponding to a micro communication channel of the user and an MSN number corresponding to an MSN channel of the user. Of course, in practical applications, the message sending channel and the user identifier corresponding to the message sending channel are not limited to the above cases, which are merely examples for convenience of description in this embodiment of the present application, and may be arbitrarily selected in practical applications, and are not described herein again.
Based on the above processing, after the service platform obtains the message template identifier, the user identifier, and the message content, the service platform may send a notification message carrying the message template identifier, the user identifier, and the message content to the message management platform. For example, when the service platform needs to send a payment and repayment reminding message to the user, the message template identifier carried in the notification message is the message template 1, the user identifier is the mobile phone number a, and the message content is 2014-6-5 days 8:00 and 1 ten thousand yuan. Further, after receiving the notification message from the service platform, the message management platform may directly obtain a message template identifier as message template 1 from the notification message, where the user identifier is mobile phone number a, and the message content is 2014-6-5 days 8:00 and 1 ten thousand yuan.
In step 202, the message management platform determines a message template corresponding to the message template identifier (i.e., the message template identifier obtained in step 201), and determines a message sending channel corresponding to the message template.
In the embodiment of the present application, the process of determining, by the message management platform, a message template corresponding to the message template identifier and determining a message sending channel corresponding to the message template specifically includes, but is not limited to, the following manners: the message management platform queries a template configuration table by using the message template identifier; the template configuration table is used for recording the corresponding relation between the message template identification and the message template. When the message template identifier corresponds to a message template of a message sending channel in the template configuration table, the message management platform determines that the message template is the message template corresponding to the message template identifier, and determines that the message sending channel is the message sending channel corresponding to the message template. When the message template identifier corresponds to the message templates of the plurality of message sending channels in the template configuration table, the message management platform selects one message sending channel from the plurality of message sending channels, determines the message template of the selected message sending channel as the message template corresponding to the message template identifier, and determines the selected message sending channel as the message sending channel corresponding to the message template.
When the message management platform selects one message sending channel from the plurality of message sending channels, one message sending channel can be selected arbitrarily according to actual needs. Such as: the message management platform selects a message sending channel with the minimum cost from a plurality of message sending channels, or the message management platform selects a message sending channel with the highest sending speed from a plurality of message sending channels, and the like.
The message management platform maintains a template configuration table, and the template configuration table is used for recording the corresponding relation between the message template identification and the message template. Based on the template configuration table, the message management platform may query the template configuration table by using the message template identifier to obtain a message template corresponding to the message template identifier. For example, assuming that the template configuration table is shown in table 2, and the message template identifier is a message template 1, the message management platform queries the template configuration table through the message template 1, and since the message template 1 corresponds to a message template of a message sending channel in the template configuration table, the message management platform directly determines that the message template is a message template corresponding to the message template 1, and determines that the message sending channel is a short message channel.
TABLE 2
In step 203, the message management platform determines the current load condition of the message sending channel.
In this embodiment, the message management platform may determine the current load condition of the message sending channel by using the sending capacity of the message sending channel and the sending rate of the current message sending channel. For example, if the sending capacity of the short message channel is 5000 short messages per second, and the current sending rate of the message management platform on the short message channel is 4000 short messages per second, the message management platform may determine that the current load condition of the short message channel is (4000/5000) × 100%, that is, the current load condition of the short message channel is 80%.
Step 204, the message management platform determines the current priority sending policy by using the load condition.
In the preferred implementation manner of the embodiment of the present application, the process of determining the current priority sending policy by the message management platform using the load condition may specifically include, but is not limited to, the following:
the first condition is that the load condition is divided into two intervals, the two intervals are respectively that the load is greater than a preset first value, the load is not greater than the preset first value, and the preset first value can be selected according to actual experience.
(1) In the case of a load: when the load is greater than the preset first value, the message management platform determines that the current priority sending strategy is as follows: messages having a message priority greater than the first priority can be sent.
(2) In the case of a load: when the load is not greater than the preset first value, the message management platform determines that the current priority sending strategy is as follows: messages of all message priorities can be sent.
For example, it is assumed that the preset first value is 80%, and the message priority is 1 level, 2 level, 3 level, 4 level, 5 level, and a larger priority value indicates a higher priority, and the first priority is 3 level. Then: when the current load condition is that the load is greater than 80%, the message management platform determines that the current priority sending policy is as follows: messages with message priority level 4, or level 5 can be sent. When the current load condition is that the load is not greater than 80%, the message management platform determines that the current priority sending policy is as follows: messages with message priority level 1, level 2, level 3, level 4 or level 5 can be sent.
Dividing the load condition into three intervals, wherein the three intervals are respectively that the load is greater than a preset second numerical value; the load is greater than a preset third value and is not greater than a preset second value; the load is not greater than a preset third value. The preset second numerical value can be selected at will according to actual experience, the preset third numerical value can be selected at will according to actual experience, and the preset second numerical value is larger than the preset third numerical value.
(1) In the case of a load: when the load is greater than the preset second value, the message management platform determines that the current priority sending strategy is as follows: messages having a message priority greater than the second priority can be sent.
(2) In the case of a load: when the load is greater than the preset third value and not greater than the preset second value, the message management platform determines that the current priority sending strategy is as follows: messages with a message priority greater than the third priority can be sent; wherein the second priority needs to be superior to the third priority.
(3) In the case of a load: when the load is not greater than the preset third value, the message management platform determines that the current priority sending strategy is as follows: messages of all message priorities can be sent.
For example, it is assumed that the preset second value is 80%, the preset third value is 60%, and the message priority is 1 level, 2 level, 3 level, 4 level, or 5 level, a larger priority value indicates a higher priority, the second priority is 3 level, and the third priority is 1 level. Then: when the current load condition is that the load is greater than 80%, the message management platform determines that the current priority sending policy is as follows: messages with message priority level 4, or level 5 can be sent. When the current load condition is that the load is not greater than 80% but the load is greater than 60%, the message management platform determines that the current priority sending policy is: messages with a message priority level of 2, or level 3, or level 4, or level 5 can be sent. When the current load condition is that the load is not greater than 60%, the message management platform determines that the current priority sending policy is as follows: messages with message priority level 1, level 2, level 3, level 4 or level 5 can be sent.
Of course, in practical application, the load condition is not limited to be divided into two intervals or three intervals, and in practical application, the load condition may also be divided into four intervals, five intervals, and the like, and the processing of the four intervals or five intervals is similar to the processing of the two intervals or three intervals, and details of the two intervals or three intervals are not repeated in this embodiment of the present application.
When the message management platform determines the current priority sending strategy by using the load condition (the current load condition of the message sending channel), the priority sending strategy is specific to the current message sending channel. For example, when the message management platform determines that the current load condition of the short message channel is 80% in step 203, the message management platform determines that the current priority sending policy of the short message channel is determined in step 204.
Further, the priority sending policies of different message sending channels may be the same or different. For example, in case two, for the short message channel and the mail channel, a preset second value of 80%, a preset third value of 60%, and message priorities of 1, 2, 3, 4, and 5 are configured, where a larger priority value indicates a higher priority, a second priority is 3, and a third priority is 1. For another example, for the short message channel, the preset second numerical value is 80%, the preset third numerical value is 60%, the message priority is 1 level, 2 level, 3 level, 4 level, 5 level, the higher the priority numerical value is, the better the priority is, the second priority is 3 level, and the third priority is 1 level; and for the mail channel, the preset second numerical value is 70%, the preset third numerical value is 50%, the message priority is 1 level, 2 level, 3 level, 4 level and 5 level, the priority is higher if the priority numerical value is higher, the second priority is 4 level, and the third priority is 2 level.
Step 205, the message management platform adds the user identifier and the message content to the message template to obtain the current message to be sent, and sends the message by using the priority sending policy.
In the embodiment of the application, after the message management platform obtains the message template corresponding to the message template identifier, the message management platform can obtain the current message to be sent by adding the user identifier and the message content to the message template. For example, for the message template corresponding to the message template 1 shown in table 2, the message management platform obtains the current message to be sent by adding the user identifier and the message content to the message template. Suppose the user identifier is a mobile phone number A, and the message content is 2014-6-5 days 8:00 and 1 ten thousand yuan. Then: the current message to be sent is obtained by adding the user identifier and the message content in the message template as follows: the addressee: mobile phone number a, content: please pay 1 ten thousand yuan to the chinese bank before 8:00 on days 2014-6-5.
In the embodiment of the present application, a process of sending a message by using a priority sending policy by a message management platform specifically includes, but is not limited to, the following modes: the message management platform queries the message priority configuration table by using the message template (i.e. the message template determined in step 202) to obtain the message priority corresponding to the message template from the message priority configuration table; the message priority configuration table is used for recording the corresponding relation between the message template and the message priority. And when the message priority corresponding to the message template meets the priority sending strategy, the message management platform sends the message through the message sending channel corresponding to the message template.
The message management platform may uniformly manage all message templates and message priorities corresponding to the message templates, for example: the message management platform configures the corresponding relation between the message template and the message priority in the message priority configuration table. Based on the message priority configuration table, after obtaining the message template, the message management platform may query the message priority configuration table by using the message template, so as to obtain the message priority corresponding to the message template from the message priority configuration table. Assuming that the message priority corresponding to the message template is 3, when the priority sending policy is: when the message with the message priority level of 2, 3, 4 or 5 can be sent, the message priority level corresponding to the message template meets the priority sending strategy; and when the priority sending strategy is: when the message with the message priority level of 4 or 5 can be sent, the message priority level corresponding to the message template does not meet the priority sending strategy.
When the message priority corresponding to the message template meets the priority sending policy, the message management platform further needs to send a corresponding message through a message sending channel corresponding to the message template. For example, when the message sending channel corresponding to the message template is a short message channel, the message management platform adds the user identifier (i.e., the mobile phone number) and the message content corresponding to the short message channel to the message template to obtain the current message to be sent, and then sends the message to the application gateway (i.e., the gateway corresponding to the short message) corresponding to the short message channel through the short message channel, and the message is sent to the mobile terminal where the mobile phone number is located through the short message channel by the gateway corresponding to the short message, and the mobile terminal displays the message to the user.
In the embodiment of the present application, after obtaining the message priority corresponding to the message template from the message priority configuration table, when the message priority corresponding to the message template does not satisfy the priority sending policy, the message management platform further needs to further determine whether to allow other message sending channels to send the message that needs to be sent by the message sending channel corresponding to the message template; if not, the message management platform refuses to send the message, that is, the message management platform refuses to send the message corresponding to the user identifier (that is, the user identifier obtained in step 201) currently, that is, the message is not currently sent to the user corresponding to the user identifier.
Wherein, for each message sending channel, whether other message sending channels are allowed to send the message of the message sending channel can be configured in advance. For example, for the short message channel, it may be preconfigured to allow other message sending channels to send messages of the short message channel, or not allow other message sending channels to send messages of the short message channel. Based on this, when the message priority corresponding to the message template does not meet the priority sending strategy, if the message sending channel corresponding to the message template is the short message channel, the message management platform can judge whether to allow other message sending channels to send the message of the short message channel or not based on the configuration condition that other message sending channels are allowed to send the message of the short message channel or not; and refusing to send the message by the message management platform when the judgment result is negative.
In the embodiment of the application, after the message management platform judges whether other message sending channels are allowed to send messages which need to be sent by the message sending channel corresponding to the message template, when the judgment result is yes, the message management platform further judges whether the message priority corresponding to the message template meets the priority sending strategy corresponding to the current load condition of other message sending channels; if not, the message management platform refuses to send the message through other message sending channels; if the message priority only meets the priority sending strategy corresponding to one other message sending channel, the message management platform sends the message through the other message sending channel; if the message priority meets the priority sending strategy corresponding to the other message sending channels, the message management platform selects the message sending channel with the highest login probability (namely, the highest reach rate) from the other message sending channels, and sends the message through the message sending channel with the highest login probability.
For example, assume that other messaging channels include: mail channel, WeChat channel, Wangwang channel; the message management platform further judges whether the message priority satisfies a priority sending strategy corresponding to the current load condition of the mail channel, a priority sending strategy corresponding to the current load condition of the micro communication channel, and a priority sending strategy corresponding to the current load condition of the wang channel. And if the message priority does not meet the priority sending strategy corresponding to the mail channel, the priority sending strategy corresponding to the micro communication channel and the priority sending strategy corresponding to the vigorous channel, the message management platform refuses to send the message through the mail channel, the micro communication channel and the vigorous channel. And if the message priority only meets the priority sending strategy corresponding to the mail channel, the message management platform sends the message through the mail channel. And if the message priority simultaneously meets the priority sending strategy corresponding to the mail channel, the priority sending strategy corresponding to the micro communication channel and the priority sending strategy corresponding to the vigorous channel, the message management platform selects the message sending channel with the highest login probability from the mail channel, the micro communication channel and the vigorous channel, and sends the message through the message sending channel with the highest login probability.
The message management platform can obtain the login probability of each message sending channel (such as a mail channel, a WeChat channel, a Wangwan channel and the like) in a specified time (such as 7 days), and select the message sending channel with the highest login probability from the message sending channels based on the login probability of each message sending channel in the specified time. Assuming that the probability of the user logging in the mail channel in the last 7 days is 50%, the probability of the user logging in the WeChat channel in the last 7 days is 40%, and the probability of the user logging in the Wang channel in the last 7 days is 30%, the message management platform selects the message sending channel with the highest logging probability as the mail channel.
In this embodiment of the application, before the message management platform determines the message template corresponding to the message template identifier, that is, after step 201, and before step 202, the message management platform may further check whether one or more of the message template identifier, the user identifier, and the message content (that is, the message template identifier, the user identifier, and the message content obtained in step 201) are legal. If the message template is legal, the message management platform executes the process of determining the message template corresponding to the message template identifier, namely executing step 202 and the subsequent steps; if not, the message management platform ends the process, i.e., does not perform step 202 and subsequent steps.
The process of the message management platform to check whether the message template identifier is legal includes but is not limited to: the message management platform judges whether the message template identifier obtained in the step 201 is recorded in the message template identifier maintained locally; if yes, the message template mark is legal; if not, the message template identification is illegal. The process of the message management platform to check whether the user identifier is legal includes but is not limited to: the message management platform judges whether the user corresponding to the user identifier obtained in step 201 is a legal user; if yes, the user identification is legal; if not, the user identification is illegal. The process of the message management platform to check whether the message content is legal includes but is not limited to: the message management platform judges whether the message content obtained in step 201 contains sensitive words; if so, the message content is illegal; if not, the message content is legal.
To sum up, in the embodiment of the present application, when there is a large amount of messages to be sent or the resources of the message sending channel are limited, which in turn causes message backlog in the message sending channel, it can be ensured that messages with high requirements on timeliness (i.e. messages with high message priority) are sent preferentially, so that messages with high requirements on timeliness are sent to users as soon as possible, and the use experience of users is improved. And the message with low requirement on the effectiveness (namely the message with low message priority) can be smoothly sent to the user, so that the message is prevented from being lost.
The messages with high requirement on the timeliness include but are not limited to: check codes, emergency notification, and other messages; messages that have low requirements for timeliness include, but are not limited to: marketing promotional messages, and the like.
Based on the same application concept as the method, an embodiment of the present application further provides a message management platform, as shown in fig. 3, where the message management platform specifically includes:
an obtaining module 11, configured to obtain, when a message needs to be sent to a user, a message template identifier corresponding to the message, a user identifier corresponding to the message, and a message content corresponding to the message;
a determining module 12, configured to determine a message template corresponding to the message template identifier, determine a message sending channel corresponding to the message template, determine a current load condition of the message sending channel, and determine a current priority sending policy by using the current load condition of the message sending channel;
a sending module 13, configured to add the user identifier and the message content to the message template to obtain a current message to be sent, and send the message by using the priority sending policy.
The determining module 12 is specifically configured to, when determining the message template corresponding to the message template identifier and the message sending channel corresponding to the message template, query a template configuration table by using the message template identifier, where the template configuration table is used to record a corresponding relationship between the message template identifier and the message template;
when the message template mark corresponds to a message template of a message sending channel in the template configuration table, determining that the message template is a message template corresponding to the message template mark, and determining that the message sending channel is a message sending channel corresponding to the message template;
when the message template mark corresponds to the message templates of the plurality of message sending channels in the template configuration table, selecting one message sending channel from the plurality of message sending channels, determining the message template of the selected message sending channel as the message template corresponding to the message template mark, and determining the selected message sending channel as the message sending channel corresponding to the message template.
The determining module 12 is specifically configured to, when determining the priority sending policy, determine that the load condition is: when the load is greater than a preset first value, determining that the current priority sending strategy is as follows: messages with a message priority greater than the first priority can be sent; in the case of the load condition: when the load is not greater than the preset first value, determining that the current priority sending strategy is as follows: messages of all message priorities can be sent; or, in the case of the load: when the load is greater than a preset second value, determining that the current priority sending strategy is as follows: messages with a message priority greater than the second priority can be sent; in the case of the load condition: when the load is greater than a preset third value and not greater than the preset second value, determining that the current priority sending strategy is as follows: messages with a message priority greater than the third priority can be sent; wherein the second priority is better than the third priority; in the case of the load condition: when the load is not greater than the preset third value, determining that the current priority sending strategy is as follows: messages of all message priorities can be sent.
The sending module 13 is specifically configured to query, by using the message template, a message priority configuration table when the message is sent by using the priority sending policy, and obtain, from the message priority configuration table, a message priority corresponding to the message template, where the message priority configuration table is used to record a correspondence between the message template and the message priority; and when the message priority corresponding to the message template meets the priority sending strategy, sending the message through a message sending channel corresponding to the message template.
The sending module 13 is further configured to, after obtaining the message priority corresponding to the message template from the message priority configuration table, when the message priority corresponding to the message template does not satisfy the priority sending policy, determine whether to allow other message sending channels to send a message that needs to be sent by the message sending channel corresponding to the message template; if not, the message is refused to be sent.
The sending module 13 is further configured to, after determining whether to allow other message sending channels to send messages that need to be sent by the message sending channel corresponding to the message template, further determine, if the determination result is yes, whether the message priority corresponding to the message template meets a priority sending policy corresponding to the current load condition of the other message sending channels; if not, refusing to send the message through other message sending channels; if the message priority only meets the priority sending strategy corresponding to one other message sending channel, the message is sent through the other message sending channel; and if the message priority meets the priority sending strategy corresponding to a plurality of other message sending channels, selecting the message sending channel with the highest login probability from one of the other message sending channels, and sending the message through the message sending channel with the highest login probability.
The determining module 12 is further configured to check whether one or more of the message template identifier, the user identifier, and the message content is legal before determining the message template corresponding to the message template identifier; if the message template is legal, determining the message template corresponding to the message template identification; if not, the process is ended.
The modules of the device can be integrated into a whole or can be separately deployed. The modules can be combined into one module, and can also be further split into a plurality of sub-modules.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present application can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application may be essentially or partially implemented in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute the methods described in the embodiments of the present application. Those skilled in the art will appreciate that the drawings are merely schematic representations of one preferred embodiment and that the blocks or flow diagrams in the drawings are not necessarily required to practice the present application. Those skilled in the art will appreciate that the modules in the devices in the embodiments may be distributed in the devices in the embodiments according to the description of the embodiments, and may be correspondingly changed in one or more devices different from the embodiments. The modules of the above embodiments may be combined into one module, or further split into multiple sub-modules. The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments. The disclosure of the present application is only a few specific embodiments, but the present application is not limited to these, and any variations that can be made by those skilled in the art are intended to fall within the scope of the present application.
Claims (14)
1. A method for sending messages, the method comprising the steps of:
when a message needs to be sent to a user, a message management platform obtains a message template identifier, a user identifier and message content corresponding to the message, and determines a message template corresponding to the message template identifier;
the message management platform determines a message sending channel corresponding to the message template;
the message management platform determines the current load condition of the message sending channel;
the message management platform determines a current priority sending strategy by using the load condition;
and the message management platform adds the user identification and the message content in the message template to obtain the current message to be sent, and sends the message by using the priority sending strategy.
2. The method of claim 1, wherein the determining, by the message management platform, the message template corresponding to the message template identifier and the message sending channel corresponding to the message template comprises:
the message management platform queries a template configuration table by using the message template identifier; the template configuration table is used for recording the corresponding relation between the message template identification and the message template;
when the message template identifier corresponds to a message template of a message sending channel in the template configuration table, the message management platform determines that the message template is a message template corresponding to the message template identifier and determines that the message sending channel is a message sending channel corresponding to the message template;
when the message template identifier corresponds to a message template of a plurality of message sending channels in the template configuration table, the message management platform selects one message sending channel from the plurality of message sending channels, determines the message template of the selected message sending channel as the message template corresponding to the message template identifier, and determines the selected message sending channel as the message sending channel corresponding to the message template.
3. The method of claim 1, wherein the process of the message management platform determining the current priority sending policy using the load condition specifically comprises:
in the case of the load condition: when the load is greater than a preset first value, the message management platform determines that the current priority sending strategy is as follows: messages with a message priority greater than the first priority can be sent;
in the case of the load condition: when the load is not greater than the preset first value, the message management platform determines that the current priority sending policy is as follows: messages of all message priorities can be sent;
alternatively, the first and second electrodes may be,
in the case of the load condition: when the load is greater than a preset second value, the message management platform determines that the current priority sending strategy is as follows: messages with a message priority greater than the second priority can be sent;
in the case of the load condition: when the load is greater than a preset third value and not greater than the preset second value, the message management platform determines that the current priority sending policy is as follows: messages with a message priority greater than the third priority can be sent; wherein the second priority is better than the third priority;
in the case of the load condition: when the load is not greater than the preset third value, the message management platform determines that the current priority sending policy is as follows: messages of all message priorities can be sent.
4. The method according to claim 1 or 3, wherein the process of the message management platform sending the message using the priority sending policy specifically includes:
the message management platform queries a message priority configuration table by using the message template so as to obtain the message priority corresponding to the message template from the message priority configuration table; the message priority configuration table is used for recording the corresponding relation between the message template and the message priority;
and when the message priority corresponding to the message template meets the priority sending strategy, the message management platform sends the message through a message sending channel corresponding to the message template.
5. The method of claim 4, wherein the message management platform obtains the message priority corresponding to the message template from the message priority configuration table, and thereafter further comprising:
when the message priority corresponding to the message template does not meet the priority sending strategy, the message management platform judges whether other message sending channels are allowed to send messages needing to be sent by the message sending channels corresponding to the message template; if not, the message is refused to be sent.
6. The method of claim 5,
after the message management platform determines whether to allow other message sending channels to send the message which needs to be sent by the message sending channel corresponding to the message template, the method further includes:
when the judgment result is yes, the message management platform judges whether the message priority corresponding to the message template meets the priority sending strategy corresponding to the current load condition of other message sending channels;
if not, the message management platform refuses to send the message through other message sending channels;
if the message priority only meets the priority sending strategy corresponding to one other message sending channel, the message management platform sends the message through the other message sending channel;
and if the message priority meets the priority sending strategy corresponding to a plurality of other message sending channels, the message management platform selects the message sending channel with the highest login probability from the plurality of other message sending channels and sends the message through the message sending channel with the highest login probability.
7. The method of claim 1, wherein prior to the message management platform determining that the message template identifies the corresponding message template, the method further comprises:
the message management platform checks whether one or more of the message template identification, the user identification and the message content are legal or not; if the message template is legal, the message management platform executes a process of determining the message template corresponding to the message template identification; and if the information is illegal, the information management platform finishes the process.
8. The message management platform is characterized by specifically comprising:
an obtaining module, configured to obtain, when a message needs to be sent to a user, a message template identifier corresponding to the message, a user identifier corresponding to the message, and message content corresponding to the message;
a determining module, configured to determine a message template corresponding to the message template identifier, determine a message sending channel corresponding to the message template, determine a current load condition of the message sending channel, and determine a current priority sending policy by using the current load condition of the message sending channel;
and the sending module is used for adding the user identification and the message content in the message template to obtain the current message to be sent and sending the message by utilizing the priority sending strategy.
9. The message management platform of claim 8,
the determining module is specifically configured to query a template configuration table by using the message template identifier when determining the message template corresponding to the message template identifier and the message sending channel corresponding to the message template; the template configuration table is used for recording the corresponding relation between the message template identification and the message template;
when the message template mark corresponds to a message template of a message sending channel in the template configuration table, determining that the message template is a message template corresponding to the message template mark, and determining that the message sending channel is a message sending channel corresponding to the message template;
when the message template mark corresponds to the message templates of the plurality of message sending channels in the template configuration table, selecting one message sending channel from the plurality of message sending channels, determining the message template of the selected message sending channel as the message template corresponding to the message template mark, and determining the selected message sending channel as the message sending channel corresponding to the message template.
10. The message management platform of claim 8,
the determining module is specifically configured to, when determining the priority sending policy, if the load condition is: when the load is greater than a preset first value, determining that the current priority sending strategy is as follows: messages with a message priority greater than the first priority can be sent; in the case of the load condition: when the load is not greater than the preset first value, determining that the current priority sending strategy is as follows: messages of all message priorities can be sent; or, in the case of the load: when the load is greater than a preset second value, determining that the current priority sending strategy is as follows: messages with a message priority greater than the second priority can be sent; in the case of the load condition: when the load is greater than a preset third value and not greater than the preset second value, determining that the current priority sending strategy is as follows: messages with a message priority greater than the third priority can be sent; wherein the second priority is better than the third priority; in the case of the load condition: when the load is not greater than the preset third value, determining that the current priority sending strategy is as follows: messages of all message priorities can be sent.
11. Message management platform according to claim 8 or 10,
the sending module is specifically configured to query a message priority configuration table by using the message template when the message is sent by using the priority sending policy, and obtain a message priority corresponding to the message template from the message priority configuration table, where the message priority configuration table is used to record a correspondence between the message template and the message priority; and when the message priority corresponding to the message template meets the priority sending strategy, sending the message through a message sending channel corresponding to the message template.
12. The message management platform of claim 11,
the sending module is further configured to, after obtaining the message priority corresponding to the message template from the message priority configuration table, determine whether to allow other message sending channels to send a message that needs to be sent by the message sending channel corresponding to the message template when the message priority corresponding to the message template does not satisfy the priority sending policy; if not, the message is refused to be sent.
13. The message management platform of claim 12,
the sending module is further configured to, after determining whether to allow other message sending channels to send messages that need to be sent by the message sending channel corresponding to the message template, further determine whether the message priority corresponding to the message template meets a priority sending policy corresponding to the current load condition of the other message sending channels when the determination result is yes; if not, refusing to send the message through other message sending channels; if the message priority only meets the priority sending strategy corresponding to one other message sending channel, the message is sent through the other message sending channel; and if the message priority meets the priority sending strategy corresponding to a plurality of other message sending channels, selecting the message sending channel with the highest login probability from one of the other message sending channels, and sending the message through the message sending channel with the highest login probability.
14. The message management platform of claim 8,
the determining module is further configured to check whether one or more of the message template identifier, the user identifier, and the message content is legal before determining the message template corresponding to the message template identifier; if the message template is legal, determining the message template corresponding to the message template identification; if not, the process is ended.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410295382.5A CN105337837A (en) | 2014-06-26 | 2014-06-26 | Message transmitting method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
HK1219184A1 true HK1219184A1 (en) | 2017-03-24 |
Family
ID=55288147
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
HK16107104.0A HK1219184A1 (en) | 2014-06-26 | 2016-06-21 | Method and device for transmitting message |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105337837A (en) |
HK (1) | HK1219184A1 (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107567000B (en) * | 2017-09-18 | 2020-12-29 | 广东电网有限责任公司信息中心 | Method and system for intelligently selecting short message sending channel |
CN109948046B (en) * | 2018-01-05 | 2021-09-28 | 深圳壹账通智能科技有限公司 | Message pushing method and device, mobile terminal and storage medium |
CN108933993B (en) * | 2018-07-03 | 2021-08-24 | 平安科技(深圳)有限公司 | Short message cache queue selection method and device, computer equipment and storage medium |
CN109151020B (en) * | 2018-08-21 | 2023-07-25 | 中国平安人寿保险股份有限公司 | Universal message configuration method, device, storage medium and server |
CN109783720A (en) * | 2018-11-30 | 2019-05-21 | 平安科技(深圳)有限公司 | Information push method, device, computer installation and storage medium |
CN109587078A (en) * | 2018-12-17 | 2019-04-05 | 联想(北京)有限公司 | A kind of adjusting method, the network equipment and electronic equipment |
CN110177053A (en) * | 2019-05-07 | 2019-08-27 | 中国工商银行股份有限公司 | A kind of smart message sending method and device |
CN110519711A (en) * | 2019-06-26 | 2019-11-29 | 中国移动通信集团江西有限公司 | A kind of information push method, device, storage medium and server |
CN110601965B (en) * | 2019-09-24 | 2022-03-15 | Oppo广东移动通信有限公司 | Message distribution method, device, system, and message gateway |
CN114640956B (en) * | 2020-12-15 | 2024-01-19 | 北京金山云网络技术有限公司 | Short message issuing method, device, system and electronic equipment |
CN114338584B (en) * | 2022-01-11 | 2023-11-14 | 平安科技(深圳)有限公司 | Message withdraw method and message transmission system |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1183725C (en) * | 2003-03-28 | 2005-01-05 | 港湾网络有限公司 | Broadband communication data transmission method |
CN103458379B (en) * | 2012-05-31 | 2018-04-13 | 腾讯科技(深圳)有限公司 | Method for sending information, method for pushing, apparatus and system |
-
2014
- 2014-06-26 CN CN201410295382.5A patent/CN105337837A/en active Pending
-
2016
- 2016-06-21 HK HK16107104.0A patent/HK1219184A1/en unknown
Also Published As
Publication number | Publication date |
---|---|
CN105337837A (en) | 2016-02-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
HK1219184A1 (en) | Method and device for transmitting message | |
US10574610B1 (en) | Techniques to promote filtered messages based on historical reply rate | |
US11537588B2 (en) | Systems and methods for providing a two-way, intelligent text messaging platform | |
CN105847447B (en) | Message pushing method and device | |
CN104243286A (en) | Method for achieving public wifi authentication through WeChat | |
US11616747B1 (en) | Systems and methods for multi-agent messaging | |
US9060253B2 (en) | Identifying and blocking mobile messaging service spam | |
CN106470149A (en) | Message method and device | |
CN105207881B (en) | A kind of message method and equipment | |
US9137649B2 (en) | Short code management for messaging campaigns | |
CN104980290A (en) | Method for establishing groups and server | |
CN102655538A (en) | Method and system for intelligently creating schedules | |
CN107579990A (en) | Measure of managing contract and server | |
CN102244695A (en) | Contact person grouping system and method | |
CN108200543B (en) | Short message sending method and device | |
CN105430623A (en) | Monitoring method, device and system for RCS junk message | |
CN103096273A (en) | Uplink short message service (SMS) sending method, equipment and system | |
CN104967605A (en) | Privacy protection method and privacy protection device | |
CN107005420B (en) | Group service feedback method and device | |
US10142277B2 (en) | Posting and consultation of messages by users of social networks | |
CN103379095A (en) | Spam message report information sharing method, spam message report information sharing system, and service server | |
CN109218163B (en) | Mail delivery method and server | |
CN105871679A (en) | Instant messaging data information classification method and device | |
US11436636B2 (en) | Communicating information about product or service | |
KR20180101275A (en) | Apparatus for sending mass free message, system having the same and method thereof |