CN110582064A - Short message distribution method, device, equipment and medium - Google Patents

Short message distribution method, device, equipment and medium Download PDF

Info

Publication number
CN110582064A
CN110582064A CN201911045291.5A CN201911045291A CN110582064A CN 110582064 A CN110582064 A CN 110582064A CN 201911045291 A CN201911045291 A CN 201911045291A CN 110582064 A CN110582064 A CN 110582064A
Authority
CN
China
Prior art keywords
short message
service provider
message service
operator
score
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.)
Granted
Application number
CN201911045291.5A
Other languages
Chinese (zh)
Other versions
CN110582064B (en
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.)
Hangzhou Shupao Technology Co Ltd
Original Assignee
Hangzhou Shupao Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Shupao Technology Co Ltd filed Critical Hangzhou Shupao Technology Co Ltd
Priority to CN201911045291.5A priority Critical patent/CN110582064B/en
Publication of CN110582064A publication Critical patent/CN110582064A/en
Application granted granted Critical
Publication of CN110582064B publication Critical patent/CN110582064B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • 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
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/50Service provisioning or reconfiguring

Abstract

the application discloses a short message distribution method, a device, equipment and a medium, wherein the method comprises the following steps: acquiring short message batch sending tasks; dividing the short message batch sending task into different target short message batch sending tasks according to the operator to which the number belongs; and distributing the target short message batch sending task corresponding to the operator to a corresponding short message service provider according to a pre-obtained distribution proportion so as to execute the target short message batch sending task through the short message service provider. Therefore, the method and the device can distribute the short message batch sending tasks to different short message service providers by utilizing the distribution proportion obtained in advance according to the actual conditions of the short message service providers, and quickly finish the short message batch sending tasks in a mode of sending different numbers of short messages by different short message service providers, so that the sending of large batches of short messages can be finished in a short time, the success rate and the efficiency of sending the short messages are improved, and the short message sending cost is reduced.

Description

Short message distribution method, device, equipment and medium
Technical Field
The present application relates to the field of short message sending technologies, and in particular, to a method, an apparatus, a device, and a medium for distributing short messages.
Background
the short message is used as a traditional main marketing channel, and most merchants can choose to send the short message to users during sales promotion so as to increase the commodity sales volume. When a large batch of short messages need to be sent at one time, situations of waiting in a queue, system breakdown and the like easily occur, and thus business opportunities are lost.
in the prior art, three main methods are used to improve the efficiency and success rate of sending short messages. The first is that the short message service provider is completely relied on to send all short messages to improve the success rate of sending the short messages, which can cause the short message service provider to have too high load, cause the short message sending efficiency to be low and easily cause the short message sending system to be broken down; secondly, short messages are directly and evenly sent to the butted short message service providers, the actual situation of each short message service provider is ignored, the short message sending efficiency and the success rate are not high, and the cost is too high; thirdly, the short messages are divided into different batches and sent in different time periods, which results in overlong time consumption and loss of business opportunities.
Disclosure of Invention
in view of this, an object of the present application is to provide a method, an apparatus, a device, and a medium for distributing short messages, which can quickly complete sending of short messages in large quantities, improve the success rate and efficiency of sending short messages, and reduce the cost of sending short messages. The specific scheme is as follows:
in a first aspect, the present application discloses a short message distribution method, including:
acquiring short message batch sending tasks;
Dividing the short message batch sending task into different target short message batch sending tasks according to the operator to which the number belongs;
And distributing the target short message batch sending task corresponding to the operator to a corresponding short message service provider according to a pre-obtained distribution proportion so as to execute the target short message batch sending task through the short message service provider.
Optionally, after acquiring the batch short message sending task, the method further includes:
And determining the distribution proportion of each short message service provider under each operator by using the pre-acquired index data.
Optionally, before determining the allocation proportion of each short message service provider under each operator by using the pre-acquired index data, the method further includes:
acquiring historical average network delay and current average network delay of each short message service provider;
Acquiring historical average short message delivery delay, current average short message delivery delay, short message delivery success rate and unit time throughput of each short message service provider under each operator;
And storing the historical average network delay, the current average network delay, the historical average short message delivery delay, the current average short message delivery delay, the short message delivery success rate and the unit time throughput to obtain index data corresponding to each short message service provider.
optionally, the obtaining of the historical average network delay and the current average network delay of any short message service provider includes:
initiating a connection request from a network layer to a gateway of the short message service provider according to a first preset time interval, and recording the delay of responding to the connection request;
determining the average value of the delay within a first preset time range to obtain the historical average network delay of the short message service provider;
And determining the average value of the delay within a second preset time range to obtain the current average network delay of the short message service provider.
optionally, the obtaining of the historical average short message delivery delay, the current average short message delivery delay, the short message delivery success rate and the unit time throughput of any short message service provider under any operator includes:
Sending a test request to a test number belonging to the operator under the short message service provider according to a second preset time interval, and recording the time difference from the sending of the test request to the successful receiving of the corresponding short message by the test number;
determining the average value of the time difference within a third preset time range to obtain the historical average short message delivery delay of the short message service provider under the operator;
Determining the average value of the time differences within a fourth preset time range to obtain the current average short message delivery delay of the short message service provider under the operator;
And monitoring the short message sending behavior of the short message service provider under the operator to obtain the short message sending success rate and the unit time throughput of the short message service provider under the operator.
Optionally, the determining, by using the pre-obtained index data, the allocation proportion of each short message service provider under each operator includes:
corresponding the historical average network delay, the current average network delay, the historical average short message delivery delay, the current average short message delivery delay and the short message delivery success rate to corresponding grades in sequence according to a preset rule to obtain corresponding grade scores;
Determining a first score of each short message service provider under each operator by using a first preset formula and the grade scores;
Determining the distribution proportion of each short message service provider under each operator by using the first score;
Wherein the first preset formula is as follows:
Aij=(Xi-1×a1+Yij-1×a2+Zij×a3)×b1+(Xi-2×a1+Yij-2×a2+Mi×a4)×b2
AijRepresents a first score, X, of the short message service provider i under the operator ji-1representing the historical average network delay level score, Y, of the SMS provider iij-1represents the historical average short message delivery delay grade score, Z, of the short message service provider i under the operator jijRepresents the short message service provider i in the operator j to reach the success rate grade score, Xi-2current average network delay level score, Y, of the SMS facilitator iij-2Represents the current average short message delivery delay grade score, M, of the short message service provider i under the operator jiShowing the charge rate of the short message service provider i, a1、a2、a3、a4Representing a predetermined coefficient, b1representing historical weights, b2Representing the current weight.
optionally, before determining the first score of each short message service provider under each operator by using the first preset formula and the grade score, the method further includes:
Detecting first class short message sending strategy information;
and if the first type of short message sending strategy information is detected, determining a first score of each short message service provider under each operator according to the first type of short message sending strategy information.
Optionally, after determining the first score of each short message service provider under each operator by using the first preset formula and the grade score, the method further includes:
Judging whether the first score value is smaller than a preset score threshold value or not;
If yes, the corresponding short message service provider is removed, and an available short message service provider is obtained.
optionally, after determining the first score of each short message service provider under each operator by using a preset formula and the grade score, the method further includes:
detecting second type short message sending strategy information;
If the second type of short message sending strategy information is detected, determining a second score of each short message service provider under each operator by using a second preset formula and the first score;
If the second type of short message sending strategy information is not detected, taking the first score as a second score;
wherein the second preset formula is as follows: b isij=Aij×wi
BijRepresents the second score, w, of the SMS provider i under the operator jiAnd manual adjustment factors of the short message service provider i.
Optionally, the distributing the target short message batch sending task corresponding to each operator to a corresponding short message service provider according to a pre-obtained distribution ratio, so as to execute the target short message batch sending task by the short message service provider, further includes:
And dividing the target short message batch sending tasks corresponding to the short message service providers under the operators into different target short message batch sending subtasks by using the unit time throughput.
In a second aspect, the present application discloses a short message distribution apparatus, including:
the task acquisition module is used for acquiring short message batch sending tasks;
the first task allocation module is used for dividing the short message batch sending task into different target short message batch sending tasks according to the number of the operator;
and the second task allocation module is used for distributing the target short message batch sending tasks corresponding to the operators to corresponding short message service providers according to a pre-obtained allocation proportion so as to execute the target short message batch sending tasks through the short message service providers.
in a third aspect, the present application discloses a short message distribution device, including:
a memory and a processor;
wherein the memory is used for storing a computer program;
The processor is configured to execute the computer program to implement the short message distribution method disclosed above.
in a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the short message distribution method disclosed in the foregoing.
Therefore, after the short message batch sending task is obtained, the short message batch sending task is divided into different target short message batch sending tasks according to the number of the operator, and the target short message batch sending tasks corresponding to the operator are distributed to corresponding short message service providers according to the pre-obtained distribution proportion so as to execute the target short message batch sending tasks through the short message service providers. Therefore, the distribution proportion obtained according to the actual conditions of the short message service providers in advance is utilized to distribute the short message batch sending tasks to different short message service providers, and the short message batch sending tasks are quickly completed in a mode of sending different numbers of short messages by different short message service providers, so that the distribution of large batches of short messages can be completed in a short time, the success rate and the efficiency of short message sending are improved, and the short message sending cost is reduced.
drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
fig. 1 is a flowchart of a short message delivery method disclosed in the present application;
fig. 2 is a flowchart of a specific short message delivery method disclosed in the present application;
Fig. 3 is a flowchart of a specific allocation ratio determination method disclosed in the present application;
Fig. 4 is a flowchart of a specific short message delivery method disclosed in the present application;
Fig. 5 is a schematic structural diagram of a short message distribution device disclosed in the present application;
Fig. 6 is a structural diagram of a short message distribution device disclosed in the present application.
Detailed Description
the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of 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.
at present, three main methods for improving the efficiency and success rate of sending short messages are available. The first is that the short message service provider is completely relied on to send all short messages to improve the success rate of sending the short messages, which can cause the short message service provider to have too high load, cause the short message sending efficiency to be low and easily cause the short message sending system to be broken down; secondly, short messages are directly and evenly sent to the butted short message service providers, the actual situation of each short message service provider is ignored, the short message sending efficiency and the success rate are not high, and the cost is too high; thirdly, the short messages are divided into different batches and sent in different time periods, which results in overlong time consumption and loss of business opportunities. In view of this, the present application provides a short message distribution method, which can quickly complete the sending of short messages in large quantities, improve the success rate and efficiency of sending short messages, and reduce the cost of sending short messages.
The embodiment of the application discloses a short message distribution method, which is shown in figure 1 and comprises the following steps:
Step S11: and acquiring a short message batch sending task.
It can be understood that before the corresponding short message distribution task is performed, the short message batch sending task needs to be acquired first, the number corresponding to the short message batch sending task that needs to be executed is acquired, and the object that needs to send the short message is determined.
Step S12: and dividing the short message batch sending task into different target short message batch sending tasks according to the operator to which the number belongs.
in this embodiment, after the short message batch sending task is obtained, all numbers corresponding to the short message batch sending task generally belong to different operators, and different numbers need to be docked with corresponding operators to distribute short messages, so that the short message batch sending task needs to be divided into different target short message batch sending tasks according to the operators to which the numbers belong.
step S13: and distributing the target short message batch sending task corresponding to the operator to a corresponding short message service provider according to a pre-obtained distribution proportion so as to execute the target short message batch sending task through the short message service provider.
It can be understood that each operator corresponds to a plurality of short message service providers, and the same short message service provider can also be connected to a plurality of different operators, the actual situations of short message carrying capacity and the like of the short message service provider corresponding to the same operator are different, and the actual situations of short message delivery delay and the like of the same short message service provider under different operators are also different, so that the distribution proportion of each short message service provider under each operator needs to be obtained, and then the target short message batch sending task corresponding to each operator is distributed to the corresponding short message service provider by using the distribution proportion, so that the short message batch sending task is completed quickly, efficiently and at low rate by the short message service provider.
Therefore, after the short message batch sending task is obtained, the short message batch sending task is divided into different target short message batch sending tasks according to the number of the operator, and the target short message batch sending tasks corresponding to the operator are distributed to corresponding short message service providers according to the pre-obtained distribution proportion so as to execute the target short message batch sending tasks through the short message service providers. Therefore, the distribution proportion obtained according to the actual situation of each short message service provider in advance is utilized to distribute the short message batch sending tasks to different short message service providers, and the short message batch sending tasks are quickly completed in a mode that different short message service providers distribute different amounts of short messages, so that the sending of large batches of short messages can be completed in a short time, the success rate and the efficiency of short message sending are improved, and the short message sending cost is reduced.
Referring to fig. 2, an embodiment of the present application discloses a specific short message distribution method, including:
Step S21: and acquiring historical average network delay and current average network delay of each short message service provider.
in this embodiment, the distribution proportion of each short message service provider under each operator needs to be obtained, so that the relevant index data of each short message service provider needs to be obtained first, and then the distribution proportion is determined by using the index data. Acquiring historical average network delay and current average network delay of any short message service provider, wherein the acquisition comprises the following steps: initiating a connection request from a network layer to a gateway of the short message service provider according to a first preset time interval, and recording the delay of responding to the connection request; determining the average value of the delay within a first preset time range to obtain the historical average network delay of the short message service provider; and determining the average value of the delay within a second preset time range to obtain the current average network delay of the short message service provider. Specifically, according to a first preset time interval, initiating a connection request from a network layer to a gateway of the short message service provider, and recording the delay of the response of the connection request; determining the average value of the delay in a first time range to obtain the historical average network delay of the short message service provider; then determining the average value of the delay within a second preset time range to obtain the current average network delay of the short message service provider; wherein the first predetermined time range is generally greater than the second predetermined time range, for example, the first predetermined time range is the last year and the second predetermined time range is the last month.
Step S22: and acquiring historical average short message delivery delay, current average short message delivery delay, short message delivery success rate and unit time throughput of each short message service provider under each operator.
In this embodiment, obtaining the historical average short message delivery delay, the current average short message delivery delay, the short message delivery success rate, and the unit time throughput of any short message service provider under any operator includes: sending a test request to a test number belonging to the operator under the short message service provider according to a second preset time interval, and recording the time difference from the sending of the test request to the successful receiving of the corresponding short message by the test number; determining the average value of the time difference within a third preset time range to obtain the historical average short message delivery delay of the short message service provider under the operator; determining the average value of the time differences within a fourth preset time range to obtain the current average short message delivery delay of the short message service provider under the operator; and monitoring the short message sending behavior of the short message service provider under the operator to obtain the short message sending success rate and the unit time throughput of the short message service provider under the operator. Specifically, according to a second preset time interval, sending a test request to a test number belonging to any operator under any short message service provider, and recording a time difference from the sending of the test request to the successful receiving of a corresponding short message by the test number; determining the average value of the time difference within a third preset time range to obtain the historical average short message delivery delay of the short message service provider under the operator; determining the average value of the time differences within a fourth preset time range to obtain the current average short message delivery delay of the short message service provider under the operator; wherein the third predetermined time range is generally larger than the fourth predetermined time range, for example, the first predetermined time range is the last year and the second predetermined time range is the last quarter. The first preset time interval and the second preset time interval may be the same preset time interval. And monitoring each short message sending behavior of any short message service provider under any operator to obtain the unit time throughput and the short message sending success rate of the short message service provider under the operator, wherein the unit time throughput is the short message number of successful delivery in unit time. And when the number of the test numbers is more than 1, respectively averaging the historical average short message delivery delay and the current average short message delivery delay of each test number under the short message service provider to obtain the historical average short message delivery delay and the current average short message delivery delay of the short message service provider under the operator.
Step S23: and storing the historical average network delay, the current average network delay, the historical average short message delivery delay, the current average short message delivery delay, the short message delivery success rate and the unit time throughput to obtain index data corresponding to each short message service provider.
It can be understood that after the index data including the historical average network delay, the current average network delay, the historical average short message delivery delay, the current average short message delivery delay, the short message delivery success rate and the unit time throughput are acquired, the index data are stored in a preset storage space, corresponding updating is performed after new index data are acquired each time, and after a short message batch sending task is acquired, the index data are used to determine a corresponding distribution ratio.
Step S24: and acquiring a short message batch sending task.
step S25: and dividing the short message batch sending task into different target short message batch sending tasks according to the operator to which the number belongs.
Step S26: and determining the distribution proportion of each short message service provider under each operator by using the index data.
In this embodiment, the determining, by using the index data, the allocation proportion of each short message service provider under each operator includes: corresponding the historical average network delay, the current average network delay, the historical average short message delivery delay, the current average short message delivery delay and the short message delivery success rate to corresponding grades in sequence according to a preset rule to obtain corresponding grade scores; determining a first score of each short message service provider under each operator by using a first preset formula and the grade scores; determining the distribution proportion of each short message service provider under each operator by using the first score; wherein the first preset formula is as follows:
Aij=(Xi-1×a1+Yij-1×a2+Zij×a3)×b1+(Xi-2×a1+Yij-2×a2+Mi×a4)×b2
Aijrepresents a first score, X, of the short message service provider i under the operator ji-1Representing the historical average network delay level score, Y, of the SMS provider iij-1represents the historical average short message delivery delay grade score, Z, of the short message service provider i under the operator jijRepresents the short message service provider i in the operator j to reach the success rate grade score, Xi-2Said shortCurrent average network delay level score, Y, of the credit service provider iij-2Represents the current average short message delivery delay grade score, M, of the short message service provider i under the operator jiShowing the charge rate of the short message service provider i, a1、a2、a3、a4Representing a predetermined coefficient, b1representing historical weights, b2And representing the current weight, wherein the short message service provider i represents the ith short message service provider, and the operator j represents the jth operator.
in a specific implementation process, the historical average network delay, the current average network delay, the historical average short message delivery delay, the current average short message delivery delay and the short message delivery success rate are required to be sequentially corresponding to corresponding grades according to a preset rule to obtain corresponding grade scores, namely, the historical average network delay, the current average network delay, the historical average short message delivery delay, the current average short message delivery delay and the short message delivery success rate are standardized by using the preset rule; determining a first score of each short message service provider under each operator by using the first preset formula and the grade score; and then determining the distribution proportion of each short message service provider under each operator by using the first score.
In this embodiment, before determining the first score of each short message service provider under each operator by using the first preset formula and the grade score, the method further includes: and reading the rate information of each short message service provider. Before determining the first score of each short message service provider under each operator by using the first preset formula and the grade score, the method further includes: detecting first class short message sending strategy information; and if the first type of short message sending strategy information is detected, determining a first score of each short message service provider under each operator according to the first type of short message sending strategy information. The first type of short message sending strategy information is a priority sending strategy defined in a system, and comprises the following steps: rate priority strategy and success rate priority strategyThe measurement of speed and priority, and the like, related management personnel can select corresponding priority strategies according to actual needs, and different priority strategies can influence a1、a2、a3、a4the preset coefficient is specifically the preset coefficient a when the rate priority strategy is selected4When the success rate priority strategy is selected, a coefficient a is preset3will increase, when selecting the speed priority strategy, the preset coefficient a2It will increase, resulting in a difference in the first score, and thus a difference in the final short message sending effect. After determining the first score of each short message service provider under each operator by using a first preset formula and the grade score, the method further comprises the following steps: judging whether the first score value is smaller than a preset score threshold value or not; if yes, the corresponding short message service provider is removed, and an available short message service provider is obtained. That is, some short message service providers are unavailable short message service providers under certain operators among all the selectable short message service providers, and the unavailable short message service providers need to be removed to obtain the available short message service providers, so that the success rate and the efficiency of short message sending are improved. After determining the first score of each short message service provider under each operator by using the first preset formula and the grade score, the method further includes: detecting second type short message sending strategy information; if the second type of short message sending strategy information is detected, determining a second score of each short message service provider under each operator by using a second preset formula and the first score; if the second type of short message sending strategy information is not detected, taking the first score as a second score; wherein the second preset formula is as follows: b isij=Aij×wi;Bijrepresents the second score, w, of the SMS provider i under the operator jiAnd manual adjustment factors of the short message service provider i. Specifically, after the first score is obtained or the available service provider is obtained, second type short message sending strategy information is detected, and a second score of each short message service provider under each operator is determined according to the second type short message sending strategy information, wherein the second score is obtained by the second service providerthe second type of short message sending strategy information includes, but is not limited to, preferences and the like, when the second type of short message sending strategy is detected, a second score of each short message service provider under each operator is determined by using a second preset formula and the first score, when the second type of short message sending strategy is not detected, the first score is taken as the second score, and it can also be understood that when the second type of short message sending strategy information is not detected, the manual adjustment factor w is used for manually adjusting the second scorei1, when the strategy information of the second type of short message sending is detected, the manual adjustment factor wiWill be greater or less than 1.
In this embodiment, after the second score is obtained, correspondingly, the first score is used to determine the distribution ratio of each short message service provider under each operator, and the second score is used to determine the distribution ratio of each short message service provider under each operator. Specifically, the second score and a third preset formula are used for determining the distribution proportion of each short message service provider under each operator; wherein the third preset formula is as follows:
Wherein Q isijDistribution proportion of short message service provider i under operator j, BijA second score of the SMS provider i under the operator j is represented,And N is a positive integer and is greater than or equal to 1.
Referring to fig. 3, a flowchart of determining an allocation ratio of each short message service provider under each operator by using the index data is shown. Obtaining grade scores of the historical average network delay, the current average network delay, the historical average short message delivery delay, the current average short message delivery delay and the short message delivery success rate by using a preset rule to realize standardization, determining a first score of each short message service provider under each operator by using the grade scores of a first preset formula, and removing unavailable short message service providers according to the first scores to obtain available service providers; determining a second score of each short message service provider under each operator by using a second preset formula and the first score; and then determining the distribution proportion of each short message service provider under each operator by using a third preset formula and the second score.
Step S27: and distributing the target short message batch sending tasks corresponding to the operators to corresponding short message service providers according to the distribution proportion so as to execute the target short message batch sending tasks through the short message service providers.
it can be understood that after the distribution proportion is obtained, the target short message batch sending tasks corresponding to the operators are distributed to corresponding short message service providers by using the distribution proportion, so that the target short message batch sending tasks are executed by the short message service providers, the corresponding short message batch sending tasks are distributed according to the actual conditions of the short message operators, a large batch of short message sending tasks can be completed in a short time, the situations of congestion, queuing, system breakdown and the like are reduced, and the efficiency and the success rate of short message batch sending are improved.
Referring to fig. 4, an embodiment of the present application discloses a specific short message distribution method, including:
step S31: and acquiring historical average network delay and current average network delay of each short message service provider.
Step S32: and acquiring historical average short message delivery delay, current average short message delivery delay, short message delivery success rate and unit time throughput of each short message service provider under each operator.
step S33: and storing the historical average network delay, the current average network delay, the historical average short message delivery delay, the current average short message delivery delay, the short message delivery success rate and the unit time throughput to obtain index data corresponding to each short message service provider.
step S34: and acquiring a short message batch sending task.
Step S35: and dividing the short message batch sending task into different target short message batch sending tasks according to the operator to which the number belongs.
step S36: and determining the distribution proportion of each short message service provider under each operator by using the index data.
Step S37: and distributing the target short message batch sending tasks corresponding to the operators to corresponding short message service providers according to the distribution proportion.
step S38: and dividing the target short message batch sending tasks corresponding to the short message service providers under the operators into different target short message batch sending subtasks by using the unit time throughput, so as to execute the target short message batch sending subtasks through the short message service providers.
In this embodiment, after the target short message batch sending task is distributed to each short message service provider according to the distribution proportion corresponding to each short message service provider under each operator, the number of short messages in the target short message batch sending task is greater than the unit time throughput of the short message service provider, so that the unit time throughput needs to be utilized to divide the target short message batch sending task into different target short message batch sending subtasks, the target short message batch sending subtasks are sent in different time periods, and the probability of sending efficiency reduction caused by short message sending channel congestion is reduced.
Referring to fig. 5, an embodiment of the present application discloses a short message distribution apparatus, including:
The task obtaining module 11 is used for obtaining short message batch sending tasks;
the first task allocation module 12 is configured to divide the short message batch sending task into different target short message batch sending tasks according to an operator to which the number belongs;
And the second task allocation module 13 is configured to distribute the target short message batch sending task corresponding to each operator to a corresponding short message service provider according to a pre-obtained allocation proportion, so as to execute the target short message batch sending task through the short message service provider.
Therefore, after the short message batch sending task is obtained, the short message batch sending task is divided into different target short message batch sending tasks according to the number of the operator, and the target short message batch sending tasks corresponding to the operator are distributed to corresponding short message service providers according to the pre-obtained distribution proportion so as to execute the target short message batch sending tasks through the short message service providers. Therefore, the distribution proportion obtained according to the actual conditions of the short message service providers in advance is utilized to distribute the short message batch sending tasks to different short message service providers, and the short message batch sending tasks are quickly completed in a mode of sending different numbers of short messages by different short message service providers, so that the sending of large batches of short messages can be completed in a short time, the success rate and the efficiency of short message sending are improved, and the short message sending cost is reduced.
Further, referring to fig. 6, an embodiment of the present application further discloses a short message distribution device, including: a processor 21 and a memory 22.
Wherein the memory 22 is used for storing a computer program; the processor 21 is configured to execute the computer program to implement the short message distribution method disclosed in the foregoing embodiment.
The specific process of the short message distribution method may refer to corresponding content disclosed in the foregoing embodiments, and is not described herein again.
further, an embodiment of the present application also discloses a computer readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the following steps:
Acquiring short message batch sending tasks; dividing the short message batch sending task into different target short message batch sending tasks according to the operator to which the number belongs; and distributing the target short message batch sending task corresponding to the operator to a corresponding short message service provider according to a pre-obtained distribution proportion so as to execute the target short message batch sending task through the short message service provider.
Therefore, after the short message batch sending task is obtained, the short message batch sending task is divided into different target short message batch sending tasks according to the number of the operator, and the target short message batch sending tasks corresponding to the operator are distributed to corresponding short message service providers according to the pre-obtained distribution proportion so as to execute the target short message batch sending tasks through the short message service providers. Therefore, the distribution proportion obtained according to the actual conditions of the short message service providers in advance is utilized to distribute the short message batch sending tasks to different short message service providers, and the short message batch sending tasks are quickly completed in a mode of sending different numbers of short messages by different short message service providers, so that the sending of large batches of short messages can be completed in a short time, the success rate and the efficiency of short message sending are improved, and the short message sending cost is reduced.
In this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps may be specifically implemented: and determining the distribution proportion of each short message service provider under each operator by using the pre-acquired index data.
in this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps may be specifically implemented: acquiring historical average network delay and current average network delay of each short message service provider; acquiring historical average short message delivery delay, current average short message delivery delay, short message delivery success rate and unit time throughput of each short message service provider under each operator; and storing the historical average network delay, the current average network delay, the historical average short message delivery delay, the current average short message delivery delay, the short message delivery success rate and the unit time throughput to obtain index data corresponding to each short message service provider.
In this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps may be specifically implemented: initiating a connection request from a network layer to a gateway of the short message service provider according to a first preset time interval, and recording the delay of responding to the connection request; determining the average value of the delay within a first preset time range to obtain the historical average network delay of the short message service provider; and determining the average value of the delay within a second preset time range to obtain the current average network delay of the short message service provider.
In this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps may be specifically implemented: sending a test request to a test number belonging to the operator under the short message service provider according to a second preset time interval, and recording the time difference from the sending of the test request to the successful receiving of the corresponding short message by the test number; determining the average value of the time difference within a third preset time range to obtain the historical average short message delivery delay of the short message service provider under the operator; determining the average value of the time differences within a fourth preset time range to obtain the current average short message delivery delay of the short message service provider under the operator; and monitoring the short message sending behavior of the short message service provider under the operator to obtain the short message sending success rate and the unit time throughput of the short message service provider under the operator.
In this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps may be specifically implemented: corresponding the historical average network delay, the current average network delay, the historical average short message delivery delay, the current average short message delivery delay and the short message delivery success rate to corresponding grades in sequence according to a preset rule to obtain corresponding grade scores; determining a first score of each short message service provider under each operator by using a first preset formula and the grade scores; determining the distribution proportion of each short message service provider under each operator by using the first score; wherein the first preset formula is as follows:
Aij=(Xi-1×a1+Yij-1×a2+Zij×a3)×b1+(Xi-2×a1+Yij-2×a2+Mi×a4)×b2
AijRepresents a first score, X, of the short message service provider i under the operator ji-1Representing the historical average network delay level score, Y, of the SMS provider iij-1Represents the historical average short message delivery delay grade score, Z, of the short message service provider i under the operator jijRepresents the short message service provider i in the operator j to reach the success rate grade score, Xi-2Current average network delay level score, Y, of the SMS facilitator iij-2Represents the current average short message delivery delay grade score, M, of the short message service provider i under the operator jishowing the charge rate of the short message service provider i, a1、a2、a3、a4representing a predetermined coefficient, b1representing historical weights, b2Representing the current weight.
In this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps may be specifically implemented: detecting first class short message sending strategy information; and if the first type of short message sending strategy information is detected, determining a first score of each short message service provider under each operator according to the first type of short message sending strategy information.
In this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps may be specifically implemented: judging whether the first score value is smaller than a preset score threshold value or not; if yes, the corresponding short message service provider is removed, and an available short message service provider is obtained.
in this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps may be specifically implemented: detecting second type short message sending strategy information; if it is checkeddetermining a second score of each short message service provider under each operator by using a second preset formula and the first score when the second type of short message sending strategy information is detected; if the second type of short message sending strategy information is not detected, taking the first score as a second score; wherein the second preset formula is as follows: b isij=Aij×wi;BijRepresents the second score, w, of the SMS provider i under the operator jiAnd manual adjustment factors of the short message service provider i.
in this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps may be specifically implemented: and dividing the target short message batch sending tasks corresponding to the short message service providers under the operators into different target short message batch sending subtasks by using the unit time throughput.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
finally, it is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of other elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above detailed description is given to a short message distribution method, apparatus, device, and medium provided by the present application, and a specific example is applied in the present application to explain the principle and implementation manner of the present application, and the description of the above embodiment is only used to help understand the method and core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (13)

1. A short message distribution method is characterized by comprising the following steps:
Acquiring short message batch sending tasks;
dividing the short message batch sending task into different target short message batch sending tasks according to the operator to which the number belongs;
and distributing the target short message batch sending task corresponding to the operator to a corresponding short message service provider according to a pre-obtained distribution proportion so as to execute the target short message batch sending task through the short message service provider.
2. the short message delivery method of claim 1, wherein after the task of obtaining the batch sending of the short messages, the method further comprises:
and determining the distribution proportion of each short message service provider under each operator by using the pre-acquired index data.
3. the short message distribution method according to claim 2, wherein before determining the distribution ratio of each short message service provider under each operator by using the pre-obtained index data, the method further comprises:
acquiring historical average network delay and current average network delay of each short message service provider;
Acquiring historical average short message delivery delay, current average short message delivery delay, short message delivery success rate and unit time throughput of each short message service provider under each operator;
And storing the historical average network delay, the current average network delay, the historical average short message delivery delay, the current average short message delivery delay, the short message delivery success rate and the unit time throughput to obtain index data corresponding to each short message service provider.
4. The short message delivery method of claim 3, wherein obtaining the historical average network delay and the current average network delay of any short message service provider comprises:
Initiating a connection request from a network layer to a gateway of the short message service provider according to a first preset time interval, and recording the delay of responding to the connection request;
determining the average value of the delay within a first preset time range to obtain the historical average network delay of the short message service provider;
And determining the average value of the delay within a second preset time range to obtain the current average network delay of the short message service provider.
5. The short message delivery method of claim 4, wherein obtaining historical average short message delivery delay, current average short message delivery delay, short message delivery success rate and unit time throughput of any short message service provider under any operator comprises:
Sending a test request to a test number belonging to the operator under the short message service provider according to a second preset time interval, and recording the time difference from the sending of the test request to the successful receiving of the corresponding short message by the test number;
Determining the average value of the time difference within a third preset time range to obtain the historical average short message delivery delay of the short message service provider under the operator;
Determining the average value of the time differences within a fourth preset time range to obtain the current average short message delivery delay of the short message service provider under the operator;
And monitoring the short message sending behavior of the short message service provider under the operator to obtain the short message sending success rate and the unit time throughput of the short message service provider under the operator.
6. the short message distribution method according to claim 5, wherein the determining, by using the pre-obtained index data, the distribution ratio of each short message service provider under each operator comprises:
Corresponding the historical average network delay, the current average network delay, the historical average short message delivery delay, the current average short message delivery delay and the short message delivery success rate to corresponding grades in sequence according to a preset rule to obtain corresponding grade scores;
Determining a first score of each short message service provider under each operator by using a first preset formula and the grade scores;
Determining the distribution proportion of each short message service provider under each operator by using the first score;
wherein the first preset formula is as follows:
Aij=(Xi-1×a1+Yij-1×a2+Zij×a3)×b1+(Xi-2×a1+Yij-2×a2+Mi×a4)×b2
Aijrepresents a first score, X, of the short message service provider i under the operator ji-1To representHistorical average network delay level score, Y, of the SMS facilitator iij-1represents the historical average short message delivery delay grade score, Z, of the short message service provider i under the operator jijRepresents the short message service provider i in the operator j to reach the success rate grade score, Xi-2current average network delay level score, Y, of the SMS facilitator iij-2Represents the current average short message delivery delay grade score, M, of the short message service provider i under the operator jiShowing the charge rate of the short message service provider i, a1、a2、a3、a4representing a predetermined coefficient, b1Representing historical weights, b2Representing the current weight.
7. the short message delivery method of claim 6, wherein before determining the first score of each short message service provider under each operator by using the first preset formula and the ranking score, the method further comprises:
Detecting first class short message sending strategy information;
And if the first type of short message sending strategy information is detected, determining a first score of each short message service provider under each operator according to the first type of short message sending strategy information.
8. the short message delivery method of claim 6, wherein after determining the first score of each short message service provider under each operator by using the first preset formula and the ranking score, the method further comprises:
judging whether the first score value is smaller than a preset score threshold value or not;
If yes, the corresponding short message service provider is removed, and an available short message service provider is obtained.
9. The short message delivery method of claim 6, wherein after determining the first score of each short message service provider under each operator by using a preset formula and the grade score, the method further comprises:
detecting second type short message sending strategy information;
If the second type of short message sending strategy information is detected, determining a second score of each short message service provider under each operator by using a second preset formula and the first score;
if the second type of short message sending strategy information is not detected, taking the first score as a second score;
Wherein the second preset formula is as follows: b isij=Aij×wi
Bijrepresents the second score, w, of the SMS provider i under the operator jiAnd manual adjustment factors of the short message service provider i.
10. The short message distribution method according to any one of claims 3 to 9, wherein the distributing the target short message batch sending task corresponding to each operator to a corresponding short message service provider according to a pre-obtained distribution ratio, so as to execute the target short message batch sending task by the short message service provider, further comprises:
And dividing the target short message batch sending tasks corresponding to the short message service providers under the operators into different target short message batch sending subtasks by using the unit time throughput.
11. A short message distribution device is characterized by comprising:
The task acquisition module is used for acquiring short message batch sending tasks;
The first task allocation module is used for dividing the short message batch sending task into different target short message batch sending tasks according to the number of the operator;
And the second task allocation module is used for distributing the target short message batch sending tasks corresponding to the operators to corresponding short message service providers according to a pre-obtained allocation proportion so as to execute the target short message batch sending tasks through the short message service providers.
12. A short message distribution device comprises:
A memory and a processor;
wherein the memory is used for storing a computer program;
The processor is configured to execute the computer program to implement the short message distribution method according to any one of claims 1 to 10.
13. a computer-readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the short message distribution method according to any one of claims 1 to 10.
CN201911045291.5A 2019-10-30 2019-10-30 Short message distribution method, device, equipment and medium Active CN110582064B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911045291.5A CN110582064B (en) 2019-10-30 2019-10-30 Short message distribution method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911045291.5A CN110582064B (en) 2019-10-30 2019-10-30 Short message distribution method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN110582064A true CN110582064A (en) 2019-12-17
CN110582064B CN110582064B (en) 2022-03-04

Family

ID=68815491

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911045291.5A Active CN110582064B (en) 2019-10-30 2019-10-30 Short message distribution method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN110582064B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111212391A (en) * 2020-01-14 2020-05-29 中保车服科技服务股份有限公司 Short message pushing method, device, equipment and readable medium
CN113098763A (en) * 2021-06-10 2021-07-09 天聚地合(苏州)数据股份有限公司 Instant communication message sending method, device, storage medium and equipment
CN113938849A (en) * 2021-09-27 2022-01-14 广东万丈金数信息技术股份有限公司 Channel provider matching method, system, device and storage medium based on short message sending
CN115190441A (en) * 2022-08-15 2022-10-14 湖南快乐阳光互动娱乐传媒有限公司 Short message distribution method and device, electronic equipment and storage medium
CN115314846A (en) * 2022-09-16 2022-11-08 中国农业银行股份有限公司 Short message control method and device
CN115474167A (en) * 2022-09-16 2022-12-13 中信百信银行股份有限公司 Method, system, terminal equipment and storage medium for intelligent flow scheduling based on quality of short message service provider

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101022592A (en) * 2007-03-21 2007-08-22 深圳市杰普林数码科技有限公司 Method for quick group sending cellphone short message
CN106851600A (en) * 2017-01-12 2017-06-13 和创(北京)科技股份有限公司 Short message distribution method and the server for carrying out short message distribution
CN107347182A (en) * 2016-05-04 2017-11-14 北京京东尚科信息技术有限公司 Short message distribution method 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
CN109862527A (en) * 2019-01-04 2019-06-07 宁波牛信网络科技有限公司 A kind of short message distribution method, device, computer installation and readable storage medium storing program for executing
CN110267217A (en) * 2019-06-17 2019-09-20 浙江百应科技有限公司 A kind of note transmission method that multichannel is changeable

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101022592A (en) * 2007-03-21 2007-08-22 深圳市杰普林数码科技有限公司 Method for quick group sending cellphone short message
CN107347182A (en) * 2016-05-04 2017-11-14 北京京东尚科信息技术有限公司 Short message distribution method and system
CN106851600A (en) * 2017-01-12 2017-06-13 和创(北京)科技股份有限公司 Short message distribution method and the server for carrying out short message distribution
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
CN109862527A (en) * 2019-01-04 2019-06-07 宁波牛信网络科技有限公司 A kind of short message distribution method, device, computer installation and readable storage medium storing program for executing
CN110267217A (en) * 2019-06-17 2019-09-20 浙江百应科技有限公司 A kind of note transmission method that multichannel is changeable

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111212391A (en) * 2020-01-14 2020-05-29 中保车服科技服务股份有限公司 Short message pushing method, device, equipment and readable medium
CN111212391B (en) * 2020-01-14 2022-04-29 中保车服科技服务股份有限公司 Short message pushing method, device, equipment and readable medium
CN113098763A (en) * 2021-06-10 2021-07-09 天聚地合(苏州)数据股份有限公司 Instant communication message sending method, device, storage medium and equipment
CN113938849A (en) * 2021-09-27 2022-01-14 广东万丈金数信息技术股份有限公司 Channel provider matching method, system, device and storage medium based on short message sending
CN113938849B (en) * 2021-09-27 2022-10-25 广东万丈金数信息技术股份有限公司 Channel provider matching method, system, device and storage medium based on short message sending
CN115190441A (en) * 2022-08-15 2022-10-14 湖南快乐阳光互动娱乐传媒有限公司 Short message distribution method and device, electronic equipment and storage medium
CN115190441B (en) * 2022-08-15 2024-02-27 湖南快乐阳光互动娱乐传媒有限公司 Short message distribution method and device, electronic equipment and storage medium
CN115314846A (en) * 2022-09-16 2022-11-08 中国农业银行股份有限公司 Short message control method and device
CN115474167A (en) * 2022-09-16 2022-12-13 中信百信银行股份有限公司 Method, system, terminal equipment and storage medium for intelligent flow scheduling based on quality of short message service provider

Also Published As

Publication number Publication date
CN110582064B (en) 2022-03-04

Similar Documents

Publication Publication Date Title
CN110582064B (en) Short message distribution method, device, equipment and medium
US8015289B2 (en) System and method predicting and managing network capacity requirements
JP5453119B2 (en) Automatic assignment of total marketing budget and sales resources, and distribution across expenditure categories
CN110322167B (en) Information processing method and device, storage medium and electronic equipment
CN106952085B (en) Method and device for data storage and service processing
CN111539780B (en) Task processing method and device, storage medium and electronic equipment
CN111601003A (en) Session establishment method and device
CN109120527B (en) Method and system for transmitting service flow
CN113543195A (en) Communication base station evaluation method and device and electronic equipment
CN110070392B (en) User loss early warning method and device
CN107844496B (en) Statistical information output method and device
CN108647801A (en) Predict the method and device of account hot spot
CN110516872B (en) Information processing method and device, storage medium and electronic equipment
CN109582829B (en) Processing method, device, equipment and readable storage medium
CN110782167B (en) Method, device and storage medium for managing receiving and dispatching area
CN110009382B (en) Data monitoring method, device and server for virtual commodity
CN111130933B (en) Page flow estimation method and device and computer readable storage medium
CN112801690A (en) Method and device for determining intervention characteristics
CN112016863A (en) Method and device for determining distribution range, readable storage medium and electronic equipment
CN113553500B (en) Merchant information recommendation method and device, electronic equipment and storage medium
CN105472592A (en) Application software charging system and charging method
CN115174586B (en) Automatic load balancing system and method based on cloud platform
US9292400B1 (en) System, method, and computer program for determining a network for a user
CN113626282B (en) Cloud computing physical node load monitoring method, device, terminal and storage medium
CN110365515B (en) Service internet multi-tenant satisfaction degree measuring method based on generalization entropy

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
GR01 Patent grant
GR01 Patent grant