CN112654003A - Method, device, storage medium and electronic equipment for sending message - Google Patents

Method, device, storage medium and electronic equipment for sending message Download PDF

Info

Publication number
CN112654003A
CN112654003A CN202011466208.4A CN202011466208A CN112654003A CN 112654003 A CN112654003 A CN 112654003A CN 202011466208 A CN202011466208 A CN 202011466208A CN 112654003 A CN112654003 A CN 112654003A
Authority
CN
China
Prior art keywords
message
channel
current
sending
message channel
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
CN202011466208.4A
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.)
Beijing Absolute Health Ltd
Original Assignee
Beijing Absolute Health 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 Beijing Absolute Health Ltd filed Critical Beijing Absolute Health Ltd
Priority to CN202011466208.4A priority Critical patent/CN112654003A/en
Publication of CN112654003A publication Critical patent/CN112654003A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • H04L63/0838Network architectures or network communication protocols for network security for authentication of entities using passwords using one-time-passwords

Abstract

The invention discloses a method, a device, a storage medium and electronic equipment for sending messages, wherein the method comprises the following steps: determining a target message to be sent; taking the message channel with the preset sequence as a current message channel according to the channel arrangement sequence, and executing the operation of sending the target message based on the current message channel; and determining the current sending result of the sending target message, wherein the current sending result is used for updating the evaluation value of the current message channel and re-determining the channel arrangement sequence. By the method, the device, the storage medium and the electronic equipment for sending the message, which are provided by the embodiment of the invention, the message channel with the optimal performance can be selected to send the target message, and the message sending effect is better; meanwhile, the preset message channel can be effectively ensured to be optimal by updating the channel arrangement sequence, so that the optimal message channel can be conveniently selected when the message is sent subsequently, and the sustainability of selecting the optimal message channel can be ensured.

Description

Method, device, storage medium and electronic equipment for sending message
Technical Field
The present invention relates to the field of message sending technologies, and in particular, to a method, an apparatus, a storage medium, and an electronic device for sending a message.
Background
In order to send notification or marketing messages to a large number of users, this is typically done using a downstream short message channel. At present, most short message sending platforms of reach teams have a plurality of downstream short message channels, and short message flow can only be distributed to each channel according to a fixed proportion during actual sending, so that dynamic distribution cannot be achieved. When the channel needs to be switched, although the proportion of the distributed flow can be adjusted, the manual operation is mostly relied on, and the operation response is slow and is easy to make mistakes.
The strategy of distributing the flow according to the fixed proportion or the adjustable proportion is that different short messages are sent by different channels essentially, and the channels with poor quality inevitably exist in a plurality of channels, which inevitably causes the channels used when sending part of the short messages not to be the optimal selection, thus causing the sending effect to be poor, and influencing the receiving notice of the user or the marketing effect.
Disclosure of Invention
The technical problem to be solved by the embodiment of the invention is that the current message sending strategy easily causes that the channel used in sending is not the optimal channel.
In a first aspect, an embodiment of the present invention provides a method for sending a message, including:
determining a target message to be sent;
taking a preset-order message channel as a current message channel according to a channel arrangement sequence, and executing the operation of sending the target message based on the current message channel, wherein the channel arrangement sequence is determined after sequencing according to evaluation values of the message channels;
and determining a current sending result of the target message, wherein the current sending result is used for updating the evaluation value of the current message channel and re-determining the channel arrangement sequence.
In one possible implementation, after the determining to send the current sending result of the target message, the method further includes:
if the current sending result is sending failure, the process of sending the message is repeatedly executed until the current sending result is sending success or all message channels are traversed;
the message sending process comprises the following steps: and taking the next message channel as the current message channel according to the channel arrangement sequence, executing the operation of sending the target message based on the current message channel, and determining the current sending result of sending the target message.
In a possible implementation manner, the taking the message channel with the preset order as the current message channel according to the channel arrangement order includes:
taking the message channel with the preset sequence as the current message channel according to the arrangement sequence of the full message type channels; or
Taking the message channel with the preset sequence as a current message channel according to the current message type channel arrangement sequence;
wherein, the arrangement sequence of the full message type channels is as follows: ordering according to evaluation values determined by sending messages of all message types through a message channel, and determining the order; the current message type channel arrangement sequence is as follows: and sequencing the evaluation values determined by the messages of the current message type sent by the message channel, wherein the current message type is the message type of the target message.
In a possible implementation manner, the taking the message channel with the preset order as the current message channel according to the channel arrangement order includes:
judging whether the evaluation value of the preset order message channel determined according to the arrangement sequence of the all-message type channels is the same as the evaluation values of other message channels, and if so, taking the preset order message channel as the current message channel according to the arrangement sequence of the all-message type channels; if the current message type channels are the same, taking the message channels with the preset orders as the current message channels according to the current message type channel arrangement sequence; or
Judging whether the evaluation value of the preset order message channel determined according to the arrangement sequence of the current message type channel is the same as the evaluation values of other message channels, and if so, taking the preset order message channel as the current message channel according to the arrangement sequence of the current message type channel; if the current message channel is the same as the current message channel, the message channel with the preset sequence is taken as the current message channel according to the arrangement sequence of the all-message type channels;
wherein, the arrangement sequence of the full message type channels is as follows: ordering according to evaluation values determined by sending messages of all message types through a message channel, and determining the order; the current message type channel arrangement sequence is as follows: and sequencing the evaluation values determined by the messages of the current message type sent by the message channel, wherein the current message type is the message type of the target message.
In a possible implementation manner, before the taking the message channel of the preset order as the current message channel according to the channel arrangement order, and/or after the determining the current sending result of the target message, the method further includes:
determining an evaluation value of a message channel according to a historical sending result of sending a historical message by the message channel, wherein the historical message is a message sent by the message channel before the current time point;
and sorting according to the evaluation values of the message channels, and determining the channel arrangement sequence of the message channels.
In one possible implementation, the evaluation value includes a proportional form of the route index, and the current transmission result is used to update a numerator and a denominator of the proportional form of the route index.
In a possible implementation manner, the determining, according to a history transmission result of a history message transmitted by a message channel, an evaluation value of the message channel includes:
determining multiple routing indexes in the sending success rate, the triggering success rate and the channel unit price cost of the message channel according to the historical sending result of the historical message sent by the message channel; the history sending result comprises whether the history message is successfully sent to the message channel or not and whether the history message fed back by the message channel is successfully reached or not; the sending success rate is the ratio of the number of the history messages successfully sent to the message channel to the total number of the history messages, and the triggering success rate is the ratio of the number of the history messages successfully triggered to the total number of the history messages;
and determining the evaluation value of the message channel according to the multiple routing indexes of the message channel.
In a possible implementation manner, the determining the evaluation value of the message channel according to the plurality of routing indexes of the message channel includes:
determining the weight of each routing index, and determining the evaluation value of the message channel in a weighted mode according to a plurality of routing indexes of the message channel;
the sending success rate is the ratio of the number of the historical messages of all the message types successfully sent to the message channel to the total number of the historical messages of all the message types, and the triggering power is the ratio of the number of the historical messages of all the message types successfully triggered to the total number of the historical messages of all the message types; or the sending success rate is the ratio of the number of the historical messages of the current message type successfully sent to the message channel to the total number of the historical messages of the current message type, and the triggering power is the ratio of the number of the historical messages of the current message type successfully triggered to the total number of the historical messages of the current message type; wherein the current message type is the message type of the target message;
or, determining a weight of each routing index corresponding to each message type, and determining an evaluation value of the message channel in a weighted manner according to a plurality of routing indexes corresponding to each message type of the message channel, where the evaluation value R of the message channel is:
Figure BDA0002834299390000041
wherein, wijIndicating the j item path corresponding to the i type of messageBy weight of the index, TijAnd (3) representing a jth item of routing index corresponding to the ith message type, wherein m is the number of the types of the message types, and n is the number of the types of the routing index.
In a second aspect, an embodiment of the present invention further provides an apparatus for sending a message, including:
the determining module is used for determining a target message to be sent;
a sending module, configured to use a preset-order message channel as a current message channel according to a channel arrangement order, and execute an operation of sending the target message based on the current message channel, where the channel arrangement order is determined after ranking according to evaluation values of the message channels;
and the result processing module is used for determining the current sending result of the target message, updating the evaluation value of the current message channel and re-determining the channel arrangement sequence.
In a third aspect, an embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer-executable instructions, where the computer-executable instructions are used in any one of the above methods for sending a message.
In a fourth aspect, an embodiment of the present invention further provides an electronic device, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to cause the at least one processor to perform any one of the above methods of sending a message.
In the solution provided by the foregoing first aspect of the embodiments of the present invention, after a current message channel with a preset order is selected based on a channel arrangement order, a target message is sent by the current message channel, and an evaluation value and a channel arrangement order of the current message channel may be updated based on a corresponding current sending result. For any target message, the method can select the message channel with the optimal performance to send the target message, and the message sending effect is good; meanwhile, the preset message channel can be effectively ensured to be optimal by updating the channel arrangement sequence, so that the optimal message channel can be conveniently selected when the message is sent subsequently, and the sustainability of selecting the optimal message channel can be ensured. And only the message channel with the optimal performance is used for sending the message, so that the provider of the message channel can be forced to improve the performance of the message channel, and the condition of message sending failure can be reduced to a certain extent.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description, serve to explain the principles of the invention.
The invention will be more clearly understood from the following detailed description, taken with reference to the accompanying drawings, in which:
fig. 1 is a flowchart illustrating a method for sending a message according to an embodiment of the present invention;
fig. 2 is a flow chart illustrating another method for sending a message according to an embodiment of the present invention;
fig. 3 is a detailed flowchart of still another method for sending a message according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram illustrating an apparatus for sending a message according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device for executing a method for sending a message according to an embodiment of the present invention.
Detailed Description
Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
Embodiments of the invention are operational with numerous other general purpose or special purpose computing system environments or configurations. Examples of well known computing systems, environments, and/or configurations that may be suitable for use with the computer system/server include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, hand-held or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, networked personal computers, minicomputer systems, mainframe computer systems, distributed cloud computing environments that include any of the above, and the like.
The computer system/server may be described in the general context of computer system-executable instructions, such as program modules, being executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, etc. that perform particular tasks or implement particular abstract data types. The computer system/server may be practiced in distributed cloud computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computer system storage media including memory storage devices.
Referring to fig. 1, a method for sending a message according to an embodiment of the present invention includes:
step 101: and determining a target message to be sent.
In the embodiment of the invention, when a certain message needs to be sent to a target object (such as a user or other equipment), the message can be used as a target message. Wherein, only one message can be sent, namely, the message contains a target message; or, multiple messages may also be sent simultaneously, that is, the number of the target messages is multiple, at this time, the method for sending a message provided in this embodiment may be performed on each target message, and this embodiment does not limit the number of the target messages. In addition, when there are multiple target messages, different target messages may correspond to different target objects, that is, different target messages may be sent to the same or different target objects.
Step 102: and taking the preset-order message channel as a current message channel according to a channel arrangement sequence, and executing the operation of sending the target message based on the current message channel, wherein the channel arrangement sequence is determined after sequencing according to the evaluation value of the message channel.
In the embodiment of the invention, a plurality of channels for sending messages, namely message channels, are preset; taking a message as an example, there are generally a plurality of short message providers, and each short message provider provides at least one message channel. In general, each message channel may send the target message, and this embodiment selects an optimal message channel from the plurality of message channels to send the target message. Specifically, the evaluation values of a plurality of message channels are predetermined, the evaluation values are used for evaluating the performance of sending messages by the message channels, and meanwhile, the plurality of message channels are sequenced according to the evaluation values of the message channels, that is, the channel arrangement sequence can be determined; generally, the higher the evaluation value, the better the performance of the transmitted message, and at this time, the message channel evaluation values are sorted in order from large to small. If there is no special description, the embodiment takes the example that the higher the evaluation value is, the better the performance of the message is sent is; of course, if the evaluation value is higher, the performance of the sent message is worse, and at this time, the evaluation values of the message channels are sorted in the order from small to large, and the subsequent processes are the same.
When the target message needs to be sent, a message channel which needs to be used currently, namely the current message channel, is selected according to the channel arrangement sequence. In this embodiment, a required sequence is preset, that is, a certain position in the channel arrangement sequence is preset, and a message channel corresponding to the preset sequence is used as a current message channel. For example, the three message channels A, B, C have a channel arrangement sequence of message channel B, message channel C, and message channel a, and if the preset order is bit 1, then the message channel B may be used as the current message channel; if the preset order is the 2 nd order, the message channel C is taken as the current message channel. Under normal conditions, the message channel corresponding to the 1 st bit in the channel arrangement sequence has the optimal performance, and the preset order in this embodiment is generally the first bit, i.e., the 1 st bit. After the current message channel is determined, the operation of sending the target message can be executed based on the current message channel; specifically, the target message may be sent to the current message channel, and the target message may be sent (forwarded) to the corresponding destination object by the current message channel.
Step 103: and determining the current sending result of the sending target message, wherein the current sending result is used for updating the evaluation value of the current message channel and re-determining the channel arrangement sequence.
In the embodiment of the invention, after the target message is sent, a corresponding sending result, namely the current sending result, can be determined; the sending result is mainly a successful sending or a failed sending, and the specific content of the current sending result is determined according to the actual situation. For example, after the target message is sent by the current message channel, the current message channel feeds back a corresponding result, if the target message is finally sent to the target object, the sending is successful, otherwise, the sending is failed.
Meanwhile, the current transmission result is a result of transmitting a message in the current message channel, and the evaluation value of the current message channel can be updated based on the transmission result. For example, if the current sending result is that the sending is successful, the evaluation value of the current message channel can be increased; conversely, if the current sending result is sending failure, the evaluation value of the current message channel is reduced. In this embodiment, after the current sending result is determined, the evaluation value of the current message channel may be updated immediately; alternatively, the evaluation value of the current message channel may be updated after a sufficient number (e.g., 1000) of current transmission results corresponding to the current message channel are determined, or after a preset time interval (e.g., 1 minute, 5 minutes, etc.), and the timing for updating the evaluation value of the current message channel is not limited in this embodiment.
In the embodiment of the invention, the target message is sent by selecting the current message channel with the preset order, and the evaluation value of the current message channel is updated based on the current sending result of the target message, so that the channel arrangement sequence can be updated, and the message channel with the preset order can be effectively ensured to have optimality while the message is sent by the optimal channel. For example, the current channel arrangement order is message channel B, message channel C, and message channel a, and the preset order is bit 1, that is, the message channel B sends the target message at this time; if the message channel B fails to send, the evaluation value of the message channel B is reduced, and further the evaluation value of the message channel C is possibly higher than that of the message channel C, and the channel arrangement sequence is updated to the message channel C, the message channel B and the message channel A; when other target messages are sent later, namely by the message channel C. In addition, the method ensures that only the message channel with the optimal performance can be used for sending the message, thereby forcing the provider of the message channel (such as a short message provider) to improve the performance of the message channel, and reducing the condition of message sending failure to a certain extent.
In the method for sending a message provided in the embodiment of the present invention, after a current message channel with a preset order is selected based on a channel arrangement order, a target message is sent through the current message channel, and an evaluation value and a channel arrangement order of the current message channel can be updated based on a corresponding current sending result. For any target message, the method can select the message channel with the optimal performance to send the target message, and the message sending effect is good; meanwhile, the preset message channel can be effectively ensured to be optimal by updating the channel arrangement sequence, so that the optimal message channel can be conveniently selected when the message is sent subsequently, and the sustainability of selecting the optimal message channel can be ensured. And only the message channel with the optimal performance is used for sending the message, so that the provider of the message channel can be forced to improve the performance of the message channel, and the condition of message sending failure can be reduced to a certain extent.
On the basis of the above embodiment, if the current sending result is that the sending is successful, the target message is successfully sent, and the process ends. If the current sending result is that the sending is failed, namely the target object does not receive the target message, the sending process can be continuously executed at the moment so as to continuously send the target message to the target object; or when determining that the target message needs to be continuously sent to the target object, continuously executing the sending process; if the target message does not need to be sent continuously currently, for example, the target message is configured as 'channel switching is not needed', the target message does not need to be sent continuously.
In this embodiment, after "determining the current sending result of the sending target message" in step 103, if the current sending result is a sending failure, the message sending process may be repeatedly executed until the current sending result is a sending success or all message channels are traversed. Wherein, the process of sending message includes: and taking the next message channel as the current message channel according to the channel arrangement sequence, executing the operation of sending the target message based on the current message channel, and determining the current sending result of the target message.
Specifically, referring to fig. 2, after "determining the current transmission result of the transmission target message" in step 103, the method further includes:
step 104: taking the next message channel as the current message channel according to the channel arrangement sequence, executing the operation of sending the target message based on the current message channel, and determining the current sending result of the target message; wherein the current transmission result is also used for updating the evaluation value of the corresponding current message channel.
Step 105: and judging whether the current sending result is successful, if so, ending the process, and otherwise, executing the step 104 again.
In the embodiment of the invention, the target message is sent in a mode of circularly executing the message sending process. Specifically, if the current message channel with the preset order cannot successfully send the target message, the next message channel of the current message channel selected last time is taken as the current message channel selected again, and the process similar to the step 102 is executed again: "an operation of sending a target message is executed based on a current message channel", and then a process similar to step 103 "is executed to determine a current sending result of the sending target message", and if the current sending result is a successful sending, the sending does not need to be repeated; if the transmission fails, step 104 needs to be executed again to ensure that the target message is successfully transmitted. For example, the three message channels A, B, C have a channel arrangement sequence of message channel B, message channel C, and message channel a, and if the preset order is bit 1, the message channel B fails to send the target message; then the next message channel is used as the current message channel, namely the message channel C is used as the current message channel, and the attempt to send the target message is continued; if the sending still fails, the next message channel is continuously used as the current message channel, that is, the message channel A is used as the current message channel, if the sending still fails, all the message channels are traversed at this time, and the process is ended.
It should be noted that the "current message channel" in this embodiment is a message channel selected by the node at the current time, and at different times, the "current message channel" may represent different message channels. For example, the "current message channel" in step 102 is a message channel with a preset order, and the "current message channel" in step 104 is a message channel after the preset order, which is determined based on the number of currently executed rounds.
The embodiment of the invention sends the target message by taking the next message channel as the current message channel in sequence in a mode of repeatedly executing the process of sending the message, thereby ensuring that the target message is successfully sent as much as possible; meanwhile, the evaluation value of the corresponding current message channel can be updated by the current message channel determined in each message sending process, if the subsequent message channel successfully sends the target message, the evaluation value is higher, the message channel can be more favorably arranged forwards in the channel arrangement sequence, and therefore the optimal message channel can be more quickly adjusted to the preset order.
On the basis of the above embodiment, the method provided in the embodiment of the present invention further includes a process of determining an arrangement order of the channels, where the arrangement order of the channels needs to be determined before "taking a preset message channel as a current message channel according to the arrangement order of the channels" in step 102; further, after "determining the current transmission result of the transmission target message" at step 103, the channel arrangement order needs to be updated, that is, the process of determining the channel arrangement order also needs to be performed. The process of determining the channel arrangement order performed before step 102 and after step 103 may be the same or different. Specifically, the process of determining the channel arrangement order includes:
step A1: and determining the evaluation value of the message channel according to the historical sending result of the historical message sent by the message channel, wherein the historical message is the message sent by the message channel before the current time point.
Step A2: and sorting according to the evaluation values of the plurality of message channels, and determining the channel arrangement sequence of the plurality of message channels.
In the embodiment of the present invention, the above steps a1-a2 are performed before step 102, since the target message is not sent yet, it is not a history message, the evaluation value of the corresponding message channel is calculated according to the history sending result of other history messages, and the plurality of message channels are sorted, so that the channel arrangement order can be determined; for example, the message channel a transmits 1000 history messages in total, wherein 900 of the history messages are successfully transmitted, and 100 of the history messages are failed to be transmitted, at this time, the current evaluation value of the message channel a may be determined based on the history transmission results of 900 successful transmissions and the history transmission results of 100 failed transmissions, and then sorting may be performed based on the magnitude of the evaluation value.
If the above steps a1-a2 are executed after step 103, since the target message has already been sent by the previously selected message channel, at the current time node executing step a1, the target message is also the message that was sent by the corresponding message channel before, which is a history message, and then the evaluation value of the corresponding message channel needs to be determined based on the target message. For example, at some previous point in time, message channel a was used as the current message channel to send the target message, if message channel a had sent 1000 historical messages before sending the target message, and 900 of them were successful and 100 failed; then, at the current time node when step a1 is executed, message channel a sends 1001 history messages (including the target message), if message channel a successfully sends the target message, 901 messages are successfully sent, 100 messages are failed, otherwise 900 messages are successfully sent, 101 messages are failed. Then, the evaluation value of the message channel a is calculated in the same manner, so that the evaluation value is updated. In this embodiment, the history message may be: all messages sent by the message channel prior to the current time point may also be all messages sent by the message channel within a preset time period (e.g., the last month, etc.) prior to the current time point.
Optionally, the evaluation value includes a routing index in a proportional form, and the current transmission result is used to update a numerator and a denominator of the routing index in the proportional form.
In the embodiment of the present invention, when the current transmission result is that transmission is successful, the evaluation value should be increased, and when the current transmission result is that transmission is failed, the evaluation value should be decreased. In order to ensure that different current transmission results have different influences on the evaluation value, the evaluation value is determined by the routing index in a proportional form in the embodiment, and the numerator and denominator of the routing index in an adjusted proportional form may be updated by the current transmission result. The "numerator and denominator of the current sending result used for updating the routing index in the proportional form" may specifically be: the current transmission result is used for carrying out increment processing (such as plus one processing) on the denominator of the routing index in the comparative example form, and carrying out increment processing, decrement processing (such as minus one processing) or no processing according to the numerator of the routing index in the different comparative example form of the current transmission result. Generally, if the current transmission result is successful, the molecule is subjected to increment processing, and if the current transmission result is failed, the molecule is subjected to decrement processing or is not processed.
Optionally, the routing index in the proportional form may be a sending success rate or a reaching power of the message channel, where the sending success rate is a ratio of the number of history messages successfully sent to the message channel to the total number of history messages, and the reaching power is a ratio of the number of history messages successfully reached to the total number of history messages. In the embodiment of the present invention, the history sending result includes two types, which specifically include: whether the history message is successfully sent to the message channel and whether the history message fed back by the message channel is successfully reached.
Specifically, when sending a message to a target object, two stages are needed, namely, the message is sent to a message channel first, and then the message is sent (touched) to the target object through the message channel; the "transmission success" or "transmission failure" in the foregoing embodiments is meant in a broad sense, and may be success/failure transmission to the message channel (message channel success/failure reception) or success/failure transmission (reach) to the destination object. In this embodiment, the sending success rate may be determined according to whether the message is successfully sent to the message channel; if the message is successfully sent to the destination object, the message is considered to be successfully touched, so that the touch power can be determined according to whether the message is successfully touched. For example, 1000 history messages need to be sent through the message channel a, wherein 900 history messages are successfully sent to the message channel a, and the sending success rate is 90%; if 800 of the messages later successfully reach the target object, the reach power is 80%. In this embodiment, the evaluation value is determined by sending the success rate and/or triggering the routing index in the power equal proportion form, so that different current sending results can be guaranteed to have different influences on the evaluation value, and the performance of the message channel can be better evaluated based on the routing index in the proportion form.
Alternatively, the evaluation value of the corresponding message channel may also be determined based on the channel unit price cost. In this embodiment, the unit price cost of the channel is the cost of sending a preset unit (for example, one) message through the message channel, and the higher the unit price cost of the channel is, the lower the evaluation value is. In the embodiment of the invention, the evaluation value of the message channel is determined according to the multiple routing indexes of the message channel, so that the message channel of a provider can be dynamically evaluated through the multi-dimensional routing indexes (the sending success rate, the trigger power, the unit price cost of the channel and the like), the message channel with the optimal performance can be selected to send the target message, and the cost for sending the message can be reduced to a certain extent.
Further, when calculating the evaluation value of the message channel, the calculation may be performed in a weighted manner. Specifically, the process of "determining the evaluation value of the message channel according to the multiple routing indexes of the message channel" may specifically include:
step B1: and determining the weight of each routing index, and determining the evaluation value of the message channel in a weighted mode according to the plurality of routing indexes of the message channel.
In the embodiment of the invention, the weight of each routing index can be distributed in advance, and then a plurality of routing indexes are converted into the evaluation value of the message channel in a weighting mode. For example, the three routing indexes of the message channel are the sending success rate r1Contact to a power r2The unit cost m of the channel, and the corresponding weight is w1,w2,w3Then the evaluation value of the message channel is w1×r1+w2×r2+w3×m。
In this embodiment, since the message has a corresponding type attribute, for example, the short message may be classified into a general short message, a verification code short message, a marketing short message, and the like. When determining the routing index (e.g., sending success rate, reaching power), the routing index may be determined without distinguishing the message type, or the routing index corresponding to each message type may be determined according to the message type, so determining the routing index mainly includes two ways:
the first mode is as follows: and determining the routing index of the corresponding message channel according to the historical messages of all message types. Specifically, the transmission success rate at this time is: the ratio of the number of the historical messages of all message types successfully sent to the message channel to the total number of the historical messages of all message types; accordingly, the trigger power is: the ratio of the number of history messages of all message types successfully reached to the total number of history messages of all message types.
Taking a message as an example, the message comprises three message types of a common message, a verification code message and a marketing message, if 5000 messages are required to be sent by using a message channel A in the past, namely the total quantity of historical messages of all message types is 5000; meanwhile, 4500 messages are successfully sent to the message channel a, and 4100 messages are successfully sent to the corresponding target object by the message channel a, namely 4100 messages are successfully touched. At this time, the historical message number of all message types successfully sent to the message channel is 4500, and the historical message number of all message types successfully reached is 4100, so the sending success rate of the message channel a is 4500/5000 ═ 90%, and the reaching power is 4100/5000 ═ 82%.
The second mode is as follows: the routing indexes corresponding to different message types are respectively determined according to the historical messages of different message types, so that each routing index corresponds to a plurality of items, for example, a plurality of sending success rates exist. At this time, the transmission success rate is: the triggering power is the ratio of the historical message quantity of the certain successfully triggered message type to the historical message total quantity of the message type.
Still using the short message example in the first mode to explain, if 5000 of the historical short messages include three kinds of 1000 common short messages, 2000 verification code short messages and 2000 marketing short messages, and 900 common short messages, 1900 verification code short messages and 1700 marketing short messages (4500 in total) are sent to the message channel a, 800 common short messages, 1800 verification code short messages and 1500 marketing short messages (4100 in total) are successfully touched. In this case, the message channel a includes three sending success rates and three trigger powers, and the three sending success rates are 900/1000-90%, 1900/2000-95%, 1700/2000-85%, the three trigger powers are 800/1000-80%, 1800/2000-90%, and 1500/2000-75%, respectively.
In the embodiment of the present invention, after determining the routing index of the message channel, the weighting process may be performed based on the step B1. In the first method, since the message types are not distinguished, each route index has only one value, and at this time, the route index is processed by a conventional weighting method, which is not described in detail herein.
In the second mode, since the target message to be sent also has a corresponding message type, the evaluation value of the message channel can be determined only according to the route index when the message channel sends the message type. Specifically, the message type of the target message is taken as the current message type, and at this time, only the routing index related to the current message type may be concerned, that is, the sending success rate may be: the ratio of the historical message quantity of the current message type successfully sent to the message channel to the total historical message quantity of the current message type correspondingly achieves the following power: a ratio of the number of history messages of the successfully reached current message type to the total number of history messages of the current message type. After determining the routing index related to the current message type, the evaluation value of the message channel is directly determined.
Still in the above example of sending short messages, if the target message is a verification code short message, the message channel a sends the 5000 short messages together before sending the target message; as can be seen from the above example, the success rate of sending the verification code short message in the message channel is 95%, and the achievement power is 90%, and at this time, the weighting process may be performed based on the success rate of sending 95% and the achievement power of 90%, so as to determine the evaluation value of the message channel a. Currently, if the message channel a is used to send other types of short messages, the evaluation value corresponding to each message type needs to be determined, that is, one message channel may correspond to multiple evaluation values.
Alternatively, in the second mode, the evaluation value of the message channel may be calculated based on the route indexes of all message types. In this case, the step B1 may specifically be:
step B11: determining the weight of each routing index corresponding to each message type, determining the evaluation value of the message channel in a weighted mode according to a plurality of routing indexes corresponding to each message type of the message channel, wherein the evaluation value R of the message channel is as follows:
Figure BDA0002834299390000141
wherein, wijWeight, T, of the jth route index corresponding to the ith message typeijAnd (3) representing a jth item of routing index corresponding to the ith message type, wherein m is the number of the types of the message types, and n is the number of the types of the routing index.
In the embodiment of the invention, each message type can correspond to a plurality of routing indexes, and each routing index can also correspond to a plurality of message types; if the number of types of the message type is m and the number of types of the routing index is n, the number of entries of the finally determined routing index is m × n entries, and similarly, m × n weights need to be determined. In determining all routing indexes TijAnd corresponding weight wijAfter that, the corresponding evaluation value R can be determined.
Wherein the value of each weight may be set in advance. Taking a message as an example, the message types include three types: the routing indexes of the common short message, the verification code short message and the marketing short message are also provided with three types: the sending success rate, the trigger power, and the channel unit price cost may be preset with 9 weights, which may be specifically shown in table 1 below.
TABLE 1
Message type Transmit success rate weight Triggering a power weight Channel unit price cost weight
Ordinary short message w11 w12 w13
Short message of identifying code w21 w22 w23
Marketing short message w31 w32 w33
Alternatively, after determining the evaluation values of all message channels, the message channels may be sorted and the channel arrangement order may be determined, so that the current message channel required for sending the target message is selected. In the step 102, "the message channel with the preset order is used as the current message channel according to the channel arrangement order," may specifically be sorted according to a channel arrangement order, as shown in the following step C1 or step C2; alternatively, the step 102 may select a suitable channel arrangement order for sorting according to actual situations, such as the step C3 or the step C4 described below.
Step C1: and taking the message channel with the preset sequence as the current message channel according to the arrangement sequence of the full message type channels.
Step C2: and taking the message channel with the preset sequence as the current message channel according to the current message type channel arrangement sequence.
In the embodiment of the present invention, the evaluation values corresponding to the messages of all message types sent by the message channels may be calculated according to the first manner, and the order determined based on the evaluation values is the "all message type channel arrangement order". Or, the message type of the target message, that is, the current message type, may be determined first, and then the corresponding evaluation value is determined according to the message of the current message type sent by the message channel in the second manner, and the "current message type channel arrangement order" may be determined after sorting. And then, selecting a preset order message channel from the sequenced message channels as a current message channel.
Step C3: judging whether the evaluation value of the preset order message channel determined according to the arrangement sequence of the all-message type channels is the same as the evaluation values of other message channels, and if so, taking the preset order message channel as the current message channel according to the arrangement sequence of the all-message type channels; and if the current message type channels are the same, taking the message channels with the preset orders as the current message channels according to the current message type channel arrangement sequence.
Step C4: judging whether the evaluation value of the preset order message channel determined according to the arrangement sequence of the current message type channel is the same as the evaluation values of other message channels, and if so, taking the preset order message channel as the current message channel according to the arrangement sequence of the current message type channel; if the information channels are the same, the information channels with the preset orders are used as the current information channels according to the arrangement sequence of the all-information type channels.
In this embodiment, when selecting the current message channel, as shown in step C3, the selection may be preferentially performed according to the arrangement order of the full message type channels, and if the evaluation value of the message channel with the preset order is different from other evaluation values, the message channel with the preset order may be uniquely determined, and at this time, the selection is continuously performed according to the arrangement order of the full message type channels; on the contrary, if the evaluation values of the plurality of message channels are the same, the preset order corresponds to the plurality of message channels, and then the selection can be performed according to the current message type channel arrangement order, so that the only optimal message channel can be selected. Alternatively, the selection may also be performed according to the current message type channel arrangement order in step C4, which is similar to step C3 and is not described herein again.
In the following, a process of the method for sending a short message is described in detail by taking sending a short message as an example. In the embodiment of the present invention, an optimal message channel is selected according to the current message type channel arrangement sequence, as shown in fig. 3, the method includes:
step 301: determining the sending success rate, the trigger power and the channel unit price cost of each message type sent by the message channel, and determining the evaluation value corresponding to each message type of the message channel in a weighting mode.
Step 302: and sorting according to the evaluation values of the plurality of message channels, and determining the channel arrangement sequence corresponding to each message type.
In this embodiment, the message types include three types, namely, a common short message, a verification code short message and a marketing short message, and each message channel corresponds to three evaluation values; meanwhile, the message channels are respectively sequenced according to the evaluation value corresponding to each message type, so that the channel arrangement sequence of the common short messages, the channel arrangement sequence of the verification code short messages and the channel arrangement sequence of the marketing short messages can be determined.
Step 303: and determining a target message to be sent and the current message type.
Wherein, the current message type is the message type of the target message. In this embodiment, a current message type is taken as an example of a verification code message.
Step 304: and according to the channel arrangement sequence of the verification code short messages, taking the first message channel as the current message channel, executing the operation of sending the target message based on the current message channel, and determining the current sending result of the target message.
In this embodiment, if three message channels A, B, C are involved, and the channel arrangement order of the verification code short message is: the message channel A, the message channel B and the message channel C, and at this time, the first message channel A can be used as the current message channel. After the target message is sent, the determined current sending result includes whether the target message is successfully sent to the message channel A or not, and whether the target message fed back by the message channel A is successfully achieved or not, and the sending success rate and the achieving power of the message channel A can be updated according to the two sending results.
Step 305: and judging whether the transmission fails, if so, continuing to step 306, otherwise, ending the process.
In this embodiment, if the target message is not successfully sent to the message channel a, or the message channel a does not enable the target message to successfully reach the target object, it may be considered that the current sending result is a sending failure.
Step 306: and according to the channel arrangement sequence of the verification code short messages, taking the next message channel as the current message channel, executing the operation of sending the target message based on the current message channel determined at the moment, and determining the current sending result of the target message.
In the embodiment of the invention, if the message channel A fails to send, the next message channel, namely the message channel B, is taken as the current message channel to continue to send the target message. Similar to the above-mentioned target message sent by the message channel a, the corresponding current sending result may also be determined at this time, and the current sending result may be used to update the sending success rate and the trigger power of the message channel B.
Step 307: and judging whether the transmission fails, if so, resuming the step 306, and otherwise, ending the process.
In the embodiment of the invention, if the message channel B still fails to send, the next message channel C is continuously taken as the current message channel until the target message is successfully touched to the target object. Meanwhile, the current sending result of the message channel C can also be used to update the sending success rate and the reaching power of the message channel C, so as to update the corresponding evaluation value and the channel arrangement sequence.
In the method for sending a message provided in the embodiment of the present invention, after a current message channel with a preset order is selected based on a channel arrangement order, a target message is sent through the current message channel, and an evaluation value and a channel arrangement order of the current message channel can be updated based on a corresponding current sending result. For any target message, the method can select the message channel with the optimal performance to send the target message, and the message sending effect is good; meanwhile, the preset message channel can be effectively ensured to be optimal by updating the channel arrangement sequence, so that the optimal message channel can be conveniently selected when the message is sent subsequently, and the sustainability of selecting the optimal message channel can be ensured. And only the message channel with the optimal performance is used for sending the message, so that the provider of the message channel can be forced to improve the performance of the message channel, and the condition of message sending failure can be reduced to a certain extent. The next message channel is sequentially used as the current message channel to send the target message in sequence by repeatedly executing the message sending process, so that the target message can be successfully sent as far as possible; meanwhile, the evaluation value of the corresponding current message channel can be updated by the current message channel determined in each message sending process, if the subsequent message channel successfully sends the target message, the evaluation value is higher, the message channel can be more favorably arranged forwards in the channel arrangement sequence, and therefore the optimal message channel can be more quickly adjusted to the preset order.
The above describes in detail the flow of a method for sending a message, which may also be implemented by a corresponding device, and the structure and function of the device are described in detail below.
An apparatus for sending a message according to an embodiment of the present invention, shown in fig. 4, includes:
a determining module 41, configured to determine a target message to be sent;
a sending module 42, configured to use a preset-order message channel as a current message channel according to a channel arrangement order, and execute an operation of sending the target message based on the current message channel, where the channel arrangement order is determined after ranking according to an evaluation value of the message channel;
a result processing module 43, configured to determine a current sending result of sending the target message, where the current sending result is used to update the evaluation value of the current message channel, and to re-determine the channel arrangement order.
On the basis of the above embodiment, the apparatus further includes a cyclic transmission module;
after the result processing module 43 determines to send the current sending result of the target message, the loop sending module is configured to: if the current sending result is sending failure, the process of sending the message is repeatedly executed until the current sending result is sending success or all message channels are traversed;
the message sending process comprises the following steps: and taking the next message channel as the current message channel according to the channel arrangement sequence, executing the operation of sending the target message based on the current message channel, and determining the current sending result of sending the target message.
On the basis of the foregoing embodiment, the sending module 42, taking the message channel with the preset order as the current message channel according to the channel arrangement order, includes:
taking the message channel with the preset sequence as the current message channel according to the arrangement sequence of the full message type channels or the arrangement sequence of the current message type channels;
or if the evaluation value of the preset consequent message channel determined according to the arrangement sequence of the all-message type channels is the same as the evaluation values of other message channels, taking the preset consequent message channel as the current message channel according to the arrangement sequence of the current message type channels;
wherein, the arrangement sequence of the full message type channels is as follows: ordering according to evaluation values determined by sending messages of all message types through a message channel, and determining the order; the current message type channel arrangement sequence is as follows: and sequencing the evaluation values determined by the messages of the current message type sent by the message channel, wherein the current message type is the message type of the target message.
On the basis of the above embodiment, the apparatus further comprises a sorting module;
before the sending module 42 takes the message channel with the preset order as the current message channel according to the channel arrangement order, and/or after the result processing module 43 determines to send the current sending result of the target message, the sorting module is configured to:
determining an evaluation value of a message channel according to a historical sending result of sending a historical message by the message channel, wherein the historical message is a message sent by the message channel before the current time point;
and sorting according to the evaluation values of the message channels, and determining the channel arrangement sequence of the message channels.
On the basis of the above embodiment, the evaluation value includes a proportional form of the route index, and the current transmission result is used to update the numerator and denominator of the proportional form of the route index.
On the basis of the foregoing embodiment, the determining, by the ranking module, the evaluation value of the message channel according to the historical transmission result of the message channel transmission history message includes:
determining multiple routing indexes in the sending success rate, the triggering success rate and the channel unit price cost of the message channel according to the historical sending result of the historical message sent by the message channel; the history sending result comprises whether the history message is successfully sent to the message channel or not and whether the history message fed back by the message channel is successfully reached or not; the sending success rate is the ratio of the number of the history messages successfully sent to the message channel to the total number of the history messages, and the triggering success rate is the ratio of the number of the history messages successfully triggered to the total number of the history messages;
and determining the evaluation value of the message channel according to the multiple routing indexes of the message channel.
On the basis of the foregoing embodiment, the determining, by the ranking module, the evaluation value of the message channel according to the multiple routing indexes of the message channel includes:
determining the weight of each routing index, and determining the evaluation value of the message channel in a weighted mode according to a plurality of routing indexes of the message channel;
the sending success rate is the ratio of the number of the historical messages of all the message types successfully sent to the message channel to the total number of the historical messages of all the message types, and the triggering power is the ratio of the number of the historical messages of all the message types successfully triggered to the total number of the historical messages of all the message types; or the sending success rate is the ratio of the number of the historical messages of the current message type successfully sent to the message channel to the total number of the historical messages of the current message type, and the triggering power is the ratio of the number of the historical messages of the current message type successfully triggered to the total number of the historical messages of the current message type; wherein the current message type is the message type of the target message;
or, determining a weight of each routing index corresponding to each message type, and determining an evaluation value of the message channel in a weighted manner according to a plurality of routing indexes corresponding to each message type of the message channel, where the evaluation value R of the message channel is:
Figure BDA0002834299390000201
wherein, wijWeight, T, of the jth route index corresponding to the ith message typeijAnd (3) representing a jth item of routing index corresponding to the ith message type, wherein m is the number of the types of the message types, and n is the number of the types of the routing index.
In the device for sending a message provided in the embodiment of the present invention, after a current message channel with a preset order is selected based on a channel arrangement order, a target message is sent through the current message channel, and an evaluation value and a channel arrangement order of the current message channel may be updated based on a corresponding current sending result. For any target message, the device can select a message channel with optimal performance to send the target message, and the message sending effect is good; meanwhile, the preset message channel can be effectively ensured to be optimal by updating the channel arrangement sequence, so that the optimal message channel can be conveniently selected when the message is sent subsequently, and the sustainability of selecting the optimal message channel can be ensured. And only the message channel with the optimal performance is used for sending the message, so that the provider of the message channel can be forced to improve the performance of the message channel, and the condition of message sending failure can be reduced to a certain extent. The next message channel is sequentially used as the current message channel to send the target message in sequence by repeatedly executing the message sending process, so that the target message can be successfully sent as far as possible; meanwhile, the evaluation value of the corresponding current message channel can be updated by the current message channel determined in each message sending process, if the subsequent message channel successfully sends the target message, the evaluation value is higher, the message channel can be more favorably arranged forwards in the channel arrangement sequence, and therefore the optimal message channel can be more quickly adjusted to the preset order.
Embodiments of the present invention further provide a computer storage medium, where the computer storage medium stores computer-executable instructions, which include a program for executing the above method for sending a message, and the computer-executable instructions may execute the method in any of the above method embodiments.
The computer storage media may be any available media or data storage device that can be accessed by a computer, including but not limited to magnetic memory (e.g., floppy disks, hard disks, magnetic tape, magneto-optical disks (MOs), etc.), optical memory (e.g., CDs, DVDs, BDs, HVDs, etc.), and semiconductor memory (e.g., ROMs, EPROMs, EEPROMs, non-volatile memory (NAND FLASH), Solid State Disks (SSDs)), etc.
Fig. 5 shows a block diagram of an electronic device according to another embodiment of the present invention. The electronic device 1100 may be a host server with computing capabilities, a personal computer PC, or a portable computer or terminal that is portable, or the like. The specific embodiment of the present invention does not limit the specific implementation of the electronic device.
The electronic device 1100 includes at least one processor (processor)1110, a Communications Interface 1120, a memory 1130, and a bus 1140. The processor 1110, the communication interface 1120, and the memory 1130 communicate with each other via the bus 1140.
The communication interface 1120 is used for communicating with network elements including, for example, virtual machine management centers, shared storage, etc.
Processor 1110 is configured to execute programs. Processor 1110 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement embodiments of the present invention.
The memory 1130 is used for executable instructions. The memory 1130 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 1130 may also be a memory array. The storage 1130 may also be partitioned and the blocks may be combined into virtual volumes according to certain rules. The instructions stored by the memory 1130 are executable by the processor 1110 to enable the processor 1110 to perform a method of transmitting a message in any of the method embodiments described above.
In the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts in the embodiments are referred to each other. For the system embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The method and system of the present invention may be implemented in a number of ways. For example, the methods and systems of the present invention may be implemented in software, hardware, firmware, or any combination of software, hardware, and firmware. The above-described order for the steps of the method is for illustrative purposes only, and the steps of the method of the present invention are not limited to the order specifically described above unless specifically indicated otherwise. Furthermore, in some embodiments, the present invention may also be embodied as a program recorded in a recording medium, the program including machine-readable instructions for implementing a method according to the present invention. Thus, the present invention also covers a recording medium storing a program for executing the method according to the present invention, as described in detail above.
The description of the present invention has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to practitioners skilled in this art. The embodiment was chosen and described in order to best explain the principles of the invention and the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.

Claims (10)

1. A method of sending a message, comprising:
determining a target message to be sent;
taking a preset-order message channel as a current message channel according to a channel arrangement sequence, and executing the operation of sending the target message based on the current message channel, wherein the channel arrangement sequence is determined after sequencing according to evaluation values of the message channels;
and determining a current sending result of the target message, wherein the current sending result is used for updating the evaluation value of the current message channel and re-determining the channel arrangement sequence.
2. The method of claim 1, further comprising, after the determining a current transmission result for transmitting the target message:
if the current sending result is sending failure, the process of sending the message is repeatedly executed until the current sending result is sending success or all message channels are traversed;
the message sending process comprises the following steps: and taking the next message channel as the current message channel according to the channel arrangement sequence, executing the operation of sending the target message based on the current message channel, and determining the current sending result of sending the target message.
3. The method according to claim 1, wherein the using the message channel with the preset order as the current message channel according to the channel arrangement order comprises:
taking the message channel with the preset sequence as the current message channel according to the arrangement sequence of the full message type channels; or
Taking the message channel with the preset sequence as a current message channel according to the current message type channel arrangement sequence;
wherein, the arrangement sequence of the full message type channels is as follows: ordering according to evaluation values determined by sending messages of all message types through a message channel, and determining the order; the current message type channel arrangement sequence is as follows: and sequencing the evaluation values determined by the messages of the current message type sent by the message channel, wherein the current message type is the message type of the target message.
4. The method according to claim 1, wherein the using the message channel with the preset order as the current message channel according to the channel arrangement order comprises:
judging whether the evaluation value of the preset order message channel determined according to the arrangement sequence of the all-message type channels is the same as the evaluation values of other message channels, and if so, taking the preset order message channel as the current message channel according to the arrangement sequence of the all-message type channels; if the current message type channels are the same, taking the message channels with the preset orders as the current message channels according to the current message type channel arrangement sequence; or
Judging whether the evaluation value of the preset order message channel determined according to the arrangement sequence of the current message type channel is the same as the evaluation values of other message channels, and if so, taking the preset order message channel as the current message channel according to the arrangement sequence of the current message type channel; if the current message channel is the same as the current message channel, the message channel with the preset sequence is taken as the current message channel according to the arrangement sequence of the all-message type channels;
wherein, the arrangement sequence of the full message type channels is as follows: ordering according to evaluation values determined by sending messages of all message types through a message channel, and determining the order; the current message type channel arrangement sequence is as follows: and sequencing the evaluation values determined by the messages of the current message type sent by the message channel, wherein the current message type is the message type of the target message.
5. The method according to any one of claims 1 to 4, wherein before the message channel with a preset order is taken as a current message channel according to the channel arrangement order, and/or after the current sending result of the target message is determined to be sent, the method further comprises:
determining an evaluation value of a message channel according to a historical sending result of sending a historical message by the message channel, wherein the historical message is a message sent by the message channel before the current time point;
and sorting according to the evaluation values of the message channels, and determining the channel arrangement sequence of the message channels.
6. The method of claim 5, wherein the evaluation value comprises a proportional form of the route index, and wherein the current transmission result is used to update a numerator and a denominator of the proportional form of the route index.
7. The method of claim 6, wherein determining the evaluation value of the message channel according to the historical transmission result of the message channel transmission history comprises:
determining multiple routing indexes in the sending success rate, the triggering success rate and the channel unit price cost of the message channel according to the historical sending result of the historical message sent by the message channel; the history sending result comprises whether the history message is successfully sent to the message channel or not and whether the history message fed back by the message channel is successfully reached or not; the sending success rate is the ratio of the number of the history messages successfully sent to the message channel to the total number of the history messages, and the triggering success rate is the ratio of the number of the history messages successfully triggered to the total number of the history messages;
determining an evaluation value of the message channel according to the multiple routing indexes of the message channel;
preferably, the determining the evaluation value of the message channel according to the multiple routing indexes of the message channel includes:
determining the weight of each routing index, and determining the evaluation value of the message channel in a weighted mode according to a plurality of routing indexes of the message channel;
the sending success rate is the ratio of the number of the historical messages of all the message types successfully sent to the message channel to the total number of the historical messages of all the message types, and the triggering power is the ratio of the number of the historical messages of all the message types successfully triggered to the total number of the historical messages of all the message types; or the sending success rate is the ratio of the number of the historical messages of the current message type successfully sent to the message channel to the total number of the historical messages of the current message type, and the triggering power is the ratio of the number of the historical messages of the current message type successfully triggered to the total number of the historical messages of the current message type; wherein the current message type is the message type of the target message;
or, determining a weight of each routing index corresponding to each message type, and determining an evaluation value of the message channel in a weighted manner according to a plurality of routing indexes corresponding to each message type of the message channel, where the evaluation value R of the message channel is:
Figure FDA0002834299380000031
wherein, wijWeight, T, of the jth route index corresponding to the ith message typeijAnd (3) representing a jth item of routing index corresponding to the ith message type, wherein m is the number of the types of the message types, and n is the number of the types of the routing index.
8. An apparatus for sending a message, comprising:
the determining module is used for determining a target message to be sent;
a sending module, configured to use a preset-order message channel as a current message channel according to a channel arrangement order, and execute an operation of sending the target message based on the current message channel, where the channel arrangement order is determined after ranking according to evaluation values of the message channels;
and the result processing module is used for determining the current sending result of the target message, updating the evaluation value of the current message channel and re-determining the channel arrangement sequence.
9. A computer storage medium having stored thereon computer-executable instructions for performing the method of sending a message of any one of claims 1-7.
10. An electronic device, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of sending a message of any one of claims 1-7.
CN202011466208.4A 2020-12-14 2020-12-14 Method, device, storage medium and electronic equipment for sending message Pending CN112654003A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011466208.4A CN112654003A (en) 2020-12-14 2020-12-14 Method, device, storage medium and electronic equipment for sending message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011466208.4A CN112654003A (en) 2020-12-14 2020-12-14 Method, device, storage medium and electronic equipment for sending message

Publications (1)

Publication Number Publication Date
CN112654003A true CN112654003A (en) 2021-04-13

Family

ID=75353954

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011466208.4A Pending CN112654003A (en) 2020-12-14 2020-12-14 Method, device, storage medium and electronic equipment for sending message

Country Status (1)

Country Link
CN (1) CN112654003A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113923609A (en) * 2021-09-28 2022-01-11 度小满科技(北京)有限公司 Short message distribution method and device based on multiple short message channels and electronic equipment
CN114466321A (en) * 2022-01-18 2022-05-10 北京快乐茄信息技术有限公司 Message sending method and device, electronic equipment and storage medium
CN114827194A (en) * 2022-03-25 2022-07-29 青岛海尔科技有限公司 Method and apparatus for transmitting execution result, storage medium, and electronic apparatus
CN115226050A (en) * 2022-06-22 2022-10-21 百果园技术(新加坡)有限公司 Flow distribution method, flow distribution device, flow distribution equipment, storage medium and program product

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102364967A (en) * 2011-11-21 2012-02-29 携程计算机技术(上海)有限公司 Short message transmission method and system
CN106028299A (en) * 2016-06-30 2016-10-12 上海斐讯数据通信技术有限公司 Method and system for selecting short message transmitting channel
CN106255080A (en) * 2016-09-27 2016-12-21 上海斐讯数据通信技术有限公司 The sending method of note and system
CN108307331A (en) * 2018-01-17 2018-07-20 深圳市和讯华谷信息技术有限公司 Note transmission method, terminal and computer readable storage medium
CN109168135A (en) * 2018-11-09 2019-01-08 上海银赛计算机科技有限公司 Selection method, device, SMS platform and the storage medium of short message sendaisle
CN110267214A (en) * 2019-05-16 2019-09-20 厦门网宿有限公司 A kind of note transmission method, server and storage medium
CN110365605A (en) * 2019-06-28 2019-10-22 浙江吉利控股集团有限公司 A kind of message method, device, equipment and storage medium
CN110445844A (en) * 2019-07-12 2019-11-12 中国平安人寿保险股份有限公司 Short message multi-center selection method and device, storage medium, electronic equipment
CN110611891A (en) * 2019-08-29 2019-12-24 深圳市梦网科技发展有限公司 Short message sending method and device
CN111182482A (en) * 2020-03-17 2020-05-19 深圳市朱墨科技有限公司 Short message distribution method, device, storage medium and short message platform
CN112004202A (en) * 2020-10-29 2020-11-27 北京淇瑀信息科技有限公司 Short message channel routing method and device and electronic equipment

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102364967A (en) * 2011-11-21 2012-02-29 携程计算机技术(上海)有限公司 Short message transmission method and system
CN106028299A (en) * 2016-06-30 2016-10-12 上海斐讯数据通信技术有限公司 Method and system for selecting short message transmitting channel
CN106255080A (en) * 2016-09-27 2016-12-21 上海斐讯数据通信技术有限公司 The sending method of note and system
CN108307331A (en) * 2018-01-17 2018-07-20 深圳市和讯华谷信息技术有限公司 Note transmission method, terminal and computer readable storage medium
CN109168135A (en) * 2018-11-09 2019-01-08 上海银赛计算机科技有限公司 Selection method, device, SMS platform and the storage medium of short message sendaisle
CN110267214A (en) * 2019-05-16 2019-09-20 厦门网宿有限公司 A kind of note transmission method, server and storage medium
CN110365605A (en) * 2019-06-28 2019-10-22 浙江吉利控股集团有限公司 A kind of message method, device, equipment and storage medium
CN110445844A (en) * 2019-07-12 2019-11-12 中国平安人寿保险股份有限公司 Short message multi-center selection method and device, storage medium, electronic equipment
CN110611891A (en) * 2019-08-29 2019-12-24 深圳市梦网科技发展有限公司 Short message sending method and device
CN111182482A (en) * 2020-03-17 2020-05-19 深圳市朱墨科技有限公司 Short message distribution method, device, storage medium and short message platform
CN112004202A (en) * 2020-10-29 2020-11-27 北京淇瑀信息科技有限公司 Short message channel routing method and device and electronic equipment

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113923609A (en) * 2021-09-28 2022-01-11 度小满科技(北京)有限公司 Short message distribution method and device based on multiple short message channels and electronic equipment
CN114466321A (en) * 2022-01-18 2022-05-10 北京快乐茄信息技术有限公司 Message sending method and device, electronic equipment and storage medium
CN114466321B (en) * 2022-01-18 2024-02-23 北京快乐茄信息技术有限公司 Message sending method and device, electronic equipment and storage medium
CN114827194A (en) * 2022-03-25 2022-07-29 青岛海尔科技有限公司 Method and apparatus for transmitting execution result, storage medium, and electronic apparatus
CN114827194B (en) * 2022-03-25 2024-03-22 青岛海尔科技有限公司 Method and device for sending execution result, storage medium and electronic device
CN115226050A (en) * 2022-06-22 2022-10-21 百果园技术(新加坡)有限公司 Flow distribution method, flow distribution device, flow distribution equipment, storage medium and program product
CN115226050B (en) * 2022-06-22 2024-04-19 百果园技术(新加坡)有限公司 Traffic distribution method, traffic distribution device, traffic distribution apparatus, traffic distribution storage medium, and traffic distribution program product

Similar Documents

Publication Publication Date Title
CN112654003A (en) Method, device, storage medium and electronic equipment for sending message
US10225145B2 (en) Method and device for updating client
JP2019522386A5 (en)
CN109327542B (en) Game service access response method, request forwarding method, connection method and device
CN107404541B (en) Method and system for selecting neighbor node in peer-to-peer network transmission
CN103929492A (en) Method, devices and system for load balancing of service chain
WO2014194642A1 (en) Systems and methods for matching users
CN102724105B (en) A kind of load-balancing method and device
CN105791381A (en) Access control method and apparatus
CN104104475A (en) Response signal generation method, receiving method and device
CN111431730A (en) Service processing method, system, computer equipment and readable medium
CN110650209A (en) Method and device for realizing load balance
US20150188866A1 (en) Message focusing
CN110048899A (en) A kind of log detection method, device, terminal and server
CN112104989B (en) Short message sending method and device, electronic equipment and computer readable storage medium
CN111629074B (en) Session sequencing method and device of gateway equipment
CN103067465A (en) File sharing method and system
CN112445873A (en) List display processing method, related device, equipment and medium
CN112825045B (en) Payment request processing method, system and storage medium
CN109582829A (en) A kind of processing method, device, equipment and readable storage medium storing program for executing
CN103795788A (en) Load balancing method of instant messaging server and load balancing server
JP2007281783A (en) Communication control method, and communication control unit
US20120102086A1 (en) Processing node selection system, information processing node, processing execution method and program
US9647966B2 (en) Device, method and non-transitory computer readable storage medium for performing instant message communication
CN107528884B (en) User request processing method and device of aggregation server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210413