WO2017152765A1 - Automatic fusing-based message sending method, device and system - Google Patents

Automatic fusing-based message sending method, device and system Download PDF

Info

Publication number
WO2017152765A1
WO2017152765A1 PCT/CN2017/074622 CN2017074622W WO2017152765A1 WO 2017152765 A1 WO2017152765 A1 WO 2017152765A1 CN 2017074622 W CN2017074622 W CN 2017074622W WO 2017152765 A1 WO2017152765 A1 WO 2017152765A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
feature
blacklist
sending
request
Prior art date
Application number
PCT/CN2017/074622
Other languages
French (fr)
Chinese (zh)
Inventor
胡晶晶
Original Assignee
阿里巴巴集团控股有限公司
胡晶晶
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 阿里巴巴集团控股有限公司, 胡晶晶 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2017152765A1 publication Critical patent/WO2017152765A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/212Monitoring or handling of messages using filtering or selective blocking

Definitions

  • the present application relates to the field of communications technologies, and in particular, to a method, an apparatus, and a system for automatically transmitting a message.
  • the electronic trading platform sends the message to the user, for example, the mail notifies the transaction result, and the short message informs whether the payment is successful, but if it is short through some channel
  • Sending a large number of messages to the user during the time is likely to cause blocking of the notification channel of the user.
  • the notification channel is a mailbox, and the user's mailbox receives a large amount of messages in a short time, which may cause the mailbox capacity to overflow or the important mail of the user to be drowned in a large number of notifications. In the message, this will affect the user's normal use of the mailbox.
  • the number of such messages is generally counted by counting every time a message is sent, and the sending of the message is cancelled if the number of transmissions exceeds the threshold.
  • the notification channels used by the user are various.
  • the system needs to perform the counting operation in the database every time the message is sent, so that the data write concurrency is large, which affects the system to send messages. Processing efficiency.
  • an automatic fuse message sending method, device and system can improve the sending. The efficiency of the message and the harassment of users by similar messages.
  • An embodiment of the present application provides an automatic fuse message sending method, including
  • the embodiment of the present application further provides an automatic fuse message sending method, including
  • the embodiment of the present application further provides an automatic fuse message processing apparatus, including
  • a receiving unit configured to receive a request for sending a message, and obtain a feature in the request for sending the message
  • a verification unit configured to perform blacklist verification according to the feature
  • the processing unit is configured to: after the blacklist is verified, send a corresponding message, and generate a log of the current sending message according to the feature.
  • the embodiment of the present application further provides an automatic fuse breaking accounting device, including
  • a synchronization unit for synchronizing logs of the message processing system
  • a calculating unit configured to accumulate the number of messages having the same feature according to the log
  • the processing unit is configured to determine whether the quantity exceeds a quantity threshold, and if yes, add the feature to the blacklist.
  • the embodiment of the present application further provides an automatic fuse message processing system, including a message processing device and a billing device.
  • the message processing apparatus is configured to receive a request for sending a message, and obtain a feature in the request for sending the message, perform blacklist verification according to the feature, and send a corresponding message after being verified by the blacklist, and according to the The feature generates a log of the current sent message;
  • the accounting device is configured to synchronize the logs of the message processing system, and according to the number of the same feature messages accumulated in the log, determine whether the quantity exceeds a quantity threshold, and if yes, add the feature to the blacklist.
  • the technical solution provided by the embodiment of the present application can implement logical control on a message sent to a user, and if the sent message is in a blacklist, the message is not sent, thereby avoiding message harassment to the user; The processing speed at which the message processing system sends messages.
  • FIG. 2 is a flowchart of a method for sending an automatic fuse message according to an embodiment of the present application
  • FIG. 3 is a flowchart of a method for sending an automatic fuse message according to an embodiment of the present application
  • FIG. 4 is a schematic structural diagram of an automatic fuse message processing apparatus according to an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of an automatic fuse billing apparatus according to an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of an automatic fuse message processing system according to an embodiment of the present application.
  • FIG. 7 is a specific flowchart of an automatic fuse message processing system in processing a message according to an embodiment of the present application.
  • FIG. 8 is a specific flowchart of an automatic fuse message processing system in processing a message according to an embodiment of the present application.
  • the embodiment of the present application provides a method, an apparatus, and a system for automatically transmitting a message.
  • FIG. 1 it is an overall flowchart of a message sending method in the prior art.
  • the steps of counting the number of statistical messages and determining whether to send or not are all processed in the message processing system, thereby causing the efficiency of message sending. Low problem.
  • the foregoing prior art specifically includes the service system initiating a message request to the message processing system, and performing a pre-check and a blacklist check on the sending message request in the message processing system, wherein the blacklist check refers to determining Whether the message (channel + service information) sent this time belongs to the blacklist. If the blacklist indicates that the service information sent through the channel has exceeded the threshold, it has already affected the user. After passing the blacklist check, it is necessary to determine whether the message to be sent and the previous send record have an impact on the user, that is, the query for the number of sent messages and the number of schools described in the figure. If the verification of the number of sent messages mentioned above is passed, the calling gateway sends the current message; finally, the current sending message is recorded in the accounting system, that is, 1 is added to the sending message record in the accounting system.
  • the blacklist check refers to determining Whether the message (channel + service information) sent this time belongs to the blacklist. If the blacklist indicates that the service information sent through the channel has exceeded the threshold, it
  • FIG. 2 is a flowchart of a method for sending an automatic fuse message according to an embodiment of the present application, where the workflow in the message processing system is described, and the message processing in the present application is compared with the prior art.
  • the system does not perform the steps of querying, verifying, accounting, etc. of the sent message, but merely determining whether to send the message by verifying the blacklist, simplifying the message sending process, and completing the control by the accounting system to operate the blacklist.
  • the purpose of sending a message is to reduce the interruption of the same type of message to the user, and avoid the problem that the user's notification channel is blocked by sending a large number of messages to the user through the same notification channel.
  • Step 201 Receive a message request, and obtain a feature in the message request.
  • Step 202 Perform blacklist verification according to the feature.
  • Step 203 After the blacklist is verified, the corresponding message is sent, and a log of the current sent message is generated according to the feature.
  • the sending a message request includes at least:
  • the target user and business information of the message Or, the target user and business information of the message.
  • the channel for sending the message includes the mobile phone number, email address, and client of the target user.
  • Etc. wherein the mobile phone number is used to send a short message to the user, and the email address is used to send a mail to the user, and the client is used to send a notification message to the client of the user, for example, to send a payment success message to the Alipay client of the user smart terminal.
  • the service information includes a service type, and may also include information such as a service message content, where the service message content is, for example, “Your XXXX order payment is successful”, “Your XXX order is successfully transferred”, and the service type may be, for example, a payment.
  • Successful (or failed) messages, successful (or failed) messages, notification messages for goods have been shipped, etc.
  • These business information can be determined by channel, for example, when the channel is a mobile number, the business information may be Only simple text information is included. When the channel is an email address, the business information may include multimedia content such as text and images.
  • the method for obtaining the request for sending the message further includes: analyzing the channel for sending the message according to the target user information.
  • the target user when the request for sending a message does not include a channel, then the target user needs to be included. Since a user may have multiple channels of communication, it may include a mobile phone number, an email address, a client terminal, etc., and which channel is used to send the message. The selection can be judged according to various conditions. For example, if most of the user's login operation is performed on the client on the mobile phone, the notification message can be selected to be sent by the client, and if the user browses the product, the operation is through the computer. If you are done, you can choose SMS or email to send a message. Just specify which user (target user) to send the message to.
  • performing blacklist verification according to the feature further includes determining whether the feature exists in the blacklist, and if not, transmitting the message.
  • the feature includes at least a channel and a service type, and may also include time information of the sent message.
  • the log includes at least a channel and a service type for sending a message.
  • the log may further include time information for sending a message, and the log may be stored locally in the message processing device.
  • the foregoing channel may be in the form of an alphabetic string or a numeric string, or may also be a string composed of a mixture of letters and numbers
  • the business information may be a code of a business type
  • the code of the business type may identify a service type. Convert to specific text information when sent to the user.
  • the method of the embodiment of the present application can implement logical control on a message sent to a user. If the sent message is in a blacklist, the message is not sent, thereby avoiding message harassment to the user; and the message processing system is improved. The processing speed of sending messages.
  • FIG. 3 is a flowchart of a method for sending an automatic fuse message according to an embodiment of the present application.
  • the workflow of the accounting system is mainly described in the figure.
  • the method is to separate the processing log from the message processing system.
  • the method in the accounting system is combined with the method of the embodiment shown in FIG. 2 to complete the control message transmission, so as to avoid sending too much information of the same service type to the user through the same channel.
  • the method includes the step 301 of synchronizing the log of the message processing system.
  • Step 302 Accumulate the number of identical feature messages according to the log.
  • Step 303 Determine whether the quantity exceeds a quantity threshold, and if yes, add the feature to the blacklist.
  • the feature includes at least a channel for transmitting a message and a type of service.
  • the feature further includes time information of the sent message.
  • determining whether the quantity exceeds a predetermined threshold further includes determining whether the quantity exceeds a quantity threshold within a certain time, and if yes, adding the feature to a blacklist.
  • the situation is considered to be interference to the user, for example, sending the message to the user by using the short message of the mobile phone within 1 minute. If the number of successful payment messages exceeds 10, it is considered that this situation is a disturbance to the user. If more than 10 messages are sent to the user through the short message of the mobile phone within one hour, the situation is considered not to be the case. Belong to the user Interference.
  • the method further includes: determining time information of the feature in the blacklist, and if the interval between the time information and the current time exceeds a time threshold, deleting the feature from the blacklist .
  • the blacklist is updated at a time.
  • a certain type of service information sent through a certain channel does not appear for a certain period of time, it indicates that the type of service information sent through the channel does not interfere with the user. This information should be allowed to continue to be sent, rather than always blocking the transmission of such information.
  • the log of the sent message can be recorded in an asynchronous manner, and the log is analyzed and the blacklist is updated in a billing system independent of the message processing system, so that only the message processing system sends the message. It is necessary to judge the blacklist, which improves the processing efficiency of the message processing system to send messages.
  • FIG. 4 is a schematic structural diagram of an automatic fuse message processing apparatus according to an embodiment of the present application.
  • the apparatus may be configured by using a logic circuit or a special chip (for example, an FPGA), or implemented by an existing high performance computer, wherein Some of the functional units may be implemented by one hardware device alone, or several functional units may be implemented by one or more hardware devices, including:
  • the receiving unit 401 is configured to receive a request for sending a message, and obtain a feature in the request for sending the message.
  • the verification unit 402 is configured to perform blacklist verification according to the feature.
  • the processing unit 403 is configured to: after the blacklist is verified, send a corresponding message, and generate a log of the current sent message according to the feature.
  • the sending a message request includes at least:
  • the target user and business information of the message Or, the target user and business information of the message.
  • the receiving unit is further configured to analyze, according to the target user information, a channel for sending a message.
  • the checking unit is further configured to determine whether the feature exists in the blacklist, and if not, send the message.
  • FIG. 5 is a schematic structural diagram of an automatic fuse billing apparatus according to an embodiment of the present application.
  • the apparatus may be formed by using a logic circuit or a special chip (for example, an FPGA), or implemented by an existing high performance computer, wherein Some of the functional units may be implemented by one hardware device alone, or several functional units may be implemented by one or more hardware devices, including:
  • the synchronization unit 501 is configured to synchronize the logs of the message processing system.
  • the calculating unit 502 is configured to accumulate the number of the same feature message according to the log.
  • the processing unit 503 is configured to determine whether the quantity exceeds a quantity threshold, and if yes, add the feature to the blacklist.
  • the feature includes at least a channel for transmitting a message and a type of service.
  • the feature further includes time information of the sent message.
  • the processing unit is further configured to determine whether the quantity exceeds a quantity threshold within a certain time, and if yes, add the feature to a blacklist.
  • the method further includes an updating unit 504, determining time information of features in the blacklist, and if the interval between the time information and the current time exceeds a time threshold, the feature is from the black Remove from the list.
  • FIG. 6 is a schematic structural diagram of an automatic fuse message processing system according to an embodiment of the present application, and the message processing apparatus and the accounting apparatus in the embodiment shown in FIG. 4 and FIG. 5 are included in the figure, wherein:
  • the message processing device 601 is configured to receive a request for sending a message, and obtain a feature in the request for sending the message, perform blacklist verification according to the feature, and send a corresponding message after verifying by using the blacklist, and according to the The feature generates a log of the message sent this time;
  • the accounting device 602 is configured to synchronize the logs of the message processing system, and according to the number of the same feature messages accumulated in the log, determine whether the quantity exceeds a quantity threshold, and if yes, add the feature to the blacklist.
  • the system in this embodiment may be provided with each functional unit or an additional functional unit in the foregoing apparatus, and details are not described herein again.
  • FIG. 7 is a specific flowchart of an automatic fuse message processing system in processing a message according to an embodiment of the present application.
  • the message processing device and the accounting device in the figure may be implemented by one or several computers, or It is formed by a dedicated chip, and the included logs, blacklists, etc. can be implemented by a database, and can be located at any position, for example, the log is in the same computer as the message processing device, or is located in a different computer.
  • step 701 is included, and the service system sends a message request to the message processing apparatus.
  • the service system may be, for example, a payment transaction system, or a transfer system, or a collection system.
  • the payment transaction system is taken as an example, and at least the sending message request sent by the payment transaction system is
  • the user information and the service type are included, where the service type indicates which type of service the message to be sent belongs to, such as a payment completion message, a payment failure message, a transfer completion message, a transfer failure message, and the like, and may also include a service message content, such as a user.
  • ID+payment completion message + a certain payment completion message or includes a transmission channel + service type + service message content, such as a mobile phone number and a payment completion message, a payment completion message.
  • the sending the message request may specifically include sending user information (channel) + service type coding + some parameters required for assembling the message content.
  • the message processing device obtains the message template corresponding to the service type code according to the service type code, and replaces the parameter content that is input by the user with some replaceable variable in the template, and assembles the message content that is finally sent to the user.
  • Step 702 The message processing apparatus performs pre-checking on the sending message request.
  • this step it is mainly verified whether the format of the request for sending a message meets the requirements, for example, whether the format of the user ID is correct, whether the format of a payment completion message is correct, whether the service type of the message to be sent exists, and the like.
  • Step 703 Obtain a feature in the sending message request.
  • the message request is a user ID and a payment completion message (service type)
  • the user ID needs to be extracted from the request, and the appropriate transmission channel is matched according to the user ID, for example, saved in the user information.
  • the channels for sending messages are mobile phone number and email address respectively. According to the user's preference or the channel according to the historical message, one of them is selected as the channel for sending the message. In this example, the mobile phone number is selected as the channel for sending the message. At least the channel (mobile number) and payment completion message of the message are included in the feature.
  • the message sending channel includes the message sending channel and the service type
  • the feature in the sending message request is directly obtained, and the feature includes at least a channel (mobile phone number) and a payment completion message.
  • Step 704 performing blacklist verification on the feature.
  • the blacklist in this step includes multiple features, and compares the received feature in the sent message request with multiple features in the blacklist. If the same is true, the blacklist check fails. Otherwise, the blacklist is black. If the verification fails, the payment completion message is not sent. In this embodiment, the blacklist verification is performed, and the payment completion message can be completed.
  • Step 705 The message processing device invokes a communication device such as a gateway to send a payment completion message in a specified channel, and generates a log of the current transmission message.
  • a communication device such as a gateway to send a payment completion message in a specified channel, and generates a log of the current transmission message.
  • the communication device such as the gateway and the message processing device may be integrated, or may be separate devices, which are not limited herein.
  • the log for generating the current message includes at least the channel and service type of the current sending message, where the service type is, for example, a payment success message, a transfer success message, a transfer failure message, a seller already shipped message, and the like, in other embodiments.
  • the log may also include the time for sending the message (for later determining whether to enter the blacklist according to the time), the content of the service message, and the like.
  • the log can be stored in a message processing device.
  • Step 706 the accounting device synchronizes the logs in the message processing device.
  • the accounting device periodically reads the log of the message processing device and performs the accounting process locally.
  • the accounting process here refers to the subsequent analysis, calculation, and the like.
  • Step 707 calculating the number of logs having the same characteristics.
  • the accounting device accumulates the logs of the same channel type and the service type according to the plurality of logs recorded, as shown in the following Table 1 as a synchronized log table, in which the channels for each message are separately recorded. And business type.
  • the first log and the third log have the same channel and service type, and the fourth log has the same channel as the first one, but the business type is different, and the data of other rows in the table is not Show)
  • step 708 it is determined whether the calculated quantity is greater than the quantity threshold.
  • step 709 if the calculated quantity is greater than the quantity threshold, then step 709 is entered, otherwise the flow of accounting is ended.
  • the preset number of thresholds is 99. According to the foregoing calculation of 100, it indicates that the payment success message has been sent by the mobile phone number short message, which may already constitute interference to the user.
  • step 709 the feature is recorded in the blacklist.
  • the above feature is a mobile phone number and a payment success message, and the feature is added to the blacklist.
  • the blacklist can be stored in a message processing device or a billing device.
  • FIG. 8 is a specific flowchart of a message processing system of an automatic fuse according to an embodiment of the present application.
  • Steps 801 to 805 of the embodiment are basically the same as steps 701 to 705 of the embodiment shown in FIG. The same is true, in the step 805, when the message processing device generates the log of the current message, the log includes the time information of the sent message in addition to the channel and the service type.
  • Step 806 the accounting device synchronizes the logs in the message processing device.
  • Step 807 calculating the number of logs having the same characteristics in a time range.
  • the number of logs having the same feature is calculated according to the time information of the message sent in the log and the preset time range.
  • the time range is 1 hour
  • the number of logs having the same feature in one hour is calculated as 100.
  • step 808 it is determined whether the calculated quantity is greater than the quantity threshold.
  • step 809 if the calculated quantity exceeds the quantity threshold, the process proceeds to step 809, otherwise the flow of the accounting is ended.
  • the number threshold is 99, and the number of logs having the same feature in one hour calculated in step 807 is 100, and the judgment result exceeds the number threshold, and the process proceeds to step 809.
  • step 809 the feature is recorded in the blacklist.
  • the time information for creating the feature is also recorded.
  • the message processing device filters out the expired feature according to the creation time information, or passes the The following step 810 performs an update of the blacklist.
  • the blacklist is located in the message processing device.
  • step 810 the accounting device calculates the length of time in which the feature exists in the blacklist. If the time threshold is exceeded, the feature is deleted from the blacklist.
  • the difference between the current time and the time information of the feature in the blacklist is calculated by a predetermined period. If the time threshold is exceeded, the feature is deleted from the blacklist, otherwise the feature in the blacklist is retained. That is to say, if a certain service information is not sent to the user through a certain channel for a certain period of time, the service information sent by the channel does not constitute a harassment to the user, and the service information transmission in this manner can be resumed.
  • PLD Programmable Logic Device
  • FPGA Field Programmable Gate Array
  • HDL Hardware Description Language
  • the controller can be implemented in any suitable manner, for example, the controller can take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (eg, software or firmware) executable by the (micro)processor.
  • computer readable program code eg, software or firmware
  • examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, The Microchip PIC18F26K20 and the Silicone Labs C8051F320, the memory controller can also be implemented as part of the memory's control logic.
  • the controller can be logically programmed by means of logic gates, switches, ASICs, programmable logic controllers, and embedding.
  • Such a controller can therefore be considered a hardware component, and the means for implementing various functions included therein can also be considered as a structure within the hardware component.
  • a device for implementing various functions can be considered as a software module that can be both a method of implementation and a structure within a hardware component.
  • the system, device, module or unit illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product having a certain function.
  • the present application can be implemented by means of software plus a necessary general hardware platform. Based on such understanding, the technical solution of the present application may be embodied in the form of a software product in essence or in the form of a software product, which may be stored in a storage medium such as a ROM/RAM or a disk. , an optical disk, etc., includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present application or portions of the embodiments.
  • a computer device which may be a personal computer, server, or network device, etc.
  • This application can be used in a variety of general purpose or special purpose computer system environments or configurations.
  • program modules include routines, programs, objects, components, data structures, and the like that perform particular tasks or implement particular abstract data types.
  • the present application can also be practiced in distributed computing environments where tasks are performed by remote processing devices that are connected through a communication network.
  • program modules can be located in both local and remote computer storage media including storage devices.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present application relates to the technical field of communications, and in particular, to an automatic fusing-based message sending method, device and system. The method comprises: receiving a message sending request and obtaining features in the message sending request; performing a blacklist check according to the features; and sending a corresponding message after the message passes the blacklist check, and generating a log about the current message sending according to the features. By asynchronously analyzing a log and adding feature data that exceeds a threshold value to a blacklist, logic control on messages sent to a user can be implemented, such that the messages do not disturb the user; moreover, the sent message processing speed of a message processing system is improved.

Description

一种自动熔断的消息发送方法、装置及系统Automatic melting message sending method, device and system 技术领域Technical field
本申请涉及通信技术领域,特别涉及一种自动熔断的消息发送方法、装置及系统。The present application relates to the field of communications technologies, and in particular, to a method, an apparatus, and a system for automatically transmitting a message.
背景技术Background technique
随着互联网技术的日益发展,用户在电子交易平台进行交易后会产生很多消息,电子交易平台将消息发送给用户,例如邮件通知交易结果,短信息通知付款是否成功,但是如果通过某种渠道短时间内向用户发送大量的消息,容易造成用户通知渠道的阻塞,例如通知渠道为邮箱,用户的邮箱在短时间内接收到大量消息,可能造成邮箱容量溢出或者用户重要的邮件被淹没在大量的通知消息之中,这样会影响用户正常使用邮箱。With the development of Internet technology, users will generate a lot of messages after trading on the electronic trading platform. The electronic trading platform sends the message to the user, for example, the mail notifies the transaction result, and the short message informs whether the payment is successful, but if it is short through some channel Sending a large number of messages to the user during the time is likely to cause blocking of the notification channel of the user. For example, the notification channel is a mailbox, and the user's mailbox receives a large amount of messages in a short time, which may cause the mailbox capacity to overflow or the important mail of the user to be drowned in a large number of notifications. In the message, this will affect the user's normal use of the mailbox.
在现有技术中,一般在每次发送消息时采用计数的方式统计发送此类消息的数量,如果发送数量超过门限值则取消本次消息的发送。但是,由于消息的目标用户量较大,用户使用的通知渠道多种多样,系统在每一次发送消息时都需要在数据库中进行累加计数的操作,这样数据写入并发量大,影响系统发送消息的处理效率。In the prior art, the number of such messages is generally counted by counting every time a message is sent, and the sending of the message is cancelled if the number of transmissions exceeds the threshold. However, due to the large number of target users of the message, the notification channels used by the user are various. The system needs to perform the counting operation in the database every time the message is sent, so that the data write concurrency is large, which affects the system to send messages. Processing efficiency.
发明内容Summary of the invention
为了解决现有技术中消息处理系统发送消息的效率不高,并且如果发送的某类消息过多容易造成对用户骚扰的问题,提出了一种自动熔断的消息发送方法、装置及系统可以提高发送消息的效率,并且避免了同类消息对用户的骚扰。In order to solve the problem that the message processing system sends messages in the prior art is not efficient, and if a certain type of message is sent to cause harassment to the user, an automatic fuse message sending method, device and system can improve the sending. The efficiency of the message and the harassment of users by similar messages.
本申请实施例提供了一种自动熔断的消息发送方法,包括,An embodiment of the present application provides an automatic fuse message sending method, including
接收发送消息请求,并得到所述发送消息请求中的特征;Receiving a request to send a message, and obtaining a feature in the request for sending the message;
根据所述特征进行黑名单校验;Performing a blacklist check according to the feature;
通过所述黑名单校验后,发送相应消息,并根据所述特征生成本次发送消息的日志。 After the blacklist is verified, a corresponding message is sent, and a log of the current sent message is generated according to the feature.
本申请实施例还提供了一种自动熔断的消息发送方法,包括,The embodiment of the present application further provides an automatic fuse message sending method, including
同步消息处理系统的日志;Synchronize the log of the message processing system;
根据所述日志累计具有相同特征消息的数量;Accumulating the number of identical feature messages according to the log;
判断所述数量是否超过数量门限值,若超过则将该特征加入黑名单。Determine whether the quantity exceeds the quantity threshold, and if it exceeds, add the feature to the blacklist.
本申请实施例还提供了一种自动熔断的消息处理装置,包括,The embodiment of the present application further provides an automatic fuse message processing apparatus, including
接收单元,用于接收发送消息请求,并得到所述发送消息请求中的特征;a receiving unit, configured to receive a request for sending a message, and obtain a feature in the request for sending the message;
校验单元,用于根据所述特征进行黑名单校验;a verification unit, configured to perform blacklist verification according to the feature;
处理单元,用于当通过所述黑名单校验后,发送相应消息,并根据所述特征生成本次发送消息的日志。The processing unit is configured to: after the blacklist is verified, send a corresponding message, and generate a log of the current sending message according to the feature.
本申请实施例还提供了一种自动熔断的记账装置,包括,The embodiment of the present application further provides an automatic fuse breaking accounting device, including
同步单元,用于同步消息处理系统的日志;a synchronization unit for synchronizing logs of the message processing system;
计算单元,用于根据所述日志累计具有相同特征消息的数量;a calculating unit, configured to accumulate the number of messages having the same feature according to the log;
处理单元,用于判断所述数量是否超过数量门限值,若超过则将该特征加入黑名单。The processing unit is configured to determine whether the quantity exceeds a quantity threshold, and if yes, add the feature to the blacklist.
本申请实施例还提供了一种自动熔断的消息处理系统,包括消息处理装置和记账装置,The embodiment of the present application further provides an automatic fuse message processing system, including a message processing device and a billing device.
所述消息处理装置,用于接收发送消息请求,并得到所述发送消息请求中的特征,根据所述特征进行黑名单校验,当通过所述黑名单校验后,发送相应消息,并根据所述特征生成本次发送消息的日志;The message processing apparatus is configured to receive a request for sending a message, and obtain a feature in the request for sending the message, perform blacklist verification according to the feature, and send a corresponding message after being verified by the blacklist, and according to the The feature generates a log of the current sent message;
所述记账装置,用于同步消息处理系统的日志,根据所述日志累计具有相同特征消息的数量,判断所述数量是否超过数量门限值,若超过则将该特征加入黑名单。The accounting device is configured to synchronize the logs of the message processing system, and according to the number of the same feature messages accumulated in the log, determine whether the quantity exceeds a quantity threshold, and if yes, add the feature to the blacklist.
由以上本申请实施例提供的技术方案可见,可以实现对向用户发送的消息进行逻辑控制,如果发送的消息在黑名单中,则不发送该消息,避免了对用户的消息骚扰;并且提高了消息处理系统发送消息的处理速度。It can be seen that the technical solution provided by the embodiment of the present application can implement logical control on a message sent to a user, and if the sent message is in a blacklist, the message is not sent, thereby avoiding message harassment to the user; The processing speed at which the message processing system sends messages.
当然实施本申请的任一产品或者方法必不一定需要同时达到以上所 述的所有优点。Of course, any product or method that implements this application does not necessarily need to achieve the above. All the advantages described.
附图说明DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings to be used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only It is a few embodiments described in the present application, and other drawings can be obtained from those skilled in the art without any inventive labor.
图1所示为现有技术中消息发送方法的整体流程图;1 is an overall flowchart of a method for transmitting a message in the prior art;
图2所示为本申请实施例一种自动熔断的消息发送方法的流程图;2 is a flowchart of a method for sending an automatic fuse message according to an embodiment of the present application;
图3所示为本申请实施例一种自动熔断的消息发送方法的流程图;FIG. 3 is a flowchart of a method for sending an automatic fuse message according to an embodiment of the present application;
图4所示为本申请实施例一种自动熔断的消息处理装置的结构示意图;4 is a schematic structural diagram of an automatic fuse message processing apparatus according to an embodiment of the present application;
图5所示为本申请实施例一种自动熔断的记账装置的结构示意图;FIG. 5 is a schematic structural diagram of an automatic fuse billing apparatus according to an embodiment of the present application; FIG.
图6所示为本申请实施例一种自动熔断的消息处理系统的结构示意图;FIG. 6 is a schematic structural diagram of an automatic fuse message processing system according to an embodiment of the present application;
图7所示为本申请实施例一种自动熔断的消息处理系统在处理消息时的具体流程图;FIG. 7 is a specific flowchart of an automatic fuse message processing system in processing a message according to an embodiment of the present application;
图8所示为本申请实施例一种自动熔断的消息处理系统在处理消息时的具体流程图。FIG. 8 is a specific flowchart of an automatic fuse message processing system in processing a message according to an embodiment of the present application.
具体实施方式detailed description
本申请实施例提供一种自动熔断的消息发送方法、装置及系统。The embodiment of the present application provides a method, an apparatus, and a system for automatically transmitting a message.
为了使本技术领域的人员更好地理解本申请中的技术方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。 The technical solutions in the embodiments of the present application are clearly and completely described in the following, in which the technical solutions in the embodiments of the present application are clearly and completely described. The embodiments are only a part of the embodiments of the present application, and not all of them. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope shall fall within the scope of the application.
如图1所示为现有技术中消息发送方法的整体流程图,在现有技术中将统计消息数量、判断是否发送等步骤都置于消息处理系统中处理,因此造成了消息发送的效率较低的问题。As shown in FIG. 1 , it is an overall flowchart of a message sending method in the prior art. In the prior art, the steps of counting the number of statistical messages and determining whether to send or not are all processed in the message processing system, thereby causing the efficiency of message sending. Low problem.
上述现有技术具体包括业务系统向消息处理系统发起发送消息请求,在消息处理系统中对该发送消息请求进行了前置校验、黑名单校验等步骤,其中,黑名单校验是指判断本次发送的消息(渠道+业务信息)是否属于黑名单,如果在黑名单中说明通过所述渠道发送的这种业务信息已经超过门限值,对于用户来说已经构成了影响。当通过了黑名单校验后,需要判断本次要发送的消息加上以前的发送记录是否对用户构成了影响,也就是图中所述的对已发送消息数量的查询以及对该数量的校验;如果通过了上述已发送消息数量的校验后,调用网关发送本次的消息;最后在记账系统中记录本次发送消息,也就是在记账系统中的发送消息记录中加1。The foregoing prior art specifically includes the service system initiating a message request to the message processing system, and performing a pre-check and a blacklist check on the sending message request in the message processing system, wherein the blacklist check refers to determining Whether the message (channel + service information) sent this time belongs to the blacklist. If the blacklist indicates that the service information sent through the channel has exceeded the threshold, it has already affected the user. After passing the blacklist check, it is necessary to determine whether the message to be sent and the previous send record have an impact on the user, that is, the query for the number of sent messages and the number of schools described in the figure. If the verification of the number of sent messages mentioned above is passed, the calling gateway sends the current message; finally, the current sending message is recorded in the accounting system, that is, 1 is added to the sending message record in the accounting system.
如图2所示为本申请实施例一种自动熔断的消息发送方法的流程图,在该图中描述的是消息处理系统中的工作流程,与现有技术相比较在本申请中的消息处理系统不进行已发送消息的查询、校验、记账等步骤,只是通过验证黑名单的方式实现是否发送消息的判断,简化了消息发送流程,并且通过记账系统对黑名单的操作来完成控制消息发送的目的,减少对用户同类型消息的打扰,避免了通过相同通知渠道向用户发送大量消息,造成用户的通知渠道阻塞的问题。FIG. 2 is a flowchart of a method for sending an automatic fuse message according to an embodiment of the present application, where the workflow in the message processing system is described, and the message processing in the present application is compared with the prior art. The system does not perform the steps of querying, verifying, accounting, etc. of the sent message, but merely determining whether to send the message by verifying the blacklist, simplifying the message sending process, and completing the control by the accounting system to operate the blacklist. The purpose of sending a message is to reduce the interruption of the same type of message to the user, and avoid the problem that the user's notification channel is blocked by sending a large number of messages to the user through the same notification channel.
具体包括步骤201,接收发送消息请求,并得到所述发送消息请求中的特征。Specifically, the method includes the following steps: Step 201: Receive a message request, and obtain a feature in the message request.
步骤202,根据所述特征进行黑名单校验。Step 202: Perform blacklist verification according to the feature.
步骤203,通过所述黑名单校验后,发送相应消息,并根据所述特征生成本次发送消息的日志。Step 203: After the blacklist is verified, the corresponding message is sent, and a log of the current sent message is generated according to the feature.
作为本申请的一个实施例,所述发送消息请求至少包括:As an embodiment of the present application, the sending a message request includes at least:
发送消息的渠道和业务信息;Channels and business information for sending messages;
或,发送消息的目标用户和业务信息。Or, the target user and business information of the message.
其中,发送消息的渠道包括目标用户的手机号码、邮件地址和客户端 等,其中手机号码用于向用户发送短信息,邮件地址用于向用户发送邮件,客户端用于向用户的客户端发送通知消息,例如向用户智能终端的支付宝客户端发送付款成功的消息。The channel for sending the message includes the mobile phone number, email address, and client of the target user. Etc., wherein the mobile phone number is used to send a short message to the user, and the email address is used to send a mail to the user, and the client is used to send a notification message to the client of the user, for example, to send a payment success message to the Alipay client of the user smart terminal.
所述的业务信息包括业务类型,还可以包括业务消息内容等信息,其中,业务消息内容例如为“您的XXXX订单支付成功”、“您的XXX订单的转账成功”,业务类型例如可以为付款成功(或者失败)的消息,转账成功(或者失败)的消息,商品已经发货的通知消息等等,这些业务信息可以通过渠道而确定相应的形式,例如当渠道为手机号码时,业务信息可能只包括简单的文字信息,当渠道为邮件地址时,业务信息可能包括了文字、图片等多媒体的内容。The service information includes a service type, and may also include information such as a service message content, where the service message content is, for example, “Your XXXX order payment is successful”, “Your XXX order is successfully transferred”, and the service type may be, for example, a payment. Successful (or failed) messages, successful (or failed) messages, notification messages for goods have been shipped, etc. These business information can be determined by channel, for example, when the channel is a mobile number, the business information may be Only simple text information is included. When the channel is an email address, the business information may include multimedia content such as text and images.
作为本申请的一个实施例,当所述发送消息的请求中包括目标用户和业务信息时,在得到所述发送消息请求中的特征之中还包括,根据目标用户信息分析得到发送消息的渠道。As an embodiment of the present application, when the request for sending a message includes the target user and the service information, the method for obtaining the request for sending the message further includes: analyzing the channel for sending the message according to the target user information.
其中,当发送消息的请求中不包括渠道时,那么需要包括目标用户,由于一个用户可能具有多种通信的渠道,可能包括手机号码、邮件地址、客户终端等,具体使用哪种渠道发送消息则可以根据多种条件来判断选择,例如如果用户大部分登录操作都是在手机上的客户端进行的,那么通知消息就可以选择为以客户端方式发送,若用户浏览商品等操作都是通过电脑完成的,那么可以选择手机短信方式或者选择邮件方式发送消息,只需要指明要向哪个用户(目标用户)发送消息即可。Wherein, when the request for sending a message does not include a channel, then the target user needs to be included. Since a user may have multiple channels of communication, it may include a mobile phone number, an email address, a client terminal, etc., and which channel is used to send the message. The selection can be judged according to various conditions. For example, if most of the user's login operation is performed on the client on the mobile phone, the notification message can be selected to be sent by the client, and if the user browses the product, the operation is through the computer. If you are done, you can choose SMS or email to send a message. Just specify which user (target user) to send the message to.
作为本申请的一个实施例,根据所述特征进行黑名单校验进一步包括,判断所述特征是否存在于所述黑名单中,如果存在则不发送所述消息。As an embodiment of the present application, performing blacklist verification according to the feature further includes determining whether the feature exists in the blacklist, and if not, transmitting the message.
所述特征至少包括渠道和业务类型,还可以包括已发送消息的时间信息。The feature includes at least a channel and a service type, and may also include time information of the sent message.
作为本申请的一个实施例,所述日志至少包括发送消息的渠道和业务类型。As an embodiment of the present application, the log includes at least a channel and a service type for sending a message.
其中,所述日志中还可以包括发送消息的时间信息,所述日志可以存储于消息处理装置本地。 The log may further include time information for sending a message, and the log may be stored locally in the message processing device.
上述的渠道可以为字母字符串形式或者为数字字符串形式,或者还可以为字母和数字混合构成的字符串,所述业务信息可以为业务类型的代码,该业务类型的代码可以标识业务类型,在发送给用户时转换为具体的文字信息。The foregoing channel may be in the form of an alphabetic string or a numeric string, or may also be a string composed of a mixture of letters and numbers, the business information may be a code of a business type, and the code of the business type may identify a service type. Convert to specific text information when sent to the user.
通过上述本申请实施例的方法,可以实现对向用户发送的消息进行逻辑控制,如果发送的消息在黑名单中,则不发送该消息,避免了对用户的消息骚扰;并且提高了消息处理系统发送消息的处理速度。The method of the embodiment of the present application can implement logical control on a message sent to a user. If the sent message is in a blacklist, the message is not sent, thereby avoiding message harassment to the user; and the message processing system is improved. The processing speed of sending messages.
如图3所示为本申请实施例一种自动熔断的消息发送方法的流程图,在该图中主要描述了记账系统的工作流程,本方法是通过与消息处理系统分离处理日志的方式来实现提高消息发送效率的目的,在记账系统中的方法与上述图2所示实施例的方法相结合功能完成控制消息发送,以避免通过相同渠道向用户发送过多相同业务类型的信息。FIG. 3 is a flowchart of a method for sending an automatic fuse message according to an embodiment of the present application. The workflow of the accounting system is mainly described in the figure. The method is to separate the processing log from the message processing system. For the purpose of improving the efficiency of message transmission, the method in the accounting system is combined with the method of the embodiment shown in FIG. 2 to complete the control message transmission, so as to avoid sending too much information of the same service type to the user through the same channel.
具体包括步骤301,同步消息处理系统的日志。Specifically, the method includes the step 301 of synchronizing the log of the message processing system.
步骤302,根据所述日志累计具有相同特征消息的数量。Step 302: Accumulate the number of identical feature messages according to the log.
步骤303,判断所述数量是否超过数量门限值,若超过则将该特征加入黑名单。Step 303: Determine whether the quantity exceeds a quantity threshold, and if yes, add the feature to the blacklist.
作为本申请的一个实施例,所述特征至少包括发送消息的渠道和业务类型。As an embodiment of the present application, the feature includes at least a channel for transmitting a message and a type of service.
作为本申请的一个实施例,所述特征中还包括已发送消息的时间信息。As an embodiment of the present application, the feature further includes time information of the sent message.
作为本申请的一个实施例,在判断所述数量是否超过预定门限值之中还包括,判断在一定时间内所述数量是否超过数量门限值,若超过则将该特征加入黑名单。As an embodiment of the present application, determining whether the quantity exceeds a predetermined threshold further includes determining whether the quantity exceeds a quantity threshold within a certain time, and if yes, adding the feature to a blacklist.
其中,如果在一段时间内通过相同的渠道向用户发送相同业务消息的数量超过一定门限值,则认为这种情况属于对用户干扰,例如,在1分钟内通过手机短信息的方式向用户发送支付成功的消息超过了10条,则认为这种情况属于对用户的干扰,如果在1个小时内通过手机短信息的方式向用户发送支付成功的消息超过了10条,则认为这种情况不属于对用户 的干扰。If the number of the same service message sent to the user through the same channel exceeds a certain threshold within a certain period of time, the situation is considered to be interference to the user, for example, sending the message to the user by using the short message of the mobile phone within 1 minute. If the number of successful payment messages exceeds 10, it is considered that this situation is a disturbance to the user. If more than 10 messages are sent to the user through the short message of the mobile phone within one hour, the situation is considered not to be the case. Belong to the user Interference.
作为本申请的一个实施例,还包括,判断所述黑名单中特征的时间信息,若所述时间信息与当前时间的间隔超过时间门限值,则将所述特征从所述黑名单中删除。As an embodiment of the present application, the method further includes: determining time information of the feature in the blacklist, and if the interval between the time information and the current time exceeds a time threshold, deleting the feature from the blacklist .
其中,黑名单在时刻保持的更新,当通过某个渠道发送的某类业务信息在一段时间内都没有出现,则说明后续通过这个渠道发送的该类业务信息对于用户来说不构成干扰,因此应当允许这种信息的继续发送,而不是永远屏蔽这种信息的发送。The blacklist is updated at a time. When a certain type of service information sent through a certain channel does not appear for a certain period of time, it indicates that the type of service information sent through the channel does not interfere with the user. This information should be allowed to continue to be sent, rather than always blocking the transmission of such information.
通过上述实施例的方法,可以通过异步的方式记录发送消息的日志,并在独立于消息处理系统以外的记账系统中对日志进行分析和黑名单的更新,这样在消息处理系统发送消息时只需要判断黑名单即可,这样提高了消息处理系统发送消息的处理效率。Through the method of the foregoing embodiment, the log of the sent message can be recorded in an asynchronous manner, and the log is analyzed and the blacklist is updated in a billing system independent of the message processing system, so that only the message processing system sends the message. It is necessary to judge the blacklist, which improves the processing efficiency of the message processing system to send messages.
如图4所示为本申请实施例一种自动熔断的消息处理装置的结构示意图,该装置可以利用逻辑电路或者专门的芯片(例如FPGA)来组建,或通过现有的高性能计算机实施,其中的一些功能单元可以单独以一个硬件设备实现,或者几个功能单元由一个或者多个硬件设备实现,具体包括:FIG. 4 is a schematic structural diagram of an automatic fuse message processing apparatus according to an embodiment of the present application. The apparatus may be configured by using a logic circuit or a special chip (for example, an FPGA), or implemented by an existing high performance computer, wherein Some of the functional units may be implemented by one hardware device alone, or several functional units may be implemented by one or more hardware devices, including:
接收单元401,用于接收发送消息请求,并得到所述发送消息请求中的特征。The receiving unit 401 is configured to receive a request for sending a message, and obtain a feature in the request for sending the message.
校验单元402,用于根据所述特征进行黑名单校验。The verification unit 402 is configured to perform blacklist verification according to the feature.
处理单元403,用于当通过所述黑名单校验后,发送相应消息,并根据所述特征生成本次发送消息的日志。The processing unit 403 is configured to: after the blacklist is verified, send a corresponding message, and generate a log of the current sent message according to the feature.
作为本申请的一个实施例,所述发送消息请求至少包括:As an embodiment of the present application, the sending a message request includes at least:
发送消息的渠道和业务信息;Channels and business information for sending messages;
或,发送消息的目标用户和业务信息。Or, the target user and business information of the message.
作为本申请的一个实施例,所述接收单元还用于根据目标用户信息分析得到发送消息的渠道。As an embodiment of the present application, the receiving unit is further configured to analyze, according to the target user information, a channel for sending a message.
作为本申请的一个实施例,所述校验单元进一步用于判断所述特征是否存在于所述黑名单中,如果存在则不发送所述消息。 As an embodiment of the present application, the checking unit is further configured to determine whether the feature exists in the blacklist, and if not, send the message.
如图5所示为本申请实施例一种自动熔断的记账装置的结构示意图,该装置可以利用逻辑电路或者专门的芯片(例如FPGA)来组建,或通过现有的高性能计算机实施,其中的一些功能单元可以单独以一个硬件设备实现,或者几个功能单元由一个或者多个硬件设备实现,具体包括:FIG. 5 is a schematic structural diagram of an automatic fuse billing apparatus according to an embodiment of the present application. The apparatus may be formed by using a logic circuit or a special chip (for example, an FPGA), or implemented by an existing high performance computer, wherein Some of the functional units may be implemented by one hardware device alone, or several functional units may be implemented by one or more hardware devices, including:
同步单元501,用于同步消息处理系统的日志。The synchronization unit 501 is configured to synchronize the logs of the message processing system.
计算单元502,用于根据所述日志累计具有相同特征消息的数量。The calculating unit 502 is configured to accumulate the number of the same feature message according to the log.
处理单元503,用于判断所述数量是否超过数量门限值,若超过则将该特征加入黑名单。The processing unit 503 is configured to determine whether the quantity exceeds a quantity threshold, and if yes, add the feature to the blacklist.
作为本申请的一个实施例,所述特征至少包括发送消息的渠道和业务类型。As an embodiment of the present application, the feature includes at least a channel for transmitting a message and a type of service.
作为本申请的一个实施例,所述特征中还包括已发送消息的时间信息。As an embodiment of the present application, the feature further includes time information of the sent message.
作为本申请的一个实施例,所述处理单元进一步用于判断在一定时间内所述数量是否超过数量门限值,若超过则将该特征加入黑名单。As an embodiment of the present application, the processing unit is further configured to determine whether the quantity exceeds a quantity threshold within a certain time, and if yes, add the feature to a blacklist.
作为本申请的一个实施例,还包括更新单元504,判断所述黑名单中特征的时间信息,若所述时间信息与当前时间的间隔超过时间门限值,则将所述特征从所述黑名单中删除。As an embodiment of the present application, the method further includes an updating unit 504, determining time information of features in the blacklist, and if the interval between the time information and the current time exceeds a time threshold, the feature is from the black Remove from the list.
如图6所示为本申请实施例一种自动熔断的消息处理系统的结构示意图,在该图中包括了上述图4和图5所示实施例中的消息处理装置和记账装置,其中:FIG. 6 is a schematic structural diagram of an automatic fuse message processing system according to an embodiment of the present application, and the message processing apparatus and the accounting apparatus in the embodiment shown in FIG. 4 and FIG. 5 are included in the figure, wherein:
消息处理装置601,用于接收发送消息请求,并得到所述发送消息请求中的特征,根据所述特征进行黑名单校验,当通过所述黑名单校验后,发送相应消息,并根据所述特征生成本次发送消息的日志;The message processing device 601 is configured to receive a request for sending a message, and obtain a feature in the request for sending the message, perform blacklist verification according to the feature, and send a corresponding message after verifying by using the blacklist, and according to the The feature generates a log of the message sent this time;
记账装置602,用于同步消息处理系统的日志,根据所述日志累计具有相同特征消息的数量,判断所述数量是否超过数量门限值,若超过则将该特征加入黑名单。The accounting device 602 is configured to synchronize the logs of the message processing system, and according to the number of the same feature messages accumulated in the log, determine whether the quantity exceeds a quantity threshold, and if yes, add the feature to the blacklist.
在本实施例中的系统可以具备上述装置中的各个功能单元或者附加的功能单元,在此不再赘述。 The system in this embodiment may be provided with each functional unit or an additional functional unit in the foregoing apparatus, and details are not described herein again.
如图7所示为本申请实施例一种自动熔断的消息处理系统在处理消息时的具体流程图,在该图中的消息处理装置、记账装置均可以由一个或者几个计算机实现,或者由专用的芯片形成,其中包括的日志、黑名单等可以由数据库实现,可以位于任意的位置,例如日志与消息处理装置在同一台计算机中,或者分开位于不同的计算机中。FIG. 7 is a specific flowchart of an automatic fuse message processing system in processing a message according to an embodiment of the present application. The message processing device and the accounting device in the figure may be implemented by one or several computers, or It is formed by a dedicated chip, and the included logs, blacklists, etc. can be implemented by a database, and can be located at any position, for example, the log is in the same computer as the message processing device, or is located in a different computer.
在本图中具体包括步骤701,业务系统向消息处理装置提出发送消息请求。Specifically, in the figure, step 701 is included, and the service system sends a message request to the message processing apparatus.
在本步骤中,业务系统可以例如为支付交易系统,或者为转账系统,或者为收款系统,在本实施例中以支付交易系统为例进行说明,在支付交易系统发送的发送消息请求中至少包括了用户信息和业务类型,其中的业务类型指明要发送的消息属于哪类业务,例如支付完成消息、支付失败消息、转账完成消息、转账失败消息等等,还可以包括业务消息内容,例如用户ID+支付完成消息+某笔支付完成消息,或者包括发送渠道+业务类型+业务消息内容,例如手机号码和支付完成消息某笔支付完成消息。In this step, the service system may be, for example, a payment transaction system, or a transfer system, or a collection system. In the embodiment, the payment transaction system is taken as an example, and at least the sending message request sent by the payment transaction system is The user information and the service type are included, where the service type indicates which type of service the message to be sent belongs to, such as a payment completion message, a payment failure message, a transfer completion message, a transfer failure message, and the like, and may also include a service message content, such as a user. ID+payment completion message + a certain payment completion message, or includes a transmission channel + service type + service message content, such as a mobile phone number and a payment completion message, a payment completion message.
所述的发送消息请求具体可以包括发送用户信息(渠道)+业务类型编码+组装消息内容需要的一些参数。消息处理装置根据业务类型编码,获取该业务类型编码对应的消息模板,将用户传入的参数内容替换模板中的一些可替换的变量,组装成最终发送给用户的消息内容。The sending the message request may specifically include sending user information (channel) + service type coding + some parameters required for assembling the message content. The message processing device obtains the message template corresponding to the service type code according to the service type code, and replaces the parameter content that is input by the user with some replaceable variable in the template, and assembles the message content that is finally sent to the user.
步骤702,消息处理装置对上述发送消息请求进行前置校验。Step 702: The message processing apparatus performs pre-checking on the sending message request.
在本步骤中主要验证发送消息请求的格式是否符合要求,例如用户ID的格式是否正确,某笔支付完成消息的格式是否正确,请求发送的消息的业务类型是否存在等。In this step, it is mainly verified whether the format of the request for sending a message meets the requirements, for example, whether the format of the user ID is correct, whether the format of a payment completion message is correct, whether the service type of the message to be sent exists, and the like.
步骤703,获得所述发送消息请求中的特征。Step 703: Obtain a feature in the sending message request.
在本步骤中,如果发送消息请求中是用户ID和支付完成消息(业务类型),则需要从该请求中提取用户ID,根据该用户ID匹配合适的发送渠道,例如在用户信息中保存了2种消息发送的渠道,分别为手机号码和邮件地址,根据用户的偏好或者根据历史消息发送的渠道,选择其中的一种作为消息发送的渠道,在本例中选择手机号码为发送消息的渠道,该特征中至少包括了消息发送的渠道(手机号码)和支付完成消息。 In this step, if the message request is a user ID and a payment completion message (service type), the user ID needs to be extracted from the request, and the appropriate transmission channel is matched according to the user ID, for example, saved in the user information. The channels for sending messages are mobile phone number and email address respectively. According to the user's preference or the channel according to the historical message, one of them is selected as the channel for sending the message. In this example, the mobile phone number is selected as the channel for sending the message. At least the channel (mobile number) and payment completion message of the message are included in the feature.
如果发送消息请求中包括的是消息发送渠道和业务类型,则直接得到了该发送消息请求中的特征,该特征中至少包括了消息发送的渠道(手机号码)和支付完成消息。If the message sending channel includes the message sending channel and the service type, the feature in the sending message request is directly obtained, and the feature includes at least a channel (mobile phone number) and a payment completion message.
步骤704,对所述特征进行黑名单校验。Step 704, performing blacklist verification on the feature.
在本步骤的黑名单中包括了多个特征,将接收到的发送消息请求中的特征与黑名单中的多个特征进行比较,如果有相同的则说明黑名单的校验失败,否则说明黑名单校验通过,如果校验失败,则不发送支付完成消息,在本实施例中通过黑名单校验,就可以完成发送支付完成消息。The blacklist in this step includes multiple features, and compares the received feature in the sent message request with multiple features in the blacklist. If the same is true, the blacklist check fails. Otherwise, the blacklist is black. If the verification fails, the payment completion message is not sent. In this embodiment, the blacklist verification is performed, and the payment completion message can be completed.
步骤705,消息处理装置调用网关等通信装置以指定的渠道发送支付完成消息,并生成本次发送消息的日志。Step 705: The message processing device invokes a communication device such as a gateway to send a payment completion message in a specified channel, and generates a log of the current transmission message.
在本步骤中,网关等通信设备与消息处理装置可以为一体,也可以为分别独立的装置,在此不作限定。In this step, the communication device such as the gateway and the message processing device may be integrated, or may be separate devices, which are not limited herein.
生成本次发送消息的日志中至少包括了本次发送消息的渠道和业务类型,其中业务类型例如为支付成功消息、转账成功消息、转账失败消息、卖家已经发货消息等等,在其它实施例中,日志中还可以包括发送消息的时间(用于后面根据时间判断是否进入黑名单),业务消息内容等。The log for generating the current message includes at least the channel and service type of the current sending message, where the service type is, for example, a payment success message, a transfer success message, a transfer failure message, a seller already shipped message, and the like, in other embodiments. The log may also include the time for sending the message (for later determining whether to enter the blacklist according to the time), the content of the service message, and the like.
所述日志可以存储于消息处理装置中。The log can be stored in a message processing device.
至此,消息处理装置中的消息处理流程结束。So far, the message processing flow in the message processing apparatus ends.
步骤706,记账装置同步所述消息处理装置中的日志。Step 706, the accounting device synchronizes the logs in the message processing device.
在本步骤中,记账装置定时读取消息处理装置的日志,并在本地进行记账处理,此处的记账处理是指后面的分析、计算等工作。In this step, the accounting device periodically reads the log of the message processing device and performs the accounting process locally. The accounting process here refers to the subsequent analysis, calculation, and the like.
步骤707,计算具有相同特征的日志数量。Step 707, calculating the number of logs having the same characteristics.
在本步骤中,记账装置根据记录的多条日志,将渠道和业务类型相同的日志进行累加,如下表1所示为同步的日志表格,在该表格中分别记录了每一次发送消息的渠道和业务类型。 In this step, the accounting device accumulates the logs of the same channel type and the service type according to the plurality of logs recorded, as shown in the following Table 1 as a synchronized log table, in which the channels for each message are separately recorded. And business type.
表1Table 1
Figure PCTCN2017074622-appb-000001
Figure PCTCN2017074622-appb-000001
在该表格中第一条日志和第三条日志的渠道和业务类型相同,第四条日志的渠道与第一条的渠道相同,但是业务类型不同,通过该表格其它行的数据(表格中未示)累计通过手机号码短信息方式发送的支付成功消息有100条记录。In the table, the first log and the third log have the same channel and service type, and the fourth log has the same channel as the first one, but the business type is different, and the data of other rows in the table is not Show) There are 100 records of the payment success message sent by the mobile phone number short message.
步骤708,判断计算的数量是否大于数量门限值。In step 708, it is determined whether the calculated quantity is greater than the quantity threshold.
在本步骤中,如果计算的数量大于数量门限值,则进入步骤709,否则结束记账的流程。In this step, if the calculated quantity is greater than the quantity threshold, then step 709 is entered, otherwise the flow of accounting is ended.
在本例中,预设的数量门限值为99条,根据前述的计算数量100条,则说明通过手机号码短信息的方式发送支付成功消息已经过多,对用户来说可能已经构成干扰。In this example, the preset number of thresholds is 99. According to the foregoing calculation of 100, it indicates that the payment success message has been sent by the mobile phone number short message, which may already constitute interference to the user.
步骤709,在黑名单中记录该特征。In step 709, the feature is recorded in the blacklist.
上述特征为手机号码和支付成功消息,将该特征加入黑名单列表中。所述的黑名单可以保存于消息处理装置或者记账装置。The above feature is a mobile phone number and a payment success message, and the feature is added to the blacklist. The blacklist can be stored in a message processing device or a billing device.
如图8所示为本申请实施例一种自动熔断的消息处理系统在处理消息时的具体流程图,本实施例的步骤801至步骤805与图7所示实施例中步骤701至步骤705基本相同,不同之处在于,在步骤805中,消息处理装置生成本次发送消息的日志时,在日志中除了包括渠道和业务类型外,还包括发送消息的时间信息。 FIG. 8 is a specific flowchart of a message processing system of an automatic fuse according to an embodiment of the present application. Steps 801 to 805 of the embodiment are basically the same as steps 701 to 705 of the embodiment shown in FIG. The same is true, in the step 805, when the message processing device generates the log of the current message, the log includes the time information of the sent message in addition to the channel and the service type.
步骤806,记账装置同步所述消息处理装置中的日志。Step 806, the accounting device synchronizes the logs in the message processing device.
步骤807,计算在一时间范围内具有相同特征的日志数量。Step 807, calculating the number of logs having the same characteristics in a time range.
在本步骤中,根据日志中发送消息的时间信息和预设的时间范围计算具有相同特征的日志数量,例如,时间范围为1小时,计算1小时内具有相同特征的日志数量为100。In this step, the number of logs having the same feature is calculated according to the time information of the message sent in the log and the preset time range. For example, the time range is 1 hour, and the number of logs having the same feature in one hour is calculated as 100.
步骤808,判断计算的数量是否大于数量门限值。In step 808, it is determined whether the calculated quantity is greater than the quantity threshold.
在本步骤中,如果计算的数量超过了数量门限值,则进入步骤809,否则结束记账的流程。In this step, if the calculated quantity exceeds the quantity threshold, the process proceeds to step 809, otherwise the flow of the accounting is ended.
类似于图7的实施例,数量门限值为99条,步骤807中计算得到的1个小时内具有相同特征的日志数量为100条,判断结果超过了数量门限值,进入步骤809。Similar to the embodiment of FIG. 7, the number threshold is 99, and the number of logs having the same feature in one hour calculated in step 807 is 100, and the judgment result exceeds the number threshold, and the process proceeds to step 809.
步骤809,在黑名单中记录该特征。In step 809, the feature is recorded in the blacklist.
在本步骤中,记账装置记录特征时还记录有创建该特征的时间信息,在消息处理装置进行黑名单校验的步骤中,消息处理装置根据创建时间信息过滤掉已经过期的特征,或者通过下面步骤810进行黑名单的更新。在本例中,黑名单位于消息处理装置中。In this step, when the billing device records the feature, the time information for creating the feature is also recorded. In the step of performing the blacklist check by the message processing device, the message processing device filters out the expired feature according to the creation time information, or passes the The following step 810 performs an update of the blacklist. In this example, the blacklist is located in the message processing device.
步骤810,记账装置计算黑名单中特征存在的时间长度,如果超过时间门限值,则将该特征从黑名单中删除。In step 810, the accounting device calculates the length of time in which the feature exists in the blacklist. If the time threshold is exceeded, the feature is deleted from the blacklist.
具体的,以一预定的周期计算当前时间与黑名单中特征的时间信息的差值,如果超过时间门限值,则将所述特征从黑名单中删除,否则继续保留黑名单中的特征。也就是说,如果有一段时间没有再通过某个渠道给用户发送某种业务信息,那么这种渠道发送的业务信息已经不构成对用户的骚扰,那么可以恢复这种方式的业务信息发送。Specifically, the difference between the current time and the time information of the feature in the blacklist is calculated by a predetermined period. If the time threshold is exceeded, the feature is deleted from the blacklist, otherwise the feature in the blacklist is retained. That is to say, if a certain service information is not sent to the user through a certain channel for a certain period of time, the service information sent by the channel does not constitute a harassment to the user, and the service information transmission in this manner can be resumed.
通过对黑名单的更新,可以控制向用户发送业务消息的行为,以免对用户造成干扰。By updating the blacklist, you can control the behavior of sending service messages to users to avoid interference with users.
通过上述本申请实施例中的方法及装置,通过分离消息处理和黑名单更新的流程,可以极大的提高系统发送业务消息的效率,并且控制这些业务消息不会对用户造成骚扰。 By separating the process of message processing and blacklist update, the efficiency of sending service messages by the system can be greatly improved, and the control of these service messages does not cause harassment to users.
对于一个技术的改进可以很明显地区分是硬件上的改进(例如,对二极管、晶体管、开关等电路结构的改进)还是软件上的改进(对于方法流程的改进)。然而,随着技术的发展,当今的很多方法流程的改进已经可以视为硬件电路结构的直接改进。设计人员几乎都通过将改进的方法流程编程到硬件电路中来得到相应的硬件电路结构。因此,不能说一个方法流程的改进就不能用硬件实体模块来实现。例如,可编程逻辑器件(Programmable Logic Device,PLD)(例如现场可编程门阵列(Field Programmable Gate Array,FPGA))就是这样一种集成电路,其逻辑功能由用户对器件编程来确定。由设计人员自行编程来把一个数字系统“集成”在一片PLD上,而不需要请芯片制造厂商来设计和制作专用的集成电路芯片2。而且,如今,取代手工地制作集成电路芯片,这种编程也多半改用“逻辑编译器(logic compiler)”软件来实现,它与程序开发撰写时所用的软件编译器相类似,而要编译之前的原始代码也得用特定的编程语言来撰写,此称之为硬件描述语言(Hardware Description Language,HDL),而HDL也并非仅有一种,而是有许多种,如ABEL(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language)等,目前最普遍使用的是VHDL(Very-High-Speed Integrated Circuit Hardware Description Language)与Verilog2。本领域技术人员也应该清楚,只需要将方法流程用上述几种硬件描述语言稍作逻辑编程并编程到集成电路中,就可以很容易得到实现该逻辑方法流程的硬件电路。Improvements to a technology can clearly distinguish between hardware improvements (eg, improvements to circuit structures such as diodes, transistors, switches, etc.) or software improvements (for process flow improvements). However, as technology advances, many of today's method flow improvements can be seen as direct improvements in hardware circuit architecture. Designers almost always get the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be implemented by hardware entity modules. For example, a Programmable Logic Device (PLD) (such as a Field Programmable Gate Array (FPGA)) is an integrated circuit whose logic function is determined by the user programming the device. The designer is self-programming to "integrate" a digital system onto a single PLD without requiring the chip manufacturer to design and fabricate a dedicated integrated circuit chip 2 . Moreover, today, instead of manually making integrated circuit chips, this programming is mostly implemented using "logic compiler" software, which is similar to the software compiler used in programming development, but before compiling The original code has to be written in a specific programming language. This is called the Hardware Description Language (HDL). HDL is not the only one, but there are many kinds, such as ABEL (Advanced Boolean Expression Language). AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., are currently the most commonly used VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog2. It should also be apparent to those skilled in the art that the hardware flow for implementing the logic method flow can be easily obtained by simply programming the method flow into the integrated circuit with a few hardware description languages.
控制器可以按任何适当的方式实现,例如,控制器可以采取例如微处理器或处理器以及存储可由该(微)处理器执行的计算机可读程序代码(例如软件或固件)的计算机可读介质、逻辑门、开关、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑控制器和嵌入微控制器的形式,控制器的例子包括但不限于以下微控制器:ARC 625D、Atmel AT91SAM、Microchip PIC18F26K20以及Silicone Labs C8051F320,存储器控制器还可以被实现为存储器的控制逻辑的一部分。 The controller can be implemented in any suitable manner, for example, the controller can take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (eg, software or firmware) executable by the (micro)processor. In the form of logic gates, switches, application specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers, examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, The Microchip PIC18F26K20 and the Silicone Labs C8051F320, the memory controller can also be implemented as part of the memory's control logic.
本领域技术人员也知道,除了以纯计算机可读程序代码方式实现控制器以外,完全可以通过将方法步骤进行逻辑编程来使得控制器以逻辑门、开关、专用集成电路、可编程逻辑控制器和嵌入微控制器等的形式来实现相同功能。因此这种控制器可以被认为是一种硬件部件,而对其内包括的用于实现各种功能的装置也可以视为硬件部件内的结构。或者甚至,可以将用于实现各种功能的装置视为既可以是实现方法的软件模块又可以是硬件部件内的结构。Those skilled in the art will also appreciate that in addition to implementing the controller in purely computer readable program code, the controller can be logically programmed by means of logic gates, switches, ASICs, programmable logic controllers, and embedding. The form of a microcontroller or the like to achieve the same function. Such a controller can therefore be considered a hardware component, and the means for implementing various functions included therein can also be considered as a structure within the hardware component. Or even a device for implementing various functions can be considered as a software module that can be both a method of implementation and a structure within a hardware component.
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。The system, device, module or unit illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product having a certain function.
为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本申请时可以把各单元的功能在同一个或多个软件和/或硬件中实现。For the convenience of description, the above devices are described separately by function into various units. Of course, the functions of each unit may be implemented in the same software or software and/or hardware when implementing the present application.
通过以上的实施方式的描述可知,本领域的技术人员可以清楚地了解到本申请可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例或者实施例的某些部分所述的方法。It will be apparent to those skilled in the art from the above description of the embodiments that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such understanding, the technical solution of the present application may be embodied in the form of a software product in essence or in the form of a software product, which may be stored in a storage medium such as a ROM/RAM or a disk. , an optical disk, etc., includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present application or portions of the embodiments.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。The various embodiments in the specification are described in a progressive manner, and the same or similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
本申请可用于众多通用或专用的计算机系统环境或配置中。例如:个人计算机、服务器计算机、手持设备或便携式设备、平板型设备、多处理器系统、基于微处理器的系统、置顶盒、可编程的消费电子设备、网络PC、小型计算机、大型计算机、包括以上任何系统或设备的分布式计算环境等等。This application can be used in a variety of general purpose or special purpose computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor based systems, set-top boxes, programmable consumer electronics devices, network PCs, small computers, mainframe computers, including A distributed computing environment of any of the above systems or devices, and the like.
本申请可以在由计算机执行的计算机可执行指令的一般上下文中描 述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本申请,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。This application can be described in the general context of computer-executable instructions executed by a computer Said, for example, a program module. Generally, program modules include routines, programs, objects, components, data structures, and the like that perform particular tasks or implement particular abstract data types. The present application can also be practiced in distributed computing environments where tasks are performed by remote processing devices that are connected through a communication network. In a distributed computing environment, program modules can be located in both local and remote computer storage media including storage devices.
虽然通过实施例描绘了本申请,本领域普通技术人员知道,本申请有许多变形和变化而不脱离本申请的精神,希望所附的权利要求包括这些变形和变化而不脱离本申请的精神。 While the present invention has been described by the embodiments of the present invention, it will be understood by those skilled in the art

Claims (20)

  1. 一种自动熔断的消息发送方法,其特征在于包括,An automatic fuse message sending method, characterized in that
    接收发送消息请求,并得到所述发送消息请求中的特征;Receiving a request to send a message, and obtaining a feature in the request for sending the message;
    根据所述特征进行黑名单校验;Performing a blacklist check according to the feature;
    通过所述黑名单校验后,发送相应消息,并根据所述特征生成本次发送消息的日志。After the blacklist is verified, a corresponding message is sent, and a log of the current sent message is generated according to the feature.
  2. 根据权利要求1所述的方法,其特征在于,所述发送消息请求至少包括:The method of claim 1, wherein the request to send a message comprises at least:
    发送消息的渠道和业务信息;或,发送消息的目标用户和业务信息。The channel and business information for sending the message; or the target user and business information for sending the message.
  3. 根据权利要求2所述的方法,其特征在于,当所述发送消息的请求中包括目标用户和业务信息时,在得到所述发送消息请求中的特征之中还包括,根据目标用户信息分析得到发送消息的渠道。The method according to claim 2, wherein when the request for sending the message includes the target user and the service information, the feature in the request for sending the message further comprises: analyzing according to the target user information The channel through which the message was sent.
  4. 根据权利要求1所述的方法,其特征在于,根据所述特征进行黑名单校验进一步包括,判断所述特征是否存在于所述黑名单中,如果存在则不发送所述消息。The method according to claim 1, wherein performing blacklist checking according to the feature further comprises determining whether the feature exists in the blacklist, and if not, transmitting the message.
  5. 根据权利要求1所述的方法,其特征在于,所述日志至少包括发送消息的渠道和业务类型。The method of claim 1 wherein the log includes at least a channel and a type of service for transmitting the message.
  6. 一种自动熔断的消息发送方法,其特征在于包括,An automatic fuse message sending method, characterized in that
    同步消息处理系统的日志;Synchronize the log of the message processing system;
    根据所述日志累计具有相同特征消息的数量;Accumulating the number of identical feature messages according to the log;
    判断所述数量是否超过数量门限值,若超过则将该特征加入黑名单。Determine whether the quantity exceeds the quantity threshold, and if it exceeds, add the feature to the blacklist.
  7. 根据权利要求6所述的方法,其特征在于,所述特征至少包括发送消息的渠道和业务类型。The method of claim 6 wherein said characteristics include at least a channel and a type of service for transmitting the message.
  8. 根据权利要求7所述的方法,其特征在于,所述特征中还包括已发送消息的时间信息。 The method according to claim 7, wherein the feature further includes time information of the transmitted message.
  9. 根据权利要求8所述的方法,其特征在于,在判断所述数量是否超过预定门限值之中还包括,判断在一定时间内所述数量是否超过数量门限值,若超过则将该特征加入黑名单。The method according to claim 8, wherein determining whether the quantity exceeds a predetermined threshold further comprises determining whether the quantity exceeds a quantity threshold within a certain time, and if the quantity is exceeded, the characteristic is add to blacklist.
  10. 根据权利要求8所述的方法,其特征在于,还包括判断所述黑名单中特征的时间信息,若所述时间信息与当前时间的间隔超过时间门限值,则将所述特征从所述黑名单中删除。The method according to claim 8, further comprising determining time information of the feature in the blacklist, and if the interval between the time information and the current time exceeds a time threshold, the feature is from the Removed from the blacklist.
  11. 一种自动熔断的消息处理装置,其特征在于包括,An automatic fuse message processing apparatus, characterized in that
    接收单元,用于接收发送消息请求,并得到所述发送消息请求中的特征;a receiving unit, configured to receive a request for sending a message, and obtain a feature in the request for sending the message;
    校验单元,用于根据所述特征进行黑名单校验;a verification unit, configured to perform blacklist verification according to the feature;
    处理单元,用于当通过所述黑名单校验后,发送相应消息,并根据所述特征生成本次发送消息的日志。The processing unit is configured to: after the blacklist is verified, send a corresponding message, and generate a log of the current sending message according to the feature.
  12. 根据权利要求11所述的装置,其特征在于,所述发送消息请求至少包括:The apparatus according to claim 11, wherein the request for sending a message comprises at least:
    发送消息的渠道和业务信息;或,发送消息的目标用户和业务信息。The channel and business information for sending the message; or the target user and business information for sending the message.
  13. 根据权利要求12所述的装置,其特征在于,所述接收单元还用于根据目标用户信息分析得到发送消息的渠道。The apparatus according to claim 12, wherein the receiving unit is further configured to analyze, according to the target user information, a channel for sending a message.
  14. 根据权利要求12所述的装置,其特征在于,所述校验单元进一步用于判断所述特征是否存在于所述黑名单中,如果存在则不发送所述消息。The apparatus according to claim 12, wherein the checking unit is further configured to determine whether the feature exists in the blacklist, and if not, send the message.
  15. 一种自动熔断的记账装置,其特征在于包括,An automatic fuse billing device characterized by comprising
    同步单元,用于同步消息处理系统的日志;a synchronization unit for synchronizing logs of the message processing system;
    计算单元,用于根据所述日志累计具有相同特征消息的数量;a calculating unit, configured to accumulate the number of messages having the same feature according to the log;
    处理单元,用于判断所述数量是否超过数量门限值,若超过则将该特征加入黑名单。The processing unit is configured to determine whether the quantity exceeds a quantity threshold, and if yes, add the feature to the blacklist.
  16. 根据权利要求15所述的装置,其特征在于,所述特征至少包括发送消息的渠道和业务类型。 The apparatus of claim 15 wherein said characteristics include at least a channel and a type of service for transmitting the message.
  17. 根据权利要求16所述的装置,其特征在于,所述特征中还包括已发送消息的时间信息。The apparatus according to claim 16, wherein said feature further includes time information of the transmitted message.
  18. 根据权利要求17所述的装置,其特征在于,所述处理单元进一步用于判断在一定时间内所述数量是否超过数量门限值,若超过则将该特征加入黑名单。The apparatus according to claim 17, wherein the processing unit is further configured to determine whether the quantity exceeds a quantity threshold within a certain time, and if the quantity exceeds, add the feature to a blacklist.
  19. 根据权利要求17所述的装置,其特征在于,还包括更新单元,判断所述黑名单中特征的时间信息,若所述时间信息与当前时间的间隔超过时间门限值,则将所述特征从所述黑名单中删除。The device according to claim 17, further comprising an updating unit, determining time information of features in the blacklist, and if the interval between the time information and the current time exceeds a time threshold, the feature is Remove from the blacklist.
  20. 一种自动熔断的消息处理系统,其特征在于包括消息处理装置和记账装置,An automatic fuse message processing system, characterized by comprising a message processing device and a billing device,
    所述消息处理装置,用于接收发送消息请求,并得到所述发送消息请求中的特征,根据所述特征进行黑名单校验,当通过所述黑名单校验后,发送相应消息,并根据所述特征生成本次发送消息的日志;The message processing apparatus is configured to receive a request for sending a message, and obtain a feature in the request for sending the message, perform blacklist verification according to the feature, and send a corresponding message after being verified by the blacklist, and according to the The feature generates a log of the current sent message;
    所述记账装置,用于同步消息处理系统的日志,根据所述日志累计具有相同特征消息的数量,判断所述数量是否超过数量门限值,若超过则将该特征加入黑名单。 The accounting device is configured to synchronize the logs of the message processing system, and according to the number of the same feature messages accumulated in the log, determine whether the quantity exceeds a quantity threshold, and if yes, add the feature to the blacklist.
PCT/CN2017/074622 2016-03-10 2017-02-23 Automatic fusing-based message sending method, device and system WO2017152765A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610134454.7 2016-03-10
CN201610134454.7A CN107181664B (en) 2016-03-10 2016-03-10 Automatic fusing message sending method, device and system

Publications (1)

Publication Number Publication Date
WO2017152765A1 true WO2017152765A1 (en) 2017-09-14

Family

ID=59790019

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/074622 WO2017152765A1 (en) 2016-03-10 2017-02-23 Automatic fusing-based message sending method, device and system

Country Status (3)

Country Link
CN (1) CN107181664B (en)
TW (1) TWI678086B (en)
WO (1) WO2017152765A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108694657A (en) * 2018-07-13 2018-10-23 平安科技(深圳)有限公司 Client's identification device, method and computer readable storage medium
CN111930536A (en) * 2020-07-31 2020-11-13 银盛支付服务股份有限公司 Message notification method based on incoming system
CN113703993A (en) * 2021-07-27 2021-11-26 支付宝(杭州)信息技术有限公司 Service message processing method, device and equipment

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108009075B (en) * 2017-11-27 2018-10-09 南京联创信息科技有限公司 Dynamic fusing judgment method based on Hystrix frames
CN109743358B (en) * 2018-12-13 2022-10-21 平安普惠企业管理有限公司 Asynchronous message interface fusing control method and device, computer equipment and storage medium
CN115643226B (en) * 2022-09-06 2023-11-21 广州市玄武无线科技股份有限公司 Message sending disturbance-free configuration method, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101335920A (en) * 2008-07-15 2008-12-31 中国联合通信有限公司 Rubbish short message recognition system and method based on calling number location and transmitted content
CN101707752A (en) * 2009-11-23 2010-05-12 中兴通讯股份有限公司 Communication monitoring method, device and system
CN103874058A (en) * 2014-03-28 2014-06-18 中国联合网络通信集团有限公司 Short message processing method and short message center
CN104702800A (en) * 2013-12-04 2015-06-10 中国移动通信集团公司 Harassing number identifying method, device and system

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101990180B (en) * 2009-08-04 2016-03-30 中兴通讯股份有限公司 A kind of method and system preventing short message fraud
CN101697620A (en) * 2009-10-30 2010-04-21 中兴通讯股份有限公司 Method and system for determining spam messages
CN102395128B (en) * 2011-06-30 2015-12-09 北京邮电大学 A kind of fallacious message of mobile intelligent terminal sends defence method and system thereof
CN102957673B (en) * 2011-08-24 2015-12-16 腾讯科技(深圳)有限公司 A kind of processing method of information, equipment and system
CN103020820A (en) * 2011-09-20 2013-04-03 深圳市财付通科技有限公司 Transaction payment method and system
CN103379018B (en) * 2012-04-17 2016-02-24 腾讯科技(深圳)有限公司 The processing method of application message and system
CN103841167A (en) * 2012-11-27 2014-06-04 中国移动通信集团公司 User data synchronizing method and device
US9451082B2 (en) * 2013-03-27 2016-09-20 Hongming Jiang Social communication system
CN104144394A (en) * 2013-05-09 2014-11-12 中国移动通信集团公司 Method and system for achieving industry application short message sending
KR20150024056A (en) * 2013-08-26 2015-03-06 삼성전자주식회사 Http(hypertext transfer protocol) message processing method and electronic device implementing the same
CN105531669A (en) * 2013-08-28 2016-04-27 慧与发展有限责任合伙企业 Message delivery via preferred communications applications
CN103685763A (en) * 2013-12-31 2014-03-26 深圳市金立通信设备有限公司 Message processing method and terminal
CN105207881B (en) * 2014-06-10 2018-12-28 阿里巴巴集团控股有限公司 A kind of message method and equipment
CN104239093B (en) * 2014-08-28 2018-03-09 广州猎豹网络科技有限公司 A kind of informing message erasing method and device
CN104835066A (en) * 2015-05-25 2015-08-12 北京京东尚科信息技术有限公司 Embarking channel selection method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101335920A (en) * 2008-07-15 2008-12-31 中国联合通信有限公司 Rubbish short message recognition system and method based on calling number location and transmitted content
CN101707752A (en) * 2009-11-23 2010-05-12 中兴通讯股份有限公司 Communication monitoring method, device and system
CN104702800A (en) * 2013-12-04 2015-06-10 中国移动通信集团公司 Harassing number identifying method, device and system
CN103874058A (en) * 2014-03-28 2014-06-18 中国联合网络通信集团有限公司 Short message processing method and short message center

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108694657A (en) * 2018-07-13 2018-10-23 平安科技(深圳)有限公司 Client's identification device, method and computer readable storage medium
CN108694657B (en) * 2018-07-13 2023-04-18 平安科技(深圳)有限公司 Client identification apparatus, method and computer-readable storage medium
CN111930536A (en) * 2020-07-31 2020-11-13 银盛支付服务股份有限公司 Message notification method based on incoming system
CN113703993A (en) * 2021-07-27 2021-11-26 支付宝(杭州)信息技术有限公司 Service message processing method, device and equipment

Also Published As

Publication number Publication date
TWI678086B (en) 2019-11-21
TW201733312A (en) 2017-09-16
CN107181664B (en) 2021-04-09
CN107181664A (en) 2017-09-19

Similar Documents

Publication Publication Date Title
WO2017152765A1 (en) Automatic fusing-based message sending method, device and system
CN113766035B (en) Service acceptance and consensus method and device
US11569982B2 (en) Blockchain compression using summary and padding blocks
WO2017084521A1 (en) Order clustering method and device, and malicious information rejecting method and device
US20110231478A1 (en) System, Server, and Mobile Device for Content Provider Website Interaction and Method Therefore
US9830139B2 (en) Application experience sharing system
CN107896170B (en) Insure the monitoring method and device of application system
CN110650164B (en) File uploading method and device, terminal and computer storage medium
US9531827B1 (en) Push notification delivery system with feedback analysis
US11962680B2 (en) Blockchain ledger growth management
CN110610376A (en) Behavior data response method and device, computer equipment and storage medium
US9886336B2 (en) Automatic filing of a task for application crashes
CN105022815A (en) Information interception method and device
US20150058935A1 (en) Out-of-Path, Content-Addressed Writes with Untrusted Clients
US11625382B2 (en) Blockchain as a service method, apparatus, and system
CN111400170A (en) Data permission testing method and device
US20200304448A1 (en) System and Method for Detecting and Predicting Level of Importance of Electronic Mail Messages
WO2020000742A1 (en) Deduplication traffic recording method, device, server and storage medium
CN114020496A (en) Data checking method and device, electronic equipment and storage medium
CN106371856A (en) Menu statistical method and user terminal and application backstage terminal
CN104933077A (en) Rule-based multi-file information analysis method
CN112995018B (en) Message processing method, device, equipment and storage medium
CN110943921B (en) Intelligent route configuration method
CN114048059A (en) Method and device for adjusting timeout time of interface, computer equipment and storage medium
US10922349B1 (en) Filtering remote access monitoring data

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17762451

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 17762451

Country of ref document: EP

Kind code of ref document: A1