CN112672293B - Method, device and system for issuing alarm short message and electronic equipment - Google Patents

Method, device and system for issuing alarm short message and electronic equipment Download PDF

Info

Publication number
CN112672293B
CN112672293B CN202011481507.5A CN202011481507A CN112672293B CN 112672293 B CN112672293 B CN 112672293B CN 202011481507 A CN202011481507 A CN 202011481507A CN 112672293 B CN112672293 B CN 112672293B
Authority
CN
China
Prior art keywords
short message
alarm
channel
target
issuing
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.)
Active
Application number
CN202011481507.5A
Other languages
Chinese (zh)
Other versions
CN112672293A (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.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network 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 Beijing Kingsoft Cloud Network Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN202011481507.5A priority Critical patent/CN112672293B/en
Publication of CN112672293A publication Critical patent/CN112672293A/en
Application granted granted Critical
Publication of CN112672293B publication Critical patent/CN112672293B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides a method, a device and a system for issuing an alarm short message and an electronic device, wherein the method comprises the following steps: receiving an alarm short message issuing request of a first server; wherein, the alarm short message sending request carries the short message identification information; the short message identification information comprises: the method comprises the steps that a target terminal identification, a target short message template identification and a user identification of a first service end are obtained; searching whether short message identification information exists in a cache region; if the short message identification information does not exist, storing the short message identification information in a cache region, and determining a target short message channel from a plurality of alternative short message channels according to a preset polling algorithm; and sending the alarm short message corresponding to the alarm short message sending request to the terminal corresponding to the target terminal identification through the target short message channel. The method and the device can reduce the probability of the alarm short message overclocking, and timely issue the alarm short message overclocking to the target terminal, so that the operation and maintenance efficiency is improved.

Description

Method, device and system for issuing alarm short message and electronic equipment
Technical Field
The present application relates to the field of cloud short message technology, and in particular, to a method, an apparatus, a system and an electronic device for issuing an alarm short message.
Background
In the existing short message sending scheme, except that the short message server can set a short message sending frequency control strategy, a short message provider, namely a short message channel provider, can also set a frequency threshold of the short message, namely the number of short messages sent to the same mobile phone number is limited. When the short message server issues the alarm short message, the short message provider may also limit the issuance of the alarm short message based on a frequency threshold set by the short message provider itself, and for issuing the alarm short message to the operation and maintenance personnel, because the issuance of the alarm short message needs frequency control-free, the problem that a platform-level frequency control strategy of the short message channel provider cannot be avoided still exists, so that the alarm short message may not reach the terminal of the operation and maintenance personnel in time, the operation and maintenance efficiency is low, and the operation and maintenance risk exists.
Disclosure of Invention
The application aims to provide a method, a device and a system for issuing an alarm short message and an electronic device, which can reduce the probability of over-frequency of the alarm short message, and can issue the alarm short message to a target terminal in time, so that the operation and maintenance efficiency is improved.
In a first aspect, an embodiment of the present application provides a method for issuing an alarm short message, where the method is applied to a short message server, and the short message server is configured with a cache region; the cache region is configured with corresponding data cache time; the method comprises the following steps: receiving an alarm short message issuing request of a first server; wherein, the alarm short message sending request carries the short message identification information; the short message identification information comprises: the method comprises the steps that a target terminal identification, a target short message template identification and a user identification of a first service end are obtained; searching whether short message identification information exists in a cache region; if the short message identification information does not exist, storing the short message identification information in a cache region, and determining a target short message channel from a plurality of alternative short message channels according to a preset polling algorithm; and sending the alarm short message corresponding to the alarm short message sending request to the terminal corresponding to the target terminal identification through the target short message channel.
Further, the short message server also stores the corresponding relation between the short message template identification and the template type; the template types include: an alarm message type or a non-alarm message type; the method comprises the following steps of receiving an alarm short message issuing request of a first server, wherein the steps comprise: receiving a short message issuing request of a first server; the short message sending request carries a target short message template identifier; searching a template type corresponding to the target short message template identification according to the corresponding relation; and if the template type is the alarm type, determining that the short message sending request is the alarm short message sending request.
Further, the step of determining the target short message channel from the multiple candidate short message channels according to the preset polling algorithm includes: polling and selecting a current alternative short message channel from a plurality of alternative short message channels; and determining the current alternative short message channel as a target short message channel corresponding to the alarm short message issuing request.
Further, the method further comprises: and if the short message identification information exists in the cache region, sending a short message issuing error message to the first service terminal.
Further, the method further comprises: if the alarm short message is sent through the target short message channel, the error message with the frequency exceeding the limit is received, and the step of determining the target short message channel from a plurality of standby short message channels according to the preset polling algorithm is executed again; and the error information is sent by a second server corresponding to the target short message channel when the frequency of sending the alarm short message exceeds the limit.
Further, the method further comprises: if the alarm short message is sent through the target short message channel, the error message with the frequency exceeding the limit is received, and the target short message channel is set as a temporary unavailable channel; the unavailable time of the temporarily unavailable channel is a specified time length.
Furthermore, each alternative short message channel is correspondingly provided with a weight value; the weight value is used for representing the number of the short messages which can be issued in the current short message issuing period of the alternative short message channel; the weight value is negatively related to the number of the sent short messages in the current short message sending period of the alternative short message channel.
Further, the step of setting the target short message channel as the temporary unavailable channel includes: and adjusting the weight value of the target short message channel from the current value to 0.
Further, the method further comprises: and when the unavailable time of the target short message channel reaches the designated length, restoring the weight value of the target short message channel to be the current value.
Further, the initial values of the weight values corresponding to the multiple candidate short message channels are the same; the step of polling and selecting the current alternative short message channel from a plurality of alternative short message channels comprises the following steps: selecting the standby short message channel with the largest weight value as the current standby short message channel according to the weight values corresponding to the standby short message channels respectively; and if the candidate short message channels with the maximum weight values comprise a plurality of candidate short message channels, randomly selecting one of the candidate short message channels as the current candidate short message channel.
In a second aspect, an embodiment of the present application further provides a device for issuing an alarm short message, where the device is applied to a short message server, and the short message server is configured with a cache region; the cache region is configured with corresponding data cache time; the device comprises: the request receiving module is used for receiving an alarm short message issuing request of a first service end; wherein, the alarm short message sending request carries the short message identification information; the short message identification information comprises: the method comprises the steps that a target terminal identification, a target short message template identification and a user identification of a first service end are obtained; the information searching module is used for searching whether short message identification information exists in the cache region; the channel determining module is used for storing the short message identification information in the cache region when the short message identification information does not exist in the cache region, and determining a target short message channel from a plurality of standby short message channels according to a preset polling algorithm; and the short message issuing module is used for issuing the alarm short message corresponding to the alarm short message issuing request to the terminal corresponding to the target terminal identification through the target short message channel.
In a third aspect, an embodiment of the present application further provides a system for issuing an alarm short message, where the system includes: the system comprises a short message server, a server and a terminal; the short message server is connected with the server side; the server is connected with the terminal; the short message server is connected with the terminal through a short message channel; the short message server is used for executing the method of the first aspect.
In a fourth aspect, an embodiment of the present application further provides an electronic device, which includes a processor and a memory, where the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the method according to the first aspect.
In a fifth aspect, embodiments of the present application further provide a computer-readable storage medium storing computer-executable instructions, which, when invoked and executed by a processor, cause the processor to implement the method of the first aspect.
The method for sending the alarm short message is applied to a short message server, and the short message server is provided with a cache region; the cache region is configured with corresponding data cache time; after receiving an alarm short message issuing request of a first service end, a short message server firstly searches whether short message identification information carried in the alarm short message issuing request exists in a cache region; if the short message identification information does not exist, storing the short message identification information in a cache region, and determining a target short message channel from a plurality of alternative short message channels according to a preset polling algorithm; and the alarm short message corresponding to the alarm short message sending request is sent to the terminal corresponding to the target terminal identification through the target short message channel, so that only one same short message is sent within a certain time, and the target short message channel is selected in a polling mode, so that the probability of over-frequency of the alarm short message can be reduced, the alarm short message is sent to the target terminal in time, and the operation and maintenance efficiency is improved.
Drawings
In order to more clearly illustrate the detailed description of the present application or the technical solutions in the prior art, the drawings needed to be used in the detailed description of the present application or the prior art description will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a method for issuing an alarm short message according to an embodiment of the present application;
fig. 2 is a flowchart of a method for determining an alarm short message sending request according to an embodiment of the present application;
fig. 3 is a schematic diagram of an alarm short message issuing process provided in an embodiment of the present application;
fig. 4 is a block diagram of a device for issuing an alarm short message according to an embodiment of the present application;
fig. 5 is a block diagram of another apparatus for issuing an alarm short message according to an embodiment of the present disclosure;
fig. 6 is a block diagram of a system for issuing an alarm short message according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions of the present application will be described clearly and completely with reference to the following embodiments, and it should be understood that the described embodiments are some, but not all embodiments of the present application. 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, when a short message server issues an alarm short message to a terminal of an operation and maintenance person through a short message channel, the short message server is also limited by a platform-level frequency control strategy of a short message channel provider, that is, when the number of short messages issued to the same terminal exceeds a set threshold, an error message is returned, so that the alarm short message cannot reach the terminal of the operation and maintenance person in time, the operation and maintenance efficiency is low, and the operation and maintenance risk exists. Based on this, the embodiment of the application provides a method, a device, a system and an electronic device for issuing an alarm short message, which can reduce the probability of over-frequency of the alarm short message, and issue the alarm short message to a target terminal in time, thereby improving the operation and maintenance efficiency.
Fig. 1 is a flowchart of a method for issuing an alarm short message according to an embodiment of the present application, where the method is applied to a short message server, and the short message server is configured with a cache region; the cache region is configured with corresponding data cache time, and the data cache time can be set differently according to actual conditions, for example, in the embodiment of the present application, the initial value of the data cache time can be set to 10s, and then continuous tuning and optimization can be performed according to the issuing condition of subsequent alarm short messages, so as to achieve the effect that the alarm short messages avoid the platform-level frequency control policy of the short message channel provider, so that the alarm short messages are issued to the target terminal in time, and the operation and maintenance efficiency is improved.
The method for issuing the alarm short message specifically comprises the following steps:
step S102, receiving an alarm short message issuing request of a first server; wherein, the alarm short message sending request carries the short message identification information.
The short message identification information includes: the system comprises a target terminal identification, a target short message template identification and a user identification of a first service end. The target terminal identifier is a mobile phone number corresponding to the terminal, that is, a mobile phone number of the operation and maintenance personnel, because the alarm short message is usually issued to the operation and maintenance personnel. The target short message template mark can be one or a string of characters or other marks used for distinguishing the short message template. The first service end may be a service end corresponding to an enterprise or a company, such as an online shopping platform service end, a game platform service end, a bank platform service end, and the like, and the user identifier of the first service end is account information corresponding to the first service end, and the client corresponding to the short message server may be logged in through the account information, so that some conventional settings or operations and the like are performed on the client.
And step S104, searching whether short message identification information exists in the cache region.
The short message identification information consisting of the target terminal identification, the target short message template identification and the user identification of the first service end can determine a unique short message, that is, the short message identification information can correspond to the unique short message. The short message identification information can be cached in the cache region, and the short message identification information stored in the cache region can be automatically cleared after the set caching time is reached.
The short message identification information is searched in the cache region, whether the alarm short message requested by the alarm short message sending request is sent or not can be judged, if the short message identification information exists in the cache region, the alarm short message requested by the alarm short message sending request can be judged, and at the moment, short message sending error information can be returned to the first service terminal. If the short message identification information does not exist in the cache region, the alarm short message which is requested to be issued by the alarm short message issuing request can be judged to be issued for the first time, and the following steps can be executed:
and step S106, if the short message identification information does not exist in the cache region, storing the short message identification information in the cache region, and determining a target short message channel from a plurality of standby short message channels according to a preset polling algorithm.
The short message identification information which does not exist in the cache region is firstly stored in the cache region, so that the alarm short message which is requested to be issued by the alarm short message issuing request is prevented from being issued again within the cache time. And then, determining a target short message channel from the multiple alternative short message channels based on a polling algorithm, wherein the polling algorithm is used for balancing the short message sending quantity of each alternative short message channel so as to reduce the probability of short message quantity overrun sent to the same terminal.
And step S108, sending the alarm short message corresponding to the alarm short message sending request to the terminal corresponding to the target terminal identification through the target short message channel.
After the target short message channel is determined, the alarm short message requested to be issued by the alarm short message issuing request is further sent to the terminal corresponding to the target terminal identification.
In the method for issuing the alarm short message provided by the embodiment of the application, after the short message server receives the alarm short message issuing request of the first service end, whether short message identification information carried in the alarm short message issuing request exists or not is searched in a cache region; if the short message identification information does not exist, storing the short message identification information in a cache region, and determining a target short message channel from a plurality of alternative short message channels according to a preset polling algorithm; and the alarm short message corresponding to the alarm short message sending request is sent to the terminal corresponding to the target terminal identification through the target short message channel, so that only one same short message is sent within a certain time, and the probability of alarm short message over-frequency can be reduced by selecting the target short message channel in a polling mode, so that the alarm short message is sent to the target terminal in time, and the operation and maintenance efficiency is improved.
In order to determine whether the request received by the short message server is an alarm short message issuing request, in the embodiment of the application, the short message server also stores a corresponding relation between a short message template identifier and a template type; the template types include: an alarm message type or a non-alarm message type; specifically, the process for determining the request for issuing the alarm short message can be implemented through the flow chart shown in fig. 2:
step S202, receiving a short message issuing request of a first server; the short message sending request carries a target short message template identification.
And step S204, searching the template type corresponding to the target short message template identification according to the corresponding relation.
Step S206, if the template type is the alarm type, the short message sending request is determined to be the alarm short message sending request.
It should be noted that the correspondence between the short message template identifier and the template type may be set in advance by the first service end according to the needs of the first service end, for example, a tag of an alarm short message type is configured for the short message template identifier uploaded by the first service end. The short message server can generate the corresponding relation between the short message template identification and the template type.
In order to reduce the over-frequency probability of the alarm short message, a polling algorithm is adopted in the embodiment of the application to determine the target short message channel, and the specific process is as follows:
polling and selecting a current alternative short message channel from a plurality of alternative short message channels; and determining the current alternative short message channel as a target short message channel corresponding to the alarm short message issuing request.
For example, there are A, B, C alternative short message channels, so that when a short message is sent for the first time, the short message can be sent through the alternative short message channel a, sent through the alternative short message channel B for the second time, sent through the alternative short message channel C for the third time, and sent through the alternative short message channel a for the fourth time, and the process is repeated. The method can balance the short message sending amount of each channel as much as possible, so as to reduce the probability of short message sending overrun and reduce the short message sending overrun condition.
Of course, the method for sending an alarm short message provided in the embodiment of the present application may not completely avoid a platform-level frequency control policy of a short message channel provider, or may still cause an over-frequency condition, and in this case, the following steps may be performed:
if the alarm short message is sent through the target short message channel, the error message with the frequency exceeding the limit is received, and the step of determining the target short message channel from a plurality of standby short message channels according to the preset polling algorithm is executed again; and the error information is sent by a second server corresponding to the target short message channel when the frequency of sending the alarm short message exceeds the limit.
Also taking the above example as an example, for example, after the target short message channel determined by the polling algorithm is the alternative short message channel a, after the alarm short message is issued through the alternative short message channel a, the number of times of issuing the short message of the terminal corresponding to the alarm short message exceeds the number threshold set by the alternative short message channel a, then the second server corresponding to the alternative short message channel a will send the error message with the frequency exceeding the limit to the short message server, and at this time, the short message server may execute the above steps again: and determining a target short message channel from the multiple alternative short message channels according to a preset polling algorithm, and circulating the steps until the alarm short message can be successfully issued.
In addition, in order to improve the channel selection efficiency, the channel setting operation can be carried out, in the embodiment of the application, if the alarm short message is sent through the target short message channel, the error message with the over-limit frequency is received, and the target short message channel is set as a temporary unavailable channel; the unavailable time of the temporarily unavailable channel is a specified time length.
In a preferred embodiment, each alternative short message channel corresponds to a weight value; the weight value is used for representing the number of the short messages which can be issued in the current short message issuing period of the alternative short message channel; the weight value is negatively related to the number of the sent short messages in the current short message sending period of the alternative short message channel.
That is to say, in the current short message sending period, the number of short messages that can be sent is limited in each alternative short message channel, and as the number of short messages sent increases, the weight value corresponding to the alternative short message channel gradually decreases. For example, the current weight value of the alternative short message channel a is 20, and after a short message is sent through the alternative short message channel a, the weight value of the alternative short message channel a is changed to 19, and so on.
The step of setting the target short message channel as the temporary unavailable channel may be implemented by adjusting a weight value, for example, adjusting the weight value of the target short message channel from a current value to 0. When the weight value of the alternative short message channel is changed to 0, the alternative short message channel is not used for sending short messages, the use of the alternative short message channel is suspended, and the alternative short message channel is not considered when the target short message channel is selected in a polling mode.
The time length for suspending the use of the alternative short message channel can be set differently according to the actual situation, for example, an initial value of one hour is set, and in the actual application, the time length can be continuously adjusted and optimized according to the issuing situation of the alarm short message.
The above method further comprises the steps of: and when the unavailable time of the target short message channel reaches the designated length, restoring the weight value of the target short message channel to be the current value. Namely, the selection right of the target short message channel is recovered.
When the candidate short message channels are provided with weight values, the candidate short message channel with a larger weight value is usually selected as a target short message channel, initial values of the weight values of the candidate short message channels can be set to be the same or different, and in order to better perform channel polling selection, the initial values of the weight values corresponding to the multiple candidate short message channels can be set to be the same. Thus, the current alternative short message channel can be selected from a plurality of alternative short message channels by polling based on the following two strategies:
(1) selecting the standby short message channel with the largest weight value as the current standby short message channel according to the weight values corresponding to the standby short message channels respectively;
(2) and if the candidate short message channels with the maximum weight values comprise a plurality of candidate short message channels, randomly selecting one of the candidate short message channels as the current candidate short message channel.
For example, the weight values of the candidate short message channel A, B, C in the current short message delivery cycle are 20, and 20, respectively. Then, when the alarm short message is delivered for the first time, a channel is randomly selected, for example, the alternative short message channel a is selected as the target short message channel to be delivered, at this time, the weight value of the alternative short message channel A, B, C in the current short message delivery cycle will be changed to 19, 20, when an alarm short message request comes again, and when the short message identification information carried by the alarm short message request does not exist in the buffer area, the alarm short message can be delivered from any one of the alternative short message channels B, C with a larger weight value, and so on.
Referring to fig. 3, after receiving an alarm short message issuing request from a first service end, a short message server searches whether short message identification information carried in the request exists in a cache region, if so, the short message server directly sends short message issuing error information to the first service end, and if not, a target short message channel is determined through a polling algorithm, and the alarm short message is issued to a user terminal through the target short message channel. If error information returned by the alarm short message triggering frequency control interface is received in the short message sending process, the target short message channel is determined again through a polling algorithm, the weight value of the target short message channel is set to be 0, and the weight value of the target short message channel is restored after the specified duration.
According to the method for issuing the alarm short message, only one same short message is issued within a certain time, and the target short message channel is selected in a polling mode, so that the probability of over-frequency of the alarm short message can be reduced, the alarm short message is issued to the target terminal in time, and the operation and maintenance efficiency is improved.
Based on the method embodiment, the embodiment of the application also provides a device for sending the alarm short message, which is applied to a short message server, wherein the short message server is provided with a cache region; the cache region is configured with corresponding data cache time; referring to fig. 4, the apparatus includes:
a request receiving module 402, configured to receive an alarm short message issuing request of a first service end; wherein, the alarm short message sending request carries the short message identification information; the short message identification information comprises: the method comprises the steps that a target terminal identification, a target short message template identification and a user identification of a first service end are obtained; an information searching module 404, configured to search whether short message identification information exists in the cache region; a channel determination module 406, configured to store the short message identification information in the cache region when the short message identification information does not exist in the cache region, and determine a target short message channel from the multiple candidate short message channels according to a preset polling algorithm; the short message issuing module 408 is configured to issue an alarm short message corresponding to the alarm short message issuing request to the terminal corresponding to the target terminal identifier through the target short message channel.
In another possible implementation manner, the short message server further stores a corresponding relationship between the short message template identifier and the template type; the template types include: an alarm message type or a non-alarm message type; the request receiving module 402 is further configured to: receiving a short message issuing request of a first server; the short message sending request carries a target short message template identifier; searching a template type corresponding to the target short message template identification according to the corresponding relation; and if the template type is the alarm type, determining that the short message sending request is the alarm short message sending request.
In another possible implementation manner, the channel determining module 406 is further configured to: polling and selecting a current alternative short message channel from a plurality of alternative short message channels; and determining the current alternative short message channel as a target short message channel corresponding to the alarm short message issuing request.
In another possible implementation, referring to fig. 5, the apparatus further includes a feedback module 410, configured to: if the alarm short message is sent through the target short message channel, the error message with the frequency exceeding the limit is received, and the step of determining the target short message channel from a plurality of standby short message channels according to the preset polling algorithm is executed again; and the error information is sent by a second server corresponding to the target short message channel when the frequency of sending the alarm short message exceeds the limit.
In another possible implementation, the apparatus further includes an information sending module 412, configured to: and if the short message identification information exists in the cache region, sending a short message issuing error message to the first service terminal.
In another possible implementation manner, the apparatus further includes a channel setting module 414, configured to set the target short message channel as a temporary unavailable channel if an error message with an out-of-limit frequency is received after the alarm short message is sent through the target short message channel; the unavailable time of the temporarily unavailable channel is a specified time length.
In another possible implementation, each of the candidate short message channels has a weight value; the weight value is used for representing the number of the short messages which can be issued in the current short message issuing period of the alternative short message channel; the weight value is negatively related to the number of the sent short messages in the current short message sending period of the alternative short message channel.
In another possible implementation manner, the channel setting module 414 is further configured to adjust the weight value of the target short message channel from the current value to 0.
In another possible embodiment, the above apparatus further comprises: and a weight recovery module 416, configured to recover the weight value of the target short message channel to be a current value when the unavailable time of the target short message channel reaches a specified length.
In another possible implementation manner, the initial values of the weight values corresponding to the multiple candidate short message channels are the same; the channel determining module 406 is further configured to select, according to weight values corresponding to the multiple candidate short message channels, a candidate short message channel with a largest weight value as a current candidate short message channel; and if the candidate short message channels with the maximum weight values comprise a plurality of candidate short message channels, randomly selecting one of the candidate short message channels as the current candidate short message channel.
The implementation principle and the generated technical effect of the device for issuing the alarm short message provided by the embodiment of the application are the same as those of the embodiment of the method for issuing the alarm short message, and for the sake of brief description, corresponding contents in the embodiment of the method for issuing the alarm short message may be referred to where the embodiment of the device for issuing the alarm short message is not mentioned.
Based on the above method embodiment, an embodiment of the present application further provides a system for issuing an alarm short message, as shown in fig. 6, where the system includes: a short message server 62 and a first server 64; the short message server 62 is connected with the first service end 64; the short message server 62 is used for executing the sending method of the alarm short message.
The implementation principle and the generated technical effect of the system for issuing an alarm short message provided by the embodiment of the present application are the same as those of the method embodiment described above, and for brief description, reference may be made to corresponding contents in the method embodiment described above for the part of the embodiment of the system for issuing an alarm short message that is not mentioned.
An electronic device is further provided in the embodiment of the present application, as shown in fig. 7, which is a schematic structural diagram of the electronic device, where the electronic device includes a processor 71 and a memory 70, the memory 70 stores computer-executable instructions that can be executed by the processor 71, and the processor 71 executes the computer-executable instructions to implement the method.
In the embodiment shown in fig. 7, the electronic device further comprises a bus 72 and a communication interface 73, wherein the processor 71, the communication interface 73 and the memory 70 are connected by the bus 72.
The Memory 70 may include a high-speed Random Access Memory (RAM) and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 73 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used. The bus 72 may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus 72 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 7, but this does not indicate only one bus or one type of bus.
The processor 71 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 71. The Processor 71 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and the processor 71 reads information in the memory and performs the steps of the method of the previous embodiment in combination with hardware thereof.
Embodiments of the present application further provide a computer-readable storage medium, where computer-executable instructions are stored, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to implement the method, and specific implementation may refer to the foregoing method embodiments, and is not described herein again.
The method, the apparatus, and the computer program product of the electronic device provided in the embodiments of the present application include a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiments, and specific implementation may refer to the method embodiments, and will not be described herein again.
Unless specifically stated otherwise, the relative steps, numerical expressions, and values of the components and steps set forth in these embodiments do not limit the scope of the present application.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In the description of the present application, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, and do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present application. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the exemplary embodiments of the present application, and are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (13)

1. The method for issuing the alarm short message is characterized in that the method is applied to a short message server, and the short message server is provided with a cache region; the cache region is configured with corresponding data cache time; the method comprises the following steps:
receiving an alarm short message issuing request of a first server; wherein, the alarm short message sending request carries the short message identification information; the short message identification information comprises: a target terminal identification, a target short message template identification and a user identification of the first service end;
searching whether the short message identification information exists in the cache region;
if the short message identification information does not exist, storing the short message identification information in the cache region, and determining a target short message channel from a plurality of standby short message channels according to a preset polling algorithm; sending an alarm short message corresponding to the alarm short message sending request to a terminal corresponding to the target terminal identification through the target short message channel;
if the short message identification information exists in the cache region, the short message issuing error information is directly sent to the first service terminal, so that only one same short message is issued within the data cache time.
2. The method according to claim 1, wherein the short message server further stores a corresponding relationship between a short message template identifier and a template type; the template types include: an alarm message type or a non-alarm message type;
the method comprises the following steps of receiving an alarm short message issuing request of a first server, wherein the steps comprise:
receiving a short message issuing request of the first service terminal; the short message sending request carries a target short message template identification;
searching the template type corresponding to the target short message template identification according to the corresponding relation;
and if the template type is the alarm type, determining that the short message issuing request is the alarm short message issuing request.
3. The method of claim 1, wherein the step of determining the target short message channel from the plurality of candidate short message channels according to a preset polling algorithm comprises:
polling and selecting a current alternative short message channel from a plurality of alternative short message channels;
and determining the current alternative short message channel as a target short message channel corresponding to the alarm short message issuing request.
4. The method of claim 1, further comprising:
if the alarm short message is transmitted through the target short message channel, the error message with the frequency exceeding the limit is received, and the target short message channel is determined from a plurality of standby short message channels according to the preset polling algorithm; and the error information is sent by a second server corresponding to the target short message channel when the frequency of sending the alarm short message exceeds the limit.
5. The method of claim 1, further comprising:
if the alarm short message is sent through the target short message channel, the error message with the frequency exceeding the limit is received, and the target short message channel is set as a temporary unavailable channel; the unavailable time of the temporarily unavailable channel is a specified time length.
6. The method according to any one of claims 1-5, wherein each of the candidate short message channels corresponds to a weight value; the weight value is used for representing the number of the short messages which can be issued in the current short message issuing period of the alternative short message channel; the weight value is negatively related to the number of the sent short messages of the alternative short message channel in the current short message sending period.
7. The method of claim 6, wherein the step of setting the target short message channel as a temporary unavailable channel comprises:
and adjusting the weight value of the target short message channel from the current value to 0.
8. The method of claim 7, further comprising:
and when the unavailable time of the target short message channel reaches a specified length, restoring the weight value of the target short message channel to be the current value.
9. The method of claim 6, wherein polling the current alternative short message channel from the plurality of alternative short message channels comprises:
selecting the standby short message channel with the largest weight value as the current standby short message channel according to the weight values corresponding to the standby short message channels respectively;
and if the candidate short message channels with the maximum weight values comprise a plurality of candidate short message channels, randomly selecting one of the candidate short message channels as the current candidate short message channel.
10. The device for issuing the alarm short message is characterized in that the device is applied to a short message server, and the short message server is provided with a cache region; the cache region is configured with corresponding data cache time; the device comprises:
the request receiving module is used for receiving an alarm short message issuing request of a first service end; wherein, the alarm short message sending request carries the short message identification information; the short message identification information comprises: a target terminal identification, a target short message template identification and a user identification of the first service end;
the information searching module is used for searching whether the short message identification information exists in the cache region;
the channel determining module is used for storing the short message identification information in the cache region when the short message identification information does not exist in the cache region, and determining a target short message channel from a plurality of standby short message channels according to a preset polling algorithm;
the short message issuing module is used for issuing the alarm short message corresponding to the alarm short message issuing request to the terminal corresponding to the target terminal identification through the target short message channel;
and the information sending module is used for directly sending short message issuing error information to the first service end when the short message identification information exists in the cache region so as to ensure that only one same short message is issued within the data cache time.
11. A system for sending an alarm short message is characterized by comprising: the system comprises a short message server and a first service end;
the short message server is connected with the first service end;
the short message server is used for executing the method of any one of claims 1-9.
12. An electronic device comprising a processor and a memory, the memory storing computer-executable instructions executable by the processor, the processor executing the computer-executable instructions to implement the method of any of claims 1 to 9.
13. A computer-readable storage medium having computer-executable instructions stored thereon which, when invoked and executed by a processor, cause the processor to implement the method of any of claims 1 to 9.
CN202011481507.5A 2020-12-15 2020-12-15 Method, device and system for issuing alarm short message and electronic equipment Active CN112672293B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011481507.5A CN112672293B (en) 2020-12-15 2020-12-15 Method, device and system for issuing alarm short message and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011481507.5A CN112672293B (en) 2020-12-15 2020-12-15 Method, device and system for issuing alarm short message and electronic equipment

Publications (2)

Publication Number Publication Date
CN112672293A CN112672293A (en) 2021-04-16
CN112672293B true CN112672293B (en) 2022-04-19

Family

ID=75405150

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011481507.5A Active CN112672293B (en) 2020-12-15 2020-12-15 Method, device and system for issuing alarm short message and electronic equipment

Country Status (1)

Country Link
CN (1) CN112672293B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102364967A (en) * 2011-11-21 2012-02-29 携程计算机技术(上海)有限公司 Short message transmission method and system
CN106255080A (en) * 2016-09-27 2016-12-21 上海斐讯数据通信技术有限公司 The sending method of note and system
CN106878967A (en) * 2017-03-10 2017-06-20 北京百悟科技有限公司 Note transmission method and device
CN111065061A (en) * 2019-11-25 2020-04-24 佛山欧神诺云商科技有限公司 Short message request sending system and method based on multiple channels and storage medium
CN112020024A (en) * 2020-07-24 2020-12-01 上海淇玥信息技术有限公司 Short message sending management method, system and electronic equipment

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100279709B1 (en) * 1997-10-18 2001-02-01 윤종용 Apparatus and method for transmitting short message in a mobile radio terminal
US8600415B2 (en) * 2007-06-25 2013-12-03 Mcore International, Inc. System and method for distributing advertisements to third-party SMS content providers
CN101350957B (en) * 2008-07-28 2011-04-06 杨沁沁 Method and equipment for shielding rubbish short message
CN102487494B (en) * 2009-10-26 2015-05-13 中国电信股份有限公司 Short message flow control method and system
CN101977358A (en) * 2010-09-26 2011-02-16 北京握奇数据系统有限公司 Method, device and equipment for transmitting data short messages
CN103002415B (en) * 2011-09-15 2015-08-26 阿里巴巴集团控股有限公司 A kind of method and apparatus by short message sending identifying code
CN102638417B (en) * 2012-03-27 2016-06-29 广州市动景计算机科技有限公司 The communication means of information, Apparatus and system
CN106131347A (en) * 2016-08-30 2016-11-16 广州市玄武无线科技股份有限公司 A kind of method and device limiting short message sending number of times
CN108933993B (en) * 2018-07-03 2021-08-24 平安科技(深圳)有限公司 Short message cache queue selection method and device, computer equipment and storage medium
CN111010676B (en) * 2019-12-13 2020-11-17 广州市玄武无线科技股份有限公司 Short message caching method, device and system
CN111093162A (en) * 2019-12-18 2020-05-01 上海良鑫网络科技有限公司 Method for intelligently selecting short message sending channel

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102364967A (en) * 2011-11-21 2012-02-29 携程计算机技术(上海)有限公司 Short message transmission method and system
CN106255080A (en) * 2016-09-27 2016-12-21 上海斐讯数据通信技术有限公司 The sending method of note and system
CN106878967A (en) * 2017-03-10 2017-06-20 北京百悟科技有限公司 Note transmission method and device
CN111065061A (en) * 2019-11-25 2020-04-24 佛山欧神诺云商科技有限公司 Short message request sending system and method based on multiple channels and storage medium
CN112020024A (en) * 2020-07-24 2020-12-01 上海淇玥信息技术有限公司 Short message sending management method, system and electronic equipment

Also Published As

Publication number Publication date
CN112672293A (en) 2021-04-16

Similar Documents

Publication Publication Date Title
US10225145B2 (en) Method and device for updating client
CN113132267B (en) Distributed system, data aggregation method and computer readable storage medium
CN111641563B (en) Flow self-adaption method and system based on distributed scene
US11450042B2 (en) Data processing for generating a random walk sequence
CN107819825A (en) A kind of service scheduling method, device and electronic equipment
CN111432039A (en) Data request method, device and equipment in CDN and CDN node
CN109600254B (en) Method for generating full-link log and related system
CN111291252A (en) Method and device for adjusting query rate per second, electronic equipment and storage medium
CN112672293B (en) Method, device and system for issuing alarm short message and electronic equipment
CN110460487B (en) Service node monitoring method and system and service node
CN110460486B (en) Service node monitoring method and system
CN108880913B (en) traffic characteristic management method and device and central node server
CN112654004B (en) Short message issuing method, device and system and electronic equipment
CN109361658B (en) Industrial control industry-based abnormal flow information storage method and device and electronic equipment
CN117081844A (en) Network attack detection method, device, equipment and medium
CN112654005B (en) Short message channel configuration method and short message issuing method, device and system
CN109361714B (en) User login authentication method, device, equipment and computer storage medium
CN106815334A (en) A kind of data query method and device for terminal
CN111835504A (en) Identification code generation method and server
CN110659247A (en) Method, device, equipment and medium for detecting continuity of call ticket file
CN105847030A (en) Information processing method and electronic equipment
CN112654006A (en) Short message service processing method and device and electronic equipment
CN111193692A (en) Request response method, device, edge node and authentication system
CN111191234A (en) Method and device for detecting virus information
CN114650252B (en) Routing method and device based on enterprise service bus and computer equipment

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