Method, device, equipment and storage medium for detecting backlog of short messages
By obtaining and analyzing the response time-consuming of SMS submission requests, the Elastic Search cluster is used to determine the SMS backlog status, which solves the problem of not being able to detect SMS backlog in time, and realizes the timely handling of SMS backlog abnormalities, improving user experience and enterprise response capabilities.
Patent Information
- Application Number
- CN202310185055.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-16
- Publication Date
- 2025-08-15
- Estimated Expiration
- 2043-02-16
AI Technical Summary
The existing technology cannot promptly detect abnormal SMS backlog caused by external operators, which will affect user experience and corporate customer complaints.
By obtaining SMS submission requests in the pre-selected time period, extracting and storing request samples, calculating response time, and using the Elastic Search cluster to determine whether there is a SMS backlog, configuring confidence intervals and threshold weights, and promptly discovering and sending alarm signals or displaying SMS messages.
It can promptly detect and deal with abnormal SMS backlog caused by external operators during the company's sending text messages, reducing the impact of user experience and customer complaints.
Smart Images

Figure CN116233772B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a method, apparatus, device and storage medium for detecting a backlog of short messages. Background Art
[0002] SMS is currently widely used as an ideal and efficient means of communicating with users and customers for marketing, industry notifications, and other purposes. SMS messages can generally be divided into two categories: timely SMS messages (such as OTP verification messages), which often have a certain timeliness requirement; if the time limit is exceeded, even if received, they are useless. Non-timely SMS messages (such as marketing messages) are not subject to timeliness and focus more on reach; as long as the user receives the message, timeliness is not a concern.
[0003] Regardless of the type of SMS, in actual application scenarios, SMS backlogs often occur due to external carrier issues. Specific manifestations of SMS backlogs include: customers are able to receive SMS messages, but the delay between triggering the messages is too long, often resulting in delays of several minutes or even dozens of minutes. If a user requires a timely SMS message, such as an OTP verification message, but does not receive it in a timely manner, the customer's application needs cannot be met, significantly reducing the user experience and posing a risk of customer complaints to the enterprise. Currently, there is an urgent need to develop a technical solution that can promptly detect SMS backlog anomalies caused by external carrier issues during the SMS delivery process. Summary of the Invention
[0004] The purpose of this application is to provide a method, device, apparatus, and storage medium for detecting SMS backlogs, addressing the issue of delays in timely detection of SMS backlogs. To provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is provided below. This summary is not intended to be a comprehensive review, identify key or important elements, or delineate the scope of protection for these embodiments. Its sole purpose is to present some concepts in a simplified form, serving as a prelude to the detailed description that follows.
[0005] According to one aspect of an embodiment of the present application, a method for checking a backlog of short messages is provided, comprising:
[0006] Get SMS submission requests in the pre-selected time period;
[0007] Extracting and storing a request sample from the SMS submission request;
[0008] The time taken to obtain a response to each of the request samples;
[0009] Determine whether there is a text message backlog based on the response time of all text message submission requests.
[0010] In some embodiments of the present application, storing the request sample includes: storing the request sample extracted from the SMS submission request in an Elastic Search cluster.
[0011] In some embodiments of the present application, obtaining the response time of each request sample includes:
[0012] Get the response time corresponding to each request sample;
[0013] The time difference between the response time and the submission time of each request sample is calculated, and the time difference is the corresponding response time.
[0014] In some embodiments of the present application, determining whether there is a text message backlog based on the response time of all the text message submission requests includes:
[0015] Calculate the confidence interval for each response time;
[0016] If the proportion of SMS submission requests with response times within the confidence interval is lower than the preset ratio, it is determined that there is an SMS backlog.
[0017] In some embodiments of the present application, the calculation of the confidence interval of each response time includes: using any one of the normal distribution method, the non-normal distribution method, the normal distribution or non-normal distribution method, and the binomial distribution method to calculate the confidence interval of each response time.
[0018] In some embodiments of the present application, extracting and storing a request sample from the SMS submission request includes:
[0019] Setting a number for each of the SMS submission requests;
[0020] Drawing a request sample according to the said number;
[0021] The extracted request samples are stored.
[0022] In some embodiments of the present application, the method further includes: sending an alarm signal if there is a backlog of text messages.
[0023] According to another aspect of an embodiment of the present application, a device for detecting a backlog of short messages is provided, comprising:
[0024] SMS submission request acquisition module, used to obtain SMS submission requests in a pre-selected time period;
[0025] A request sample extraction module, configured to extract and store request samples from the SMS submission request;
[0026] A response time acquisition module, used to obtain the response time of each request sample;
[0027] The SMS backlog status determination module is used to determine whether there is an SMS backlog status based on the response time of all the SMS submission requests.
[0028] According to another aspect of an embodiment of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement any of the above-mentioned methods for checking the SMS backlog status.
[0029] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, on which a computer program is stored. The program is executed by a processor to implement any of the above-mentioned methods for checking the backlog status of short messages.
[0030] One aspect of the technical solution provided by the embodiments of the present application may have the following beneficial effects:
[0031] The embodiment of the present application provides a method for inspecting SMS backlog conditions, which obtains SMS submission requests in a pre-selected time period, extracts and stores request samples from the SMS submission requests, obtains the response time of each of the request samples, and determines whether there is an SMS backlog based on the response time of all the SMS submission requests. This allows the enterprise to promptly detect abnormal SMS backlog conditions caused by external operators during the SMS sending process, so that staff can promptly handle the abnormal SMS backlog conditions.
[0032] Other features and advantages of the present application will be described in the subsequent description, and some of them will become obvious from the description, or some of them can be inferred or determined without doubt from the description, or understood by implementing the embodiments of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments recorded in this application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0034] Figure 1 A diagram showing the application environment of the method for checking the SMS backlog status according to an embodiment of the present application is provided.
[0035] Figure 2 A flow chart of a method for checking SMS backlog status according to an embodiment of the present application is shown.
[0036] Figure 3 A schematic diagram showing the process of SMS submission and receipt receipt according to an embodiment of the present application is shown.
[0037] Figure 4 A structural block diagram of a device for checking SMS backlog status according to an embodiment of the present application is shown.
[0038] Figure 5 A structural block diagram of an electronic device according to an embodiment of the present application is shown.
[0039] Figure 6 A schematic diagram of a computer-readable storage medium according to an embodiment of the present application is shown.
[0040] The realization of the objectives, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solutions and advantages of this application more clearly understood, this application is further described below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0042] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those skilled in the art in the art to which this application belongs. It should also be understood that terms such as those defined in common dictionaries should be understood to have meanings consistent with their meanings in the context of the prior art, and will not be interpreted in an idealized or overly formal sense unless specifically defined as herein.
[0043] The method for checking the SMS backlog provided in the embodiment of the present application can be applied to the following situations: Figure 1 In an application environment, the application environment includes a user terminal and a server. The server obtains SMS submission requests in a preselected time period, extracts and stores request samples from the SMS submission requests, obtains the response time of each request sample, determines whether there is an SMS backlog based on the response time of all the SMS submission requests, and can send the verification result to the user terminal.
[0044] The user terminal may include, but is not limited to, various personal computers, laptops, smartphones, tablet computers, and portable wearable devices. The server side may be implemented as an independent server or a server cluster consisting of multiple servers. The present application is described in detail below through specific embodiments.
[0045] In order to solve the technical problem that the related art cannot timely detect the abnormal situation of SMS backlog caused by external operators, the embodiment of the present application provides a method for detecting the SMS backlog situation. Figure 2 As shown, an embodiment of the present application provides a method for checking the backlog of short messages, including steps S10 to S40:
[0046] S10: Obtain SMS submission requests in a pre-selected time period.
[0047] Each channel (the so-called channel is a channel provided by an external supplier with the ability to send text messages) usually includes three steps in the text message sending process: submission step, receipt step and uplink step.
[0048] Among them, the submission step includes: the SMS sender sends a SMS to the user; the receipt step includes: the operator's reply to the specific SMS delivery result, that is, whether the message is actually delivered to the user; the uplink step includes: the user replies to the SMS.
[0049] like Figure 3 As shown in the figure, the channels provided by external vendors capable of sending SMS messages include Channel A, Channel B, and Channel C. Taking Channel A as an example, during the corresponding submission process, a random sample of SMS submission requests in time periods 1, 2, and 3 is stored in ES. During the receipt process, the mobile phone number in the query receipt is correlated with the submission record stored in the ES cluster to obtain the operator's response status information.
[0050] S20: Extract and store a request sample from the obtained SMS submission request.
[0051] Specifically, storing the request samples includes: storing the request samples extracted from the SMS submission request in an Elastic Search cluster.
[0052] ElasticSearch Cluster is the distributed search and analytics engine at the core of the Elastic Stack. It's a distributed, highly scalable, and highly real-time search and data analytics engine. ElasticSearch Cluster easily enables search, analysis, and exploration of large amounts of data. Leveraging the horizontal scalability of ElasticSearch Cluster makes data even more valuable in production environments.
[0053] In one embodiment, extracting and storing request samples from the acquired SMS submission requests includes: setting a number for each SMS submission request; extracting request samples according to the number; and storing the extracted request samples.
[0054] When the SMS sender submits the SMS, refer to Figure 3 As shown, assuming the preselected time period is time period 1 (in minutes), a submission request sequence number is generated for each SMS submission request. For example, the submission request sequence numbers can be recorded as: 1, 2, 3, 4, 5, .... From the SMS submission requests in time period 1, SMS submission requests with even request sequence numbers are extracted as samples. These SMS submission requests are stored in an Elastic Search cluster (hereinafter referred to as the ES cluster). The SMS sender can be, for example, an enterprise or company.
[0055] S30: Obtaining the response time of each request sample.
[0056] The response time is the time difference between the response time of the request sample and the submission time of the request sample. Specifically, the operator response status information corresponding to each request sample is obtained. At the same time, the receipt process will synchronously obtain the operator response status information.
[0057] In the process of obtaining a specific status report, the mobile phone number in the SMS submission request can be associated with the SMS submission request stored in the ES cluster, and the time taken between the two can be calculated, which is recorded as α1, α2, α3...
[0058] Specifically, the operator's response status information includes the response time of the request sample and the mobile phone number used as an identifier. Each SMS submission request includes a mobile phone number as an identifier. The response time and request submission time of each SMS submission request are identified by the mobile phone number. The time difference between the response time and request submission time corresponding to the same mobile phone number is calculated. Through efficient querying of the ES cluster, operator response status information can be quickly obtained, thereby enabling fast and efficient calculation of the time consumed in obtaining SMS receipts.
[0059] ES cluster queries can use term, terms query and match query, for example. Term query will look for the exact term in the inverted index, and it does not know the existence of the word segmenter. This type of query is suitable for keyword, numeric, and date. Term: queries documents containing a certain keyword in a certain field, and terms: queries documents containing multiple keywords in a certain field. Match query knows the existence of the word segmenter, and will perform word segmentation on the field before querying. The implementation principle of the ElasticSearch cluster is mainly divided into the following steps. First, the user submits the data to the Elastic Search cluster database, and then the word segmentation controller is used to segment the corresponding statement, and its weight and word segmentation results are stored in the data together. When the user searches for data, the results are ranked and scored according to the weight, and then the returned results are presented to the user. The above query method of the ES cluster can be applied to some implementation methods of this embodiment, and the specific query method can be selected according to actual needs.
[0060] In one embodiment, obtaining the response time of each of the request samples may include: obtaining the response time corresponding to each request sample; calculating the time difference between the response time and the submission time of each of the request samples, the time difference being the corresponding response time.
[0061] S40: Determine whether there is a backlog of text messages based on the response time of all the text message submission requests.
[0062] Specifically, determining whether there is a text message backlog based on the response time of all the text message submission requests includes: calculating the confidence interval of each response time; if the proportion of text message submission requests with response time within the confidence interval is lower than a preset proportion, it is determined that there is a text message backlog.
[0063] The preset ratio may be, for example, 40%, 50% or 60%, etc. The specific ratio may be preset according to actual application requirements.
[0064] Exemplarily, calculating the confidence interval of each response time includes: using any one of a normal distribution method, a non-normal distribution method, a normal distribution or non-normal distribution method, and a binomial distribution method to calculate the confidence interval of each response time.
[0065] Exemplarily, a preset confidence interval of the time-consuming α sequence is calculated, such as a 95% confidence interval.
[0066] The calculation method of the preset confidence interval can adopt the method in Table 1. The calculation methods in Table 1 include the normal distribution method, the non-normal distribution method, the normal distribution or non-normal distribution method, and the binomial distribution method.
[0067] Table 1
[0068]
[0069] In this embodiment, the calculation method of "normal distribution or non-normal distribution" is selected to calculate the preset confidence interval, wherein the value of c in the calculation formula can refer to the values in Table 2.
[0070] Table 2
[0071] Confidence Level c value 90% 1.64 92% 1.75 95% 1.96 97% 2.12 99% 2.58
[0072] The 95% confidence level was selected as the reference data for the second stage.
[0073] With the help of high-performance queries in the ES cluster, the time consumed in obtaining SMS receipts can be calculated in real time. If the actual calculated time is not within the confidence interval, it can be determined that a backlog has occurred.
[0074] Because each anomaly cannot be used to definitively prove a backlog, threshold weights can be configured based on this. For example, if more than 40% of anomalies occur in each time period, a backlog is determined to exist in the current channel.
[0075] By randomly selecting actual SMS submissions as samples, we can measure the time it takes for each SMS to be sent. Statistical analysis of these samples is then used to provide effective threshold references for subsequent monitoring and alarms.
[0076] With the help of ES cluster high-performance query scenarios, the time consumed in the query process can be ignored.
[0077] In actual implementation, the sample numbers can also be selected according to the current division scenarios of the number segments of the three major domestic operators to group the unreachable samples, so as to achieve more fine-grained judgment of channel backlogs and greatly reduce the risk of backlogs to the delivery of real-time SMS.
[0078] In one implementation, the method for checking the SMS backlog condition of this embodiment further includes: sending an alarm signal if SMS backlog exists.
[0079] The warning signal can be, for example, a message sent to a worker's terminal, such as a smartphone, laptop, desktop computer, or the like, or a reminder text message sent to the worker's mobile phone, or an audible or visual warning signal. The audible or visual warning signal can include, for example, a sound signal from a sound alarm and a light signal from a flashlight.
[0080] In one embodiment, the method for checking the SMS backlog of this embodiment may further include: if there is a SMS backlog, sending a visible SMS. A visible SMS means that after the sent SMS is received, the recipient can directly see the content of the SMS on the screen without unlocking the phone or opening the inbox.
[0081] Exemplarily, sending a text message may include the following steps:
[0082] Obtain the SMS receiving rate and SMS sending rate; the SMS receiving rate and SMS sending rate can be obtained at every preset time period or can be triggered at a preset time.
[0083] If the SMS sending and receiving rate ratio is less than or equal to a preset threshold (e.g., 0.5, 0.6, or 0.7), the number of SMS messages sent within a unit time period, the first target objects with a priority higher than a first preset level, and the number of first target objects are obtained. The target objects include target users.
[0084] The number of visible text messages and the number of non-visible text messages sent to each first target object within the unit time are calculated according to the preset sending ratio of visible text messages, the preset sending ratio of non-visible text messages, the number of text messages sent within the unit time, and the number of first target objects.
[0085] The visible text messages of each first target object are sent according to the number of visible text messages sent to each first target object within the unit time, and the non-visible text messages of each first target object are sent according to the number of non-visible text messages sent to each first target object within the unit time.
[0086] The method for inspecting SMS backlog conditions provided in the embodiment of the present application obtains SMS submission requests in a pre-selected time period, extracts and stores request samples from the SMS submission requests, obtains the response time of each of the request samples, and determines whether there is an SMS backlog condition based on the response time of all the SMS submission requests. This method can promptly detect abnormal SMS backlog conditions caused by external operators during the process of an enterprise sending SMS messages, and can handle them in the first place when they affect the timely sending of SMS messages, rather than waiting for customer complaints or user feedback to make subsequent responses.
[0087] like Figure 4 As shown, another embodiment of the present application provides a device for detecting a backlog of short messages, comprising:
[0088] SMS submission request acquisition module, used to obtain SMS submission requests in a pre-selected time period;
[0089] A request sample extraction module, configured to extract and store request samples from the SMS submission request;
[0090] A response time acquisition module, used to obtain the response time of each request sample;
[0091] The SMS backlog status determination module is used to determine whether there is an SMS backlog status based on the response time of all the SMS submission requests.
[0092] In one embodiment, storing the request samples includes: storing the request samples extracted from the SMS submission request in an Elastic Search cluster.
[0093] In one embodiment, the response time acquisition module includes:
[0094] A response time acquisition unit, configured to acquire a response time corresponding to each request sample;
[0095] The calculation unit is used to calculate the time difference between the response time and the submission time of each request sample, where the time difference is the corresponding response time.
[0096] In one embodiment, the SMS backlog determination module includes:
[0097] Confidence interval calculation unit, used to calculate the confidence interval of each response time;
[0098] The determination unit is configured to determine that a text message backlog exists if the proportion of text message submission requests whose response times are within a confidence interval is lower than a preset proportion.
[0099] In one embodiment, the calculating of the confidence interval of each response time includes: using any one of a normal distribution method, a non-normal distribution method, a normal distribution or non-normal distribution method, and a binomial distribution method to calculate the confidence interval of each response time.
[0100] In one embodiment, extracting and storing request samples from the SMS submission request includes: setting a number for each SMS submission request; extracting request samples according to the number; and storing the extracted request samples.
[0101] In one embodiment, the device further includes an alarm module, which is configured to send an alarm signal if there is a backlog of short messages.
[0102] In one embodiment, the SMS backlog detection device of this embodiment may further include a display SMS sending module, configured to send a display SMS message if a SMS backlog exists. Display SMS means that after a sent SMS message is received, the recipient can directly view the content of the SMS message on the screen without unlocking the phone or opening the inbox.
[0103] Illustratively, sending a text message may include:
[0104] Obtain the SMS receiving rate and SMS sending rate; the SMS receiving rate and SMS sending rate can be obtained at every preset time period or can be triggered at a preset time.
[0105] If the SMS sending and receiving rate ratio is less than or equal to a preset threshold (e.g., 0.5, 0.6, or 0.7), the number of SMS messages sent within a unit time period, the first target objects with a priority higher than a first preset level, and the number of first target objects are obtained. The target objects include target users.
[0106] The number of visible text messages sent and the number of non-visible text messages sent to each first target object within the unit time are calculated according to the preset sending ratio of visible text messages, the preset sending ratio of non-visible text messages, the number of text messages sent within the unit time, and the number of first target objects.
[0107] The visible text messages of each first target object are sent according to the number of visible text messages sent to each first target object within the unit time, and the non-visible text messages of each first target object are sent according to the number of non-visible text messages sent to each first target object within the unit time.
[0108] In one embodiment, the device for checking the SMS backlog of this embodiment may further include a display SMS sending module, which is configured to send a display SMS if there is a SMS backlog.
[0109] Exemplarily, sending a text message may include the following steps:
[0110] Obtain the SMS receiving rate and SMS sending rate; the SMS receiving rate and SMS sending rate can be obtained at every preset time period or can be triggered at a preset time.
[0111] If the SMS sending and receiving rate ratio is less than or equal to a preset threshold (e.g., 0.5, 0.6, or 0.7), the number of SMS messages sent within a unit time period, the first target objects with a priority higher than a first preset level, and the number of first target objects are obtained. The target objects include target users.
[0112] The number of visible text messages and the number of non-visible text messages sent to each first target object within the unit time are calculated according to the preset sending ratio of visible text messages, the preset sending ratio of non-visible text messages, the number of text messages sent within the unit time, and the number of first target objects.
[0113] The visible text messages of each first target object are sent according to the number of visible text messages sent to each first target object within the unit time, and the non-visible text messages of each first target object are sent according to the number of non-visible text messages sent to each first target object within the unit time.
[0114] The device for inspecting SMS backlog conditions provided in the embodiment of the present application obtains SMS submission requests in a pre-selected time period, extracts and stores request samples from the SMS submission requests, obtains the response time of each request sample, and determines whether there is an SMS backlog condition based on the response time of all the SMS submission requests. It can promptly discover abnormal SMS backlog conditions caused by external operators during the process of the enterprise sending SMS, and can handle them in the first time when they affect the timely sending of SMS, rather than waiting for customer complaints or user feedback to make subsequent responses.
[0115] Another embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method for checking the SMS backlog status of any of the above-mentioned embodiments.
[0116] like Figure 5 As shown, the electronic device 10 may include: a processor 100, a memory 101, a bus 102 and a communication interface 103, and the processor 100, the communication interface 103 and the memory 101 are connected through the bus 102; the memory 101 stores a computer program that can be run on the processor 100, and when the processor 100 runs the computer program, it executes the method provided in any of the aforementioned embodiments of the present application.
[0117] The memory 101 may include high-speed random access memory (RAM) and may also include non-volatile memory, such as at least one disk storage. The system network element communicates with at least one other network element via at least one communication interface 103 (which may be wired or wireless), and may utilize the Internet, a wide area network, a local area network, a metropolitan area network, or the like.
[0118] Bus 102 may be an ISA bus, a PCI bus, or an EISA bus. Buses may be classified as address buses, data buses, and control buses. Memory 101 is used to store programs, and processor 100 executes the programs upon receiving execution instructions. The methods disclosed in any of the aforementioned embodiments of the present application may be applied to or implemented by processor 100.
[0119] The processor 100 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by hardware integrated logic circuits in the processor 100 or by software instructions. The above processor 100 may be a general-purpose processor, which may include a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), an off-the-shelf field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The various methods, steps, and logic block diagrams disclosed in the embodiments of this application can be implemented or executed. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of this application can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium mature in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in the memory 101 , and the processor 100 reads the information in the memory 101 and completes the steps of the above method in combination with its hardware.
[0120] The electronic device provided in the embodiment of the present application and the method provided in the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, operated or implemented by them, namely, they can promptly discover abnormal SMS backlog conditions caused by external operators during the process of the enterprise sending SMS, and can handle them as soon as possible when it affects the timely sending of SMS, rather than waiting for customer complaints or user feedback to make a subsequent response.
[0121] The present application also provides a computer-readable storage medium corresponding to the method provided in the above embodiment, wherein the computer-readable storage medium stores a computer program, which is executed by a processor to implement the method for checking the SMS backlog status in any of the above embodiments. Figure 6 As shown, the computer-readable storage medium is a CD 20 on which a computer program (ie, a program product) is stored. When the computer program is run by a processor, the method provided by any of the aforementioned embodiments is executed.
[0122] It should be noted that examples of computer-readable storage media may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical or magnetic storage media, which are not listed here one by one.
[0123] The computer-readable storage medium provided by the above-mentioned embodiments of the present application and the method provided by the embodiments of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by the application programs stored therein, namely, they can promptly discover abnormal SMS backlog conditions caused by external operators during the process of the enterprise sending SMS messages, and can deal with them as soon as possible when they affect the timely sending of SMS messages, rather than waiting for customer complaints or user feedback to make subsequent responses.
[0124] It should be noted that:
[0125] The term "module" is not intended to be limited to a specific physical form. Depending on the specific application, a module can be implemented as hardware, firmware, software, and / or a combination thereof. In addition, different modules can share common components or even be implemented by the same components. There may or may not be clear boundaries between different modules.
[0126] The algorithm and display provided herein are not inherently related to any particular computer, virtual device or other equipment. Various general-purpose devices can also be used together with examples based on this. According to the above description, it is obvious that the structure required for constructing this type of device. In addition, the application is not directed to any specific programming language yet. It should be understood that various programming languages can be utilized to realize the content of the application described herein, and the above description of specific languages is for the purpose of disclosing the best mode of implementation of the application.
[0127] It should be understood that although the steps in the flowcharts of the accompanying drawings are shown in sequence as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some of the steps in the flowcharts of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0128] The above-described embodiments merely represent implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.
Claims
1. A method for checking the backlog of short messages, characterized in that: include: Get SMS submission requests in the pre-selected time period; Extracting and storing a request sample from the SMS submission request; The time taken to obtain a response to each of the request samples; Determining whether there is a text message backlog based on the response time of all text message submission requests; The determining whether there is a text message backlog condition based on the response time of all the text message submission requests includes: Calculate the confidence interval for each response time; If the proportion of SMS submission requests with response times within the confidence interval is lower than the preset ratio, it is determined that there is an SMS backlog.
2. The method according to claim 1, characterized in that The storing request samples includes: storing the request samples extracted from the SMS submission request in an Elastic Search cluster.
3. The method according to claim 1, characterized in that The time consumption for obtaining a response to each of the request samples includes: Get the response time corresponding to each request sample; The time difference between the response time and the submission time of each request sample is calculated, and the time difference is the corresponding response time.
4. The method according to claim 1, wherein The calculating of the confidence interval of each response time includes: using any one of a normal distribution method, a non-normal distribution method, a normal distribution or non-normal distribution method, and a binomial distribution method to calculate the confidence interval of each response time.
5. The method according to claim 1, wherein The extracting and storing a request sample from the SMS submission request includes: Setting a number for each of the SMS submission requests; Drawing a request sample according to the said number; The extracted request samples are stored.
6. The method according to claim 1, characterized in that The method for checking the SMS backlog condition further includes: if the SMS backlog condition exists, sending an alarm signal.
7. A device for checking the backlog of short messages, characterized in that: include: SMS submission request acquisition module, used to obtain SMS submission requests in a pre-selected time period; A request sample extraction module, configured to extract and store request samples from the SMS submission request; A response time acquisition module, used to obtain the response time of each request sample; A message backlog status determination module, configured to determine whether a message backlog status exists based on the response time of all the message submission requests; The SMS backlog determination module includes: Confidence interval calculation unit, used to calculate the confidence interval of each response time; The determination unit is configured to determine that a text message backlog exists if the proportion of text message submission requests whose response times are within a confidence interval is lower than a preset proportion.
8. An electronic device, characterized in that: The system comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method for detecting the backlog of short messages as claimed in any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the method for checking the SMS backlog condition as described in any one of claims 1-6.
Citation Information
Patent Citations
Short message processing method and apparatus, and computer readable storage medium
CN108966160A
Method, device and system for transmitting short message status report
WO2011116604A1