CN110661668B - Message sending management method and device - Google Patents

Message sending management method and device Download PDF

Info

Publication number
CN110661668B
CN110661668B CN201910936132.8A CN201910936132A CN110661668B CN 110661668 B CN110661668 B CN 110661668B CN 201910936132 A CN201910936132 A CN 201910936132A CN 110661668 B CN110661668 B CN 110661668B
Authority
CN
China
Prior art keywords
message
messages
notification
requested
sending
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910936132.8A
Other languages
Chinese (zh)
Other versions
CN110661668A (en
Inventor
潘康杰
叶露瑶
代玉
黄志华
何西
罗锶
卢道和
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
WeBank Co Ltd
Original Assignee
WeBank Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by WeBank Co Ltd filed Critical WeBank Co Ltd
Priority to CN201910936132.8A priority Critical patent/CN110661668B/en
Publication of CN110661668A publication Critical patent/CN110661668A/en
Priority to PCT/CN2020/114567 priority patent/WO2021057500A1/en
Application granted granted Critical
Publication of CN110661668B publication Critical patent/CN110661668B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0686Additional information in the notification, e.g. enhancement of specific meta-data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/6215Individual queue per QOS, rate or priority
    • 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/224Monitoring or handling of messages providing notification on incoming messages, e.g. pushed notifications of received messages
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention discloses a message sending management method and a device, which relate to the field of data management of financial science and technology (Fintech), wherein the method comprises the following steps: obtaining M first messages from a first application; determining a first message template corresponding to the message type from at least one preset message template according to the message type of the notification message requested by the first message; determining a notification message according to the first message template and the message content of the notification message requested by the first message; determining the sending speed and the sending grade of the notification message requested by each first message in the M first messages according to the service type of the notification message requested by each first message in the M first messages; and according to the sending grade of the notification message requested by each first message in the M first messages, arranging the M notification messages requested by the M first messages to obtain a message queue.

Description

Message sending management method and device
Technical Field
The present invention relates to the field of financial technology (Fintech) data management, and in particular, to a message sending management method and apparatus.
Background
With the development of computer technology, more and more technologies (big data, distributed, blockchain, artificial intelligence, etc.) are applied in the financial field, and the traditional financial industry is gradually changing to financial technology (Fintech). Currently, in the field of financial science and technology, when using mobile application software, a user receives various messages sent by the application software, such as messages sent by short messages, mails, etc., and a system responsible for managing processing, queuing and sending of the messages of the application software is a client notification management system.
In the prior art, a client notification management system starts a plurality of timing tasks according to different message types, takes out a fixed number of messages from a database at fixed time intervals configured in a program in advance, divides message queues according to priorities or business rules in the message types to which the messages belong to push the messages to a downstream system, wherein the messages in a single message queue are processed according to first-in first-out rules, the sending speed is configurable, and the processing among the message queues is not interfered with each other.
The processing mode in the prior art is to carry out fixed number of messages at fixed time intervals and send the messages in a pre-fixed configuration, so that the message configuration is not flexible enough to influence the sending effect.
Disclosure of Invention
The embodiment of the application provides a message sending management method and device, which solve the problem that in the prior art, a fixed number of messages are carried out at fixed time intervals and are sent and processed in a pre-fixed configuration, so that the message configuration is not flexible enough to influence the sending effect.
The embodiment of the application provides a message sending management method, which specifically comprises the following steps:
obtaining M first messages from a first application; each first message in the M first messages is used for requesting to send a notification message, and each first message in the M first messages comprises a message type, a service type and a message content of the notification message to be sent, wherein M is an integer greater than 0;
for any one first message in the M first messages, determining a first message template corresponding to the message type of the notification message requested by the first message from at least one preset message template according to the message type of the notification message requested by the first message; determining a notification message according to the first message template and the message content of the notification message requested by the first message;
determining the sending speed and the sending grade of the notification message requested by each first message in the M first messages according to the service type of the notification message requested by each first message in the M first messages;
according to the sending grade of the notification message requested by each first message in the M first messages, the M notification messages requested by the M first messages are arranged to obtain a message queue;
and sending each notification message in turn according to the sending speed of each notification message according to the sequence of the M notification messages arranged in the message queue.
A possible implementation manner, determining, according to a service type of a notification message requested by each of the M first messages, a sending speed and a sending level of the notification message requested by each of the M first messages, includes:
taking the sending speed and the sending grade corresponding to the service type of the notification message requested by each first message in the M first messages in a preset corresponding relation as the sending speed and the sending grade of the notification message requested by each first message in the M first messages;
the preset corresponding relation comprises a mapping relation of a message type, a service type, the sending speed and the sending grade of the notification message requested by each first message in the M first messages.
A possible implementation manner, after obtaining the message queue, further includes:
according to the sending speed of the notification message requested by each first message in the M first messages, a token bucket algorithm is used to obtain the generation speed of the token;
and controlling the sending speed when each notification message is sent according to the generating speed of the token.
One possible implementation manner further includes:
when the sending speed and the sending grade of the notification message requested by each first message in the M first messages are determined according to the service type of the notification message requested by each first message in the M first messages and are not in the mapping relation, the sending speed and the sending grade corresponding to the service type of the notification message requested by each first message in the M first messages are newly added in the mapping relation;
according to the transmission grade of the notification message requested by each first message in the M newly added first messages, newly adding message queues of M notification messages requested by the M first messages;
and sending each notification message in turn according to the newly increased sending speed according to the sequence of the M notification messages queued in the message queues of the M notification messages requested by the newly increased M first messages.
One possible implementation manner further includes:
acquiring N second messages from the first application;
determining the sending speed and the sending grade of the notification message requested by each second message in the N second messages according to the service type of the notification message requested by each second message in the N second messages;
when the transmission speed and the transmission level are not in the mapping relationship; newly increasing the transmission speed and the transmission grade corresponding to the service type of the notification message requested by each second message in the N second messages in the mapping relation, wherein N is an integer greater than 0;
when the sum of the sending speed of the notification message requested by each of the M first messages and the sending speed of the notification message requested by each of the N second messages is greater than a first speed threshold, adjusting the sending speed of the notification message requested by each of the M first messages so that the sum of the sending speed of the notification message requested by each of the M first messages and the sending speed of the notification message requested by each of the N second messages is less than or equal to the first speed threshold;
according to the sending grade of the notification message requested by each second message in the N second messages, newly adding message queues of N notification messages requested by the N second messages;
and sending each notification message according to the sending speed of the notification message requested by each second message in the N second messages in turn according to the sequence of the N notification messages queued in the message queue of the N notification messages requested by the N newly added second messages.
One possible implementation manner, after sending each notification message sequentially according to the sending speed of the notification message requested by each second message in the N second messages, further includes:
and deleting message queues of N notification messages requested by the N second messages.
The embodiment of the application provides a message sending management device, which specifically comprises:
an acquisition unit configured to acquire M first messages from a first application; each first message in the M first messages is used for requesting to send a notification message, and each first message in the M first messages comprises a message type, a service type and a message content of the notification message to be sent, wherein M is an integer greater than 0;
the processing unit is used for determining a first message template corresponding to the message type of the notification message requested by the first message from at least one preset message template according to the message type of the notification message requested by the first message for any one of the M first messages; determining a notification message according to the first message template and the message content of the notification message requested by the first message;
the processing unit is used for determining the sending speed and the sending grade of the notification message requested by each first message in the M first messages according to the service type of the notification message requested by each first message in the M first messages; according to the sending grade of the notification message requested by each first message in the M first messages, the M notification messages requested by the M first messages are arranged to obtain a message queue; and sending each notification message in turn according to the sending speed of each notification message according to the sequence of the M notification messages arranged in the message queue.
In one possible implementation manner, the processing unit is specifically configured to:
taking the sending speed and the sending grade corresponding to the service type of the notification message requested by each first message in the M first messages in a preset corresponding relation as the sending speed and the sending grade of the notification message requested by each first message in the M first messages;
the preset corresponding relation comprises a mapping relation of a message type, a service type, the sending speed and the sending grade of the notification message requested by each first message in the M first messages.
Embodiments of the present application provide a computer-readable storage medium having stored therein computer-readable instructions that, when read and executed by a computer, cause the computer to perform the method of any one of the possible designs described above.
The embodiment of the application provides a chip, which is connected with a memory and is used for reading and executing a software program stored in the memory so as to realize the method in any one of the possible designs.
The message queue management method and device provided by the invention have the following beneficial effects: the message template corresponding to the message type of the notification message to be sent and the configurable message queue parameters are preset, the notification message of the loading content and the message queue of the loading parameters are obtained, and the notification message is sent by combining the message template with the message queue of the loading content and the message queue of the loading parameters, so that the message content and the queue parameters are more flexibly configured, and various notification messages are more convenient to manage.
Drawings
Fig. 1 is a flowchart of a message sending management method in an embodiment of the present application;
FIG. 2 is a flowchart of an example of a message sending management method and device in an embodiment of the present application;
fig. 3 is a schematic structural diagram of a message sending management device in an embodiment of the present application.
Detailed Description
In order to better understand the above technical solutions, the following detailed description will be made with reference to the accompanying drawings and specific embodiments, and it should be understood that specific features in the embodiments and examples of the present application are detailed descriptions of the technical solutions of the present application, and not limit the technical solutions of the present application, and the technical features in the embodiments and examples of the present application may be combined with each other without conflict.
With the development of computer technology, more and more technologies (big data, distributed, blockchain, artificial intelligence, etc.) are applied in the financial field, and the traditional financial industry is gradually changing to financial technology (Fintech).
In the existing mode, a fixed number of notification messages are taken out of a database at fixed time intervals configured in a program in advance, and then the notification messages are sent to a message processing queue for transmission, and the configuration is written into a configuration file and then called for operation. However, in practical applications, the number of notification messages sent by the user to send the request is generally different, for example, a user a sends 1000 notification messages by using a short message, a user B sends 10000 notification messages by using a short message, and the user B invokes processing in the existing configuration file mode, so that it can be seen that the sending speed required by different users cannot be achieved. In the existing mode, when a user gives a notification message demand corresponding to a message type with higher sending speed, the sending priority and sending speed of the message processing queue cannot be flexibly adjusted on the basis of the existing message processing queue, so that the problem of resource conflict of a sending channel is easily caused. According to the message sending management method, the message template corresponding to the message type of the notification message to be sent and the configurable message queue parameters are preset, then the notification message of loading content and the message queue of loading parameters are obtained, and the notification message is sent by combining the message template with the message queue of loading content and the message queue of loading parameters, so that the message content and the queue parameters are more flexibly configured, when the notification message requirement corresponding to the message type with higher sending speed is provided by a user, the sending priority and the sending speed of the message queue can be flexibly adjusted in a mode of configuring a new message queue, and therefore in practical application, the message content setting, the message queue parameter setting and the increase and decrease setting of the message queue can be flexibly adjusted, and the management of various notification messages is more convenient.
Fig. 1 is a flowchart of a message sending management method according to an embodiment of the present application, and specific steps are described below as shown in the drawings.
Step 101: obtaining M first messages from a first application; each first message of the M first messages is used for requesting to send a notification message, and each first message of the M first messages includes a message type, a service type and a message content of the notification message to be sent, where M is an integer greater than 0.
Specifically, when the client notification management system receives a service requirement of a user for sending a message, acquiring a message type of the notification message required to be sent by the user according to the service requirement, wherein the message type refers to a sender, namely a first application, for sending the notification message; the service type refers to the service level classification of the notification message to be sent; the message content refers to the specific content of the notification message to be sent; m is the number of messages that need to be sent for notification messages.
For example, the first application is an application such as a sms, a mail, etc., and the customer notification management system receives 1000 messages "to better serve you" from a sms, and a warm reminder: you can log in the xxxxxx website with your free-flowing dream movie world. The message type is a short message; the business type is a marketing class; the message content is "to better serve you, warm reminder: you can log in the xxxxxx website with your free-flowing dream movie world'; m is 1000.
Step 102: for any one first message in the M first messages, determining a first message template corresponding to the message type of the notification message requested by the first message from at least one preset message template according to the message type of the notification message requested by the first message; and determining the notification message according to the first message template and the message content of the notification message requested by the first message.
Specifically, message processing logic of various message types is optimized to be standard processing modules in advance according to all message types of notification messages required to be sent by a user, so that a client notification management system can dynamically load different message modules through the message types to process the messages in the operation process.
For example, after the short message in step 101 is obtained, a short message template corresponding to the short message with the message type is determined from at least one preset short message template, mail message template and other message templates, and the message content is "better served for you, and a warm reminder" is provided according to the short message template: you can log in the xxxxxx website, load the dream video world with your free flow into the short message template, and adaptively adjust template parameters such as font format, linked content and the like according to user requirements to obtain the notification message to be sent.
Step 103: and determining the sending speed and the sending grade of the notification message requested by each first message in the M first messages according to the service type of the notification message requested by each first message in the M first messages.
Specifically, a message queue configuration table is preset, and a mapping relation between a message type, a service type, a sending speed and a sending grade of a notification message to be sent is stored in the configuration table, and short messages and mails are taken as examples, specifically shown in the first table, and other cases are not repeated.
List one
Figure BDA0002221633430000071
Figure BDA0002221633430000081
Step 104: and according to the sending grade of the notification message requested by each first message in the M first messages, arranging the M notification messages requested by the M first messages to obtain a message queue.
Step 105: and sending each notification message in turn according to the sending speed of each notification message according to the sequence of the M notification messages arranged in the message queue.
Specifically, in combination with steps 104 to 105, according to the message type and the service type of the notification message required to be sent by the user obtained in step 101, a message queue configuration table preset in step 103 is queried, the sending grade and the sending speed of the notification message to be sent are obtained, and the M notification messages to be sent are arranged according to the sending grade, so that the message queue of the notification message to be sent is obtained.
For example, after the short message in step 101 is obtained, the message type is a short message; the business type is a marketing class; inquiring a message queue configuration table preset in the step 103, and acquiring that the sending grade of the short message to be sent is low; the transmission speed is 100 bits per second (bps); according to the low transmission level, 1000 notification messages to be transmitted are used for better providing service for you, and a warm reminding is performed: you can log in the xxxxxx website and arrange with your free-flowing dream video world to obtain a corresponding low-level message queue.
More specifically, after the message queue is obtained, the message queue is stored in a distributed buffer (Remote Dictionary Server, dis), and the message is fetched from the dis buffer at a uniform speed and then transmitted using a token bucket algorithm.
For example, the sending speed of each notification message of 1000 notification messages to be sent is 100bps, a token bucket algorithm is used to generate a token every 1/100 second to be added into the bucket, when 1000 notification messages are sent, each time a token is obtained from the bucket, one notification message is taken out to be sent, and since the token generation speed is uniform, the sending speed of each notification message is controlled according to the token generation speed, namely, the sending speed can be made to be equal to the token generation speed, so that the message processing sending speed can be kept uniform.
Further, in step 103, when the transmission speed and the transmission rank of the notification message requested by each of the M first messages determined according to the service type of the notification message requested by each of the M first messages are not in the mapping relationship, the transmission speed and the transmission rank corresponding to the service type of the notification message requested by each of the M first messages are newly added in the mapping relationship.
For example, when 1000 notification messages from a short message are acquired, the content of the message is that "No. 9 typhoon liqima will log on north in the south of Zhejiang, most areas affected by the message have heavy local heavy storm in heavy storm, please strengthen precaution", the service type corresponding to the acquired notification message required to be sent by the user is a serious emergency type, when the message queue configuration table preset in step 103 is queried according to the service type, the corresponding sending speed and sending grade cannot be found, and the new service type is the sending speed and sending grade corresponding to the serious emergency type in the message queue configuration table, for example, the sending speed is 800bps and the sending grade is very high.
Then, according to the transmission grade of the notification message requested by each first message in the M newly added first messages, newly adding message queues of M notification messages requested by the M first messages; and sending each notification message in turn according to the newly increased sending speed according to the sequence of the M notification messages queued in the message queues of the M notification messages requested by the newly increased M first messages.
For example, after determining that the transmission speed of the 1000 notification messages is 800bps and the transmission level is very high, a message queue of the 1000 notification messages is newly added according to the newly added transmission level, the 1000 notification messages are queued in the message queue, and each notification message is sequentially transmitted according to the newly added transmission speed of 800 bps.
Further specifically, N second messages from the first application are obtained; determining the sending speed and the sending grade of the notification message requested by each second message in the N second messages according to the service type of the notification message requested by each second message in the N second messages;
when the transmission speed and the transmission level are not in the mapping relationship; newly increasing the transmission speed and the transmission grade corresponding to the service type of the notification message requested by each second message in the N second messages in the mapping relation, wherein N is an integer greater than 0;
and when the sum of the sending speed of the notification message requested by each of the M first messages and the sending speed of the notification message requested by each of the N second messages is greater than a first speed threshold, adjusting the sending speed of the notification message requested by each of the M first messages so that the sum of the sending speed of the notification message requested by each of the M first messages and the sending speed of the notification message requested by each of the N second messages is less than or equal to the first speed threshold.
For example, 2 notification messages from short messages are obtained, wherein the first message content of 800 messages is a message of "domestic garbage four classification, dry and wet are separated, hazard of mess is large, and beautiful home is good; the second type is that the message content of 1000 messages is that 'No. 9 typhoon Liqima is logged in the north in the south of Zhejiang for 10 days, most areas of the province are affected by the 9 typhoons and have heavy local storm, and the protection is enhanced', and the sending grade of the first type of notification message is high according to the message type and the service type of the notification message required to be sent by a user, and the sending speed is 300bps; the transmission level of the second notification message is an extra-high level, the transmission speed is 800bps, if the set first speed threshold is 1000bps, the sum of the transmission speed of the first notification message and the transmission speed of the second notification message is larger than the first speed threshold, and according to the priority processing determined by the transmission level, the set first speed threshold is 1000bps when the transmission speed of the second notification message is 800bps, the transmission speed of the first notification message is adjusted so that the sum of the transmission speed of the first notification message and the transmission speed of the second notification message is smaller than or equal to the first speed threshold, for example, the transmission speed of the first notification message is adjusted to 150bps, and in this way, the transmission of the second notification message is preferentially ensured, thereby more flexibly handling the problem of resource conflict when the extra-high level notification message is transmitted.
According to the sending grade of the notification message requested by each second message in the N second messages, newly adding message queues of N notification messages requested by the N second messages;
and sending each notification message according to the sending speed of the notification message requested by each second message in the N second messages in turn according to the sequence of the N notification messages queued in the message queue of the N notification messages requested by the N newly added second messages.
Specifically, according to the transmission level of the first notification message being a high level, determining a message queue of the first notification message, and according to the order of 800 notification messages queued in the message queue, sequentially transmitting each notification message in the 800 notification messages at a transmission speed of 300 bps.
According to the sending grade of the second notification message is an extra-high grade, a message queue of the second notification message is newly added, and each notification message in 1000 notification messages is sequentially sent according to the sending speed of 800bps according to the sequence of 1000 notification messages queued in the newly added message queue.
More specifically, after each notification message in the 1000 notification messages is sent at the sending speed of 800bps, if the sending level corresponding to the notification message obtained later is still one of the high level and the low level in the message queue configuration table, deleting the newly added message queue.
Fig. 2 is a flowchart of an example of a message sending management method and apparatus according to an embodiment of the present application, and specific steps are described below as shown in the drawings.
Step 201: the client informs the management system to start running;
step 202: receiving a message request;
specifically, when the client notification management system starts running, a notification message which is required to be sent by a user is received, and the message type, the service type and the message content of the notification message are obtained.
Step 203: processing information;
specifically, according to a standard processing module of a message type corresponding to a preset notification message, loading message content and adaptively adjusting template parameters to obtain the notification message to be sent.
Step 204: storing the notification message;
step 205: loading queue configuration according to the message queue configuration table;
specifically, a message queue configuration table is preset, a mapping relation between a message type, a service type, a sending speed and a sending grade of a notification message to be sent is stored in the configuration table, and the preset message queue configuration table is queried to obtain the sending grade and the sending speed of the notification message to be sent when the message type and the service type of the notification message required to be sent by a user are obtained.
Step 206: combining the notification message and the message queue configuration to perform message queue processing;
specifically, the notification messages to be sent are arranged in combination with the stored notification messages and the sending grade in the message queue configuration, so that the message queue of the notification messages to be sent is obtained.
Step 207: storing a message to-be-sent queue;
specifically, a message queue of notification messages to be sent is stored in a Redis buffer, and the sending speed of each notification message is controlled by using a token bucket algorithm.
Step 208: sending a notification message in a queue to be sent;
specifically, the notification messages in the queue to be sent are taken out from the Redis buffer at a uniform speed and then sent.
Step 209: the notification message is sent to the recipient through the gateway.
Further specifically, when the notification message in the queue to be sent is sent to the network, format conversion is performed on the notification message by using a format conversion function in a standard processing module of a message type corresponding to the notification message so as to meet the network sending requirement.
Fig. 3 is a schematic structural diagram of a message sending management device according to an embodiment of the present application, and as shown in the drawing, the message sending management device includes an obtaining unit 301 and a processing unit 302, which are described in detail below.
An acquiring unit 301, configured to acquire M first messages from a first application; each first message in the M first messages is used for requesting to send a notification message, and each first message in the M first messages comprises a message type, a service type and a message content of the notification message to be sent, wherein M is an integer greater than 0;
a processing unit 302, configured to determine, for any first message of the M first messages, a first message template corresponding to a message type of a notification message requested by the first message from at least one preset message template according to a message type of the notification message requested by the first message; determining a notification message according to the first message template and the message content of the notification message requested by the first message;
the processing unit 302 is configured to determine, according to a service type of the notification message requested by each of the M first messages, a sending speed and a sending level of the notification message requested by each of the M first messages; according to the sending grade of the notification message requested by each first message in the M first messages, the M notification messages requested by the M first messages are arranged to obtain a message queue; and sending each notification message in turn according to the sending speed of each notification message according to the sequence of the M notification messages arranged in the message queue.
In one possible implementation manner, the processing unit is specifically configured to:
taking the sending speed and the sending grade corresponding to the service type of the notification message requested by each first message in the M first messages in a preset corresponding relation as the sending speed and the sending grade of the notification message requested by each first message in the M first messages;
the preset corresponding relation comprises a mapping relation of a message type, a service type, the sending speed and the sending grade of the notification message requested by each first message in the M first messages.
In a possible implementation manner, the processing unit is specifically further configured to:
according to the sending speed of the notification message requested by each first message in the M first messages, a token bucket algorithm is used to obtain the generation speed of the token;
and controlling the sending speed when each notification message is sent according to the generating speed of the token.
In a possible implementation manner, the processing unit is specifically further configured to:
when the sending speed and the sending grade of the notification message requested by each first message in the M first messages are determined according to the service type of the notification message requested by each first message in the M first messages and are not in the mapping relation, the sending speed and the sending grade corresponding to the service type of the notification message requested by each first message in the M first messages are newly added in the mapping relation;
according to the transmission grade of the notification message requested by each first message in the M newly added first messages, newly adding message queues of M notification messages requested by the M first messages;
and sending each notification message in turn according to the newly increased sending speed according to the sequence of the M notification messages queued in the message queues of the M notification messages requested by the newly increased M first messages.
In a possible implementation manner, the processing unit is specifically further configured to:
acquiring N second messages from the first application;
determining the sending speed and the sending grade of the notification message requested by each second message in the N second messages according to the service type of the notification message requested by each second message in the N second messages;
when the transmission speed and the transmission level are not in the mapping relationship; newly increasing the transmission speed and the transmission grade corresponding to the service type of the notification message requested by each second message in the N second messages in the mapping relation, wherein N is an integer greater than 0; when the sum of the sending speed of the notification message requested by each of the M first messages and the sending speed of the notification message requested by each of the N second messages is greater than a first speed threshold, adjusting the sending speed of the notification message requested by each of the M first messages so that the sum of the sending speed of the notification message requested by each of the M first messages and the sending speed of the notification message requested by each of the N second messages is less than or equal to the first speed threshold;
according to the sending grade of the notification message requested by each second message in the N second messages, newly adding message queues of N notification messages requested by the N second messages;
and sending each notification message according to the sending speed of the notification message requested by each second message in the N second messages in turn according to the sequence of the N notification messages queued in the message queue of the N notification messages requested by the N newly added second messages.
In a possible implementation manner, the processing unit is specifically further configured to:
and deleting message queues of N notification messages requested by the N second messages.
Finally, it should be noted that: it will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various modifications and variations can be made in the present application without departing from the scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims and the equivalents thereof, the present application is intended to cover such modifications and variations.

Claims (10)

1. A message transmission management method, comprising:
obtaining M first messages from a first application; each first message in the M first messages is used for requesting to send a notification message, and each first message in the M first messages comprises a message type, a service type and a message content of the notification message to be sent, wherein M is an integer greater than 0;
for any one first message in the M first messages, determining a first message template corresponding to the message type of the notification message requested by the first message from at least one preset message template according to the message type of the notification message requested by the first message; determining a notification message according to the first message template and the message content of the notification message requested by the first message;
determining the sending speed and the sending grade of the notification message requested by each first message in the M first messages according to the service type of the notification message requested by each first message in the M first messages;
according to the sending grade of the notification message requested by each first message in the M first messages, the M notification messages requested by the M first messages are arranged to obtain a message queue;
according to the order of the M notification messages arranged in the message queue, each notification message is sent sequentially according to the sending speed of each notification message;
acquiring N second messages from the first application;
determining the sending speed and the sending grade of the notification message requested by each second message in the N second messages according to the service type of the notification message requested by each second message in the N second messages;
according to the sending grade of the notification message requested by each second message in the N second messages, newly adding message queues of N notification messages requested by the N second messages;
and sending each notification message according to the sending speed of the notification message requested by each second message in the N second messages in turn according to the sequence of the N notification messages queued in the message queue of the N notification messages requested by the N newly added second messages.
2. The method of claim 1, wherein determining the transmission speed and the transmission level of the notification message requested by each of the M first messages based on the type of service of the notification message requested by each of the M first messages comprises:
taking the sending speed and the sending grade corresponding to the service type of the notification message requested by each first message in the M first messages in a preset corresponding relation as the sending speed and the sending grade of the notification message requested by each first message in the M first messages;
the preset corresponding relation comprises a mapping relation of a message type, a service type, the sending speed and the sending grade of the notification message requested by each first message in the M first messages.
3. The method of claim 1, further comprising, after obtaining the message queue:
according to the sending speed of the notification message requested by each first message in the M first messages, a token bucket algorithm is used to obtain the generation speed of the token;
and controlling the sending speed when each notification message is sent according to the generating speed of the token.
4. The method as recited in claim 2, further comprising:
when the sending speed and the sending grade of the notification message requested by each first message in the M first messages are determined according to the service type of the notification message requested by each first message in the M first messages and are not in the mapping relation, the sending speed and the sending grade corresponding to the service type of the notification message requested by each first message in the M first messages are newly added in the mapping relation;
according to the transmission grade of the notification message requested by each first message in the M newly added first messages, newly adding message queues of M notification messages requested by the M first messages;
and sending each notification message in turn according to the newly increased sending speed according to the sequence of the M notification messages queued in the message queues of the M notification messages requested by the newly increased M first messages.
5. The method as recited in claim 4, further comprising:
when the sending speed and the sending grade are not in the mapping relation, the sending speed and the sending grade corresponding to the service type of the notification message requested by each second message in the N second messages are newly added in the mapping relation, and N is an integer greater than 0;
and when the sum of the sending speed of the notification message requested by each of the M first messages and the sending speed of the notification message requested by each of the N second messages is greater than a first speed threshold, adjusting the sending speed of the notification message requested by each of the M first messages so that the sum of the sending speed of the notification message requested by each of the M first messages and the sending speed of the notification message requested by each of the N second messages is less than or equal to the first speed threshold.
6. The method of claim 5, wherein after sequentially transmitting each notification message at a transmission rate of the notification message requested by each of the N second messages, further comprising:
and deleting message queues of N notification messages requested by the N second messages.
7. A message transmission management apparatus, comprising:
an acquisition unit configured to acquire M first messages from a first application; each first message in the M first messages is used for requesting to send a notification message, and each first message in the M first messages comprises a message type, a service type and a message content of the notification message to be sent, wherein M is an integer greater than 0;
the processing unit is used for determining a first message template corresponding to the message type of the notification message requested by the first message from at least one preset message template according to the message type of the notification message requested by the first message for any one of the M first messages; determining a notification message according to the first message template and the message content of the notification message requested by the first message;
the processing unit is used for determining the sending speed and the sending grade of the notification message requested by each first message in the M first messages according to the service type of the notification message requested by each first message in the M first messages; according to the sending grade of the notification message requested by each first message in the M first messages, the M notification messages requested by the M first messages are arranged to obtain a message queue; according to the order of the M notification messages arranged in the message queue, each notification message is sent sequentially according to the sending speed of each notification message;
the acquiring unit is further configured to acquire N second messages from the first application;
the processing unit is further configured to determine a sending speed and a sending grade of the notification message requested by each of the N second messages according to a service type of the notification message requested by each of the N second messages; according to the sending grade of the notification message requested by each second message in the N second messages, newly adding message queues of N notification messages requested by the N second messages;
the processing unit is further configured to send each notification message in turn according to the sending speed of the notification message requested by each second message in the N second messages according to the order of the N notification messages queued in the message queues of the N notification messages requested by the N newly added second messages.
8. The apparatus of claim 7, wherein the processing unit is specifically configured to:
taking the sending speed and the sending grade corresponding to the service type of the notification message requested by each first message in the M first messages in a preset corresponding relation as the sending speed and the sending grade of the notification message requested by each first message in the M first messages;
the preset corresponding relation comprises a mapping relation of a message type, a service type, the sending speed and the sending grade of the notification message requested by each first message in the M first messages.
9. A storage medium comprising a program or instructions which, when executed, perform the method of any one of claims 1 to 6.
10. A chip comprising a program or instructions which, when executed, perform the method of any one of claims 1 to 6.
CN201910936132.8A 2019-09-29 2019-09-29 Message sending management method and device Active CN110661668B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910936132.8A CN110661668B (en) 2019-09-29 2019-09-29 Message sending management method and device
PCT/CN2020/114567 WO2021057500A1 (en) 2019-09-29 2020-09-10 Message sending management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910936132.8A CN110661668B (en) 2019-09-29 2019-09-29 Message sending management method and device

Publications (2)

Publication Number Publication Date
CN110661668A CN110661668A (en) 2020-01-07
CN110661668B true CN110661668B (en) 2023-05-16

Family

ID=69038399

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910936132.8A Active CN110661668B (en) 2019-09-29 2019-09-29 Message sending management method and device

Country Status (2)

Country Link
CN (1) CN110661668B (en)
WO (1) WO2021057500A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110661668B (en) * 2019-09-29 2023-05-16 深圳前海微众银行股份有限公司 Message sending management method and device
CN112256458A (en) * 2020-11-09 2021-01-22 北京沃东天骏信息技术有限公司 Message enqueuing method and device, electronic equipment and computer readable medium
CN113918365A (en) * 2021-10-20 2022-01-11 中国联合网络通信集团有限公司 Data processing method, device and equipment based on short message
CN114006877A (en) * 2021-10-28 2022-02-01 深圳平安综合金融服务有限公司 Message transmission method and device, electronic equipment and storage medium
CN114125050A (en) * 2021-11-29 2022-03-01 深圳十方融海科技有限公司 Message scheduling method, device, equipment and storage medium
CN114205762A (en) * 2021-12-10 2022-03-18 中国农业银行股份有限公司 Short message flow control method, equipment and storage medium
CN116192792A (en) * 2023-02-06 2023-05-30 北京达佳互联信息技术有限公司 Message processing method, device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102137280A (en) * 2011-03-11 2011-07-27 深圳清华大学研究院 Information transmission method, receiving processing method, front end and transceiving system
CN102185841A (en) * 2011-04-25 2011-09-14 上海爱数软件有限公司 Classified data transmission method and system
CN106708607A (en) * 2015-11-12 2017-05-24 阿里巴巴集团控股有限公司 Congestion control method and apparatus for message queue
CN107396331A (en) * 2017-09-19 2017-11-24 马上消费金融股份有限公司 A kind of note transmission method and device based on priority query
CN108933993A (en) * 2018-07-03 2018-12-04 平安科技(深圳)有限公司 Short message buffer queue selection method, device, computer equipment and storage medium
US10187486B1 (en) * 2016-03-17 2019-01-22 Google Llc Systems and methods for automatic extension of information from a first network to a second network

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8464275B2 (en) * 2006-05-10 2013-06-11 Oracle International Corporation Method of using a plurality of subscriber types in managing a message queue of a database management system
CN101640573B (en) * 2008-07-28 2011-09-14 华为技术有限公司 Method, device and system for receiving emergency notification
CN108156329A (en) * 2018-01-25 2018-06-12 维沃移动通信有限公司 Method, mobile terminal and the computer readable storage medium that message is sent
CN110661668B (en) * 2019-09-29 2023-05-16 深圳前海微众银行股份有限公司 Message sending management method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102137280A (en) * 2011-03-11 2011-07-27 深圳清华大学研究院 Information transmission method, receiving processing method, front end and transceiving system
CN102185841A (en) * 2011-04-25 2011-09-14 上海爱数软件有限公司 Classified data transmission method and system
CN106708607A (en) * 2015-11-12 2017-05-24 阿里巴巴集团控股有限公司 Congestion control method and apparatus for message queue
US10187486B1 (en) * 2016-03-17 2019-01-22 Google Llc Systems and methods for automatic extension of information from a first network to a second network
CN107396331A (en) * 2017-09-19 2017-11-24 马上消费金融股份有限公司 A kind of note transmission method and device based on priority query
CN108933993A (en) * 2018-07-03 2018-12-04 平安科技(深圳)有限公司 Short message buffer queue selection method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN110661668A (en) 2020-01-07
WO2021057500A1 (en) 2021-04-01

Similar Documents

Publication Publication Date Title
CN110661668B (en) Message sending management method and device
CN102915254B (en) task management method and device
US8271683B2 (en) Content push service
US8862680B2 (en) Methods and systems for data prioritization
US9160699B2 (en) Client responsibilities in messaging systems
GB2496681A (en) A publish/subscribe system with time-sensitive message delivery to subscribers
CN103237296A (en) Message sending method and message sending system
CN108762953B (en) Message queue realizing method
EP1412866A1 (en) Unified messaging with separate media component storage
CN105761039A (en) Method for processing express delivery information big data
CN111526081B (en) Mail forwarding method, device, equipment and storage medium
US10491532B2 (en) Configurable pacing for messaging systems
CN113806177A (en) Cluster monitoring method and device, electronic equipment and storage medium
CN109286573B (en) Peak clipping system based on distributed token bucket
CN108833200A (en) A kind of adaptive unidirectional transmission method of large data files and device
US8379525B2 (en) Techniques to support large numbers of subscribers to a real-time event
CN110995796A (en) Data transmission method and device based on private line
CN112202914B (en) Message pushing method and device
CN111401819B (en) Intersystem data pushing method and system
CN116107710A (en) Method, apparatus, device and medium for processing offline rendering tasks
CN114900489B (en) Message processing method and device, electronic equipment and storage medium
CN114827049A (en) Accumulated data consumption method based on kafka, terminal equipment and storage medium
CN114978998A (en) Flow control method, device, terminal and storage medium
CN107277862B (en) Video transmission scheduling method in mobile cloud computing environment
CN102176705A (en) Method and device for processing mass-sending service

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant