A high-concurrency messaging system for financial asset trading

By designing a high-concurrency message processing system based on asynchronous processing and horizontal expansion of message queue servers in Internet finance, combined with the method of dynamically switching message channels, the problems of low message push efficiency and frequent system failures under high concurrency in Internet finance are solved. Efficient message sending and system performance improvement.

CN113051083BActive Publication Date: 2024-09-20ZHEJIANG FINANCIAL ASSETS TRADING CENT CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN201911377949.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-12-27
Publication Date
2024-09-20
Estimated Expiration
2039-12-27

AI Technical Summary

Technical Problem

In Internet finance, existing message information application systems are difficult to effectively utilize hardware resources under high concurrency conditions, resulting in low message push efficiency and frequent system failures. The message channel switching scheme needs to be continuously improved based on actual application scenarios, but there are large technical limitations. .

Method used

Design a high-concurrency message processing system based on the asynchronous mechanism of the message queue server (MQ). Through the collaborative work of the message generation module, internal management module and message processing module, the asynchronous processing mechanism and horizontal expansion mode are used, combined with the dynamic switching of message channels. Method to improve message sending efficiency and system performance.

Benefits of technology

It realizes high-concurrency processing of message sending, improves the response speed and throughput of the system, ensures the high availability and performance of the messaging platform, and reduces the impact caused by message channel abnormalities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113051083B
    Figure CN113051083B
Patent Text Reader

Abstract

The present invention discloses a high-concurrency message system for financial asset transactions, including: a message generation module, which is used to query the messages to be sent from the message table, obtain the summary messages to be sent from the database, and parse, verify and split the messages into details; an internal management module, which is used to maintain basic parameters and data dictionaries, provide a message sending page entrance, and provide a message sending query entrance; a message processing module, which is used to obtain the details of the messages to be sent from the message queue server, call a specific type of message sending interface to send the message, and provide an interface for internal third-party system calls. The message system of the present invention is based on the asynchronous mechanism of the message queue server, supports high-concurrency message sending, and the system expands the server horizontally according to the actual concurrent volume of the business, and can dynamically switch the message channel according to the message sending failure rate, so as to realize the efficient sending of five commonly used message types such as SMS, station letter, email, APP Push and service number.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of communication technology, and in particular relates to a high-concurrency message system for financial asset transactions. Background Art

[0002] With the development of Internet technology, Internet finance has gradually emerged, but at the same time it faces problems such as poor security, weak business expansion capabilities, high maintenance costs, and system failures under high concurrency. With the continuous development and maturity of communication technology, mobile services have gradually covered the information applications of various industries. In Internet finance, communication technology has improved the effective interaction between business platforms and operators in financial enterprises, thereby improving the business efficiency of financial enterprises. In general, enterprise message platforms have message sending requirements such as SMS, service number push, station message, APP push, and email, so enterprises need to build and maintain their own message information business systems.

[0003] As the message information service in mobile communication business becomes more and more popular, its business volume is developing rapidly, so the message application system must effectively use the software system resources to push the message information service based on the current hardware infrastructure. However, under the condition of certain hardware infrastructure, how to use the software system to push a large amount of message information to mobile phone users in the shortest time and complete information exchange with relevant operators becomes the key to the real-time nature of message information application.

[0004] In the design of the Internet distributed system architecture of the application message information business system, one of the technical factors that must be considered is how to achieve high concurrency. High concurrency usually refers to ensuring that the system can process a large number of requests in parallel through design. Common indicators related to high concurrency include response time, throughput, query per second (QPS), number of concurrent users, etc. In theory, there are two main ways to achieve high concurrency: vertical expansion (Scale Up) and horizontal expansion (Scale Out). Vertical expansion refers to improving the processing capabilities of a single machine. There are two ways to vertically expand: (1) enhance the hardware performance of a single machine, such as increasing the number of CPU cores, upgrading to a better network card, upgrading to a better hard disk, expanding hard disk capacity, and expanding system memory; (2) improve the performance of a single machine architecture, such as using asynchrony to increase the throughput of a single service. Horizontal expansion means that only by increasing the number of servers, the performance of the system can be linearly expanded. The design of high concurrency can be proposed in different enterprises according to the actual application scenarios.

[0005] In the actual SMS sending scenario, the proportion of mobile phone numbers used by enterprise users belonging to different operators varies. There are users of various enterprises in China Mobile, China Telecom and China Unicom. At the same time, some enterprises have opened full network access agreements with message service operators, while others have only opened local network access agreements. In this case, the enterprise message platform needs to select the number of message channels and the proportion of message channel traffic for docking with operator messages according to the proportion of mobile phone number types used by enterprise users. At present, some enterprise message platforms intelligently select message sending channels for message sending based on routing algorithms, message channel pressure, message sending efficiency, message channel traffic, message channel sending message types and message channel service protocols, thereby improving the processing performance of the message platform and the automated management of operation and maintenance. However, due to technical limitations, the channel switching solution of the message platform still needs to be continuously improved according to actual application scenarios. Summary of the invention

[0006] Based on the above background and the problems existing in the prior art, the present invention proposes to design a high-concurrency message processing system for financial asset transactions, which can support asynchronous processing of high-concurrency message sending based on the asynchronous mechanism of the message queue server (MQ). Another purpose of the present invention is to improve the efficiency of message sending by dynamically switching message channels so as to achieve high concurrency of messages.

[0007] In order to achieve these purposes and other advantages of the present invention, a high-concurrency messaging system for financial asset trading is provided, which is composed as follows:

[0008] The message generation module includes n subsystems, where the number n is set as needed, and is used to query the message to be sent from the message table, obtain the summary message to be sent from the database, parse the message (parsing means processing a message record in the table to obtain the real message content), verify and split the details, and then send it to the message queue server;

[0009] The internal management module includes n subsystems, which are used to maintain basic parameters, data dictionary (system configuration parameters) and MQ, provide a page entry for sending messages, and provide a query entry for message sending. The internal management module configures the message channel internally, uses two modes: custom signature and agreed signature, and selects the message sending channel of the corresponding mode according to the message business type;

[0010] The message processing module includes n subsystems, which are used to obtain the details of the message to be sent from MQ, call the message sending API (interface) to send the message, and the internal third-party message demand system calls the API to obtain the message to be sent on the internal management module, and call the corresponding message API according to the message type to send the message;

[0011] Among them, the three major modules all include a high-concurrency message processing system, which adopts the asynchronous processing MQ mechanism (after the message system receives the message request sent by the third-party system, it stores the request record in the database, and then replies to the third-party system with the response result of successful reception, and then actually executes the message sending), which is used for high-concurrency message sending, and the server is expanded horizontally according to the actual concurrency of the business; it includes a message queue server server, which is used to cache messages to be sent; it also includes a message channel switching system, which is used to connect to multiple message channels and dynamically switch message channels according to the message sending failure rate; the message channel switching system also includes a reachability verification mechanism for realizing channel intelligent management.

[0012] Preferably, the basic parameters maintained by the internal management module include: message type, template, user group, blacklist and other key information related to the maintenance process. MQ uses the master-slave mode. When the MQ performance cannot meet the requirements, the performance problem is solved by adding MQ nodes and deploying the cluster mode; by sending messages on the page of the internal management subsystem; the message generation module queries the messages to be sent in real time; the message processing module obtains the messages to be sent from MQ in real time, and calls the corresponding message API to send the messages according to the message type; the message generation module and the message processing module adopt the horizontal expansion mode, and deploy nodes according to the actual business volume.

[0013] Furthermore, in addition to sending messages on the page of the internal management subsystem of the internal management module, messages can also be sent online through the API provided by the system. After receiving the message sending request, data verification is performed and then stored in the database. The subsequent message sending process is an asynchronous processing process, which improves the response speed of third-party API calls and the overall TPS (throughput) of the system; the message generation module queries the message to be sent in real time: the message generation subsystem of the message generation module starts the scheduled task to obtain the message to be sent from the database in real time, and sends the message to MQ after parsing. The message processing module obtains the message to be sent from MQ in real time: the message processing subsystem of the message processing module obtains the message from the database in real time, selects the corresponding message sending program according to the type of the message, and sends the message. The message processing subsystem is horizontally expanded according to the concurrency situation, and the number of nodes that meet the business volume requirements is deployed. Generally speaking, the speed of message consumption is lower than the speed of message reception, so the nodes of the message processing subsystem are more than the nodes of the message generation subsystem. Different types of message processing are realized, and each type of message uses the same MQ to achieve isolation and high availability of various message types, avoiding the situation where other message types are unavailable due to individual types of message sending problems. The message generation subsystem horizontally expands and deploys nodes according to the concurrency situation, which can not only ensure high availability and avoid single point problems, but also improve the performance of the system.

[0014] Furthermore, the process of implementing high-concurrency message processing includes the following steps:

[0015] 1.1 Asynchronous message sending: The message generation subsystem queries the message table for messages to be sent in real time and sends the messages to MQ;

[0016] 1.2 MQ receives the message to be sent and caches the message to be sent;

[0017] 1.3 The message processing subsystem obtains the messages to be sent from MQ in real time, and calls the corresponding message API according to the message type to send the message;

[0018] 1.4 The message production subsystem and message processing subsystem support horizontal expansion and deploy nodes according to actual business volume.

[0019] The purpose of dynamically switching message channels in the present invention can be further achieved by configuring relevant strategies. The configured strategies include: configuring early warning strategies to realize the sending of messages in the latest unit time and scheduled messages; configuring strategy effectiveness strategies to switch the current message channel to another message channel; configuring scheduled or fixed-frequency scanning strategies to scan message sending records at a scheduled or fixed-frequency rate. When a specific early warning strategy is triggered, the corresponding configuration is executed (the corresponding configuration refers to the driving strategy, that is, when the trigger condition is triggered during system operation, the execution action configured by the strategy will be executed) to complete the dynamic switching of message channels. The method of dynamically switching channels is used to dynamically adjust the switching strategy according to the actual sending success rate of each message channel during the financial asset transaction process, and asynchronous message sending is realized through the database and MQ. The implementation method of dynamically switching message channels includes:

[0020] 2.1 Configure message channels in the internal management module. The number of message channels is set according to the business volume;

[0021] 2.2 Configure early warning strategies for sending messages within the latest unit time and sending messages at scheduled times;

[0022] 2.3 Configure the message channel switching strategy to switch the current message channel to another message channel;

[0023] 2.4 Configure a timing or fixed frequency strategy to scan the message sending records at a fixed time or fixed frequency. When a specific warning strategy is triggered, the corresponding configured effective strategy is executed to complete the dynamic switching of the message channel;

[0024] 2.5 Dynamically adjust the switching strategy based on the actual sending success rate of each message channel.

[0025] Furthermore, in the message channel switching system, the message sending strategy is dynamically switched according to the configuration, and the message sending strategy consists of three parts: trigger conditions, execution strategy and driving strategy. The specific implementation steps are as follows:

[0026] 3.1 Trigger conditions define the specific way to trigger execution, including three message trigger conditions: single message failure, message failure rate in the recent time period, and message failure rate in the past. After configuring the trigger conditions, the system starts the corresponding program to process and judge the current trigger conditions. Among them, the message failure rate in the recent time period and the recent specific number of message failure rates are used to configure the trigger conditions of the message failure rate in the recent time period;

[0027] 3.2 Execution strategies include notification reminders, message resending through the current message channel, message resending by switching channels, and message resending by switching channels as a whole. These strategies are used to timely detect message channel anomalies and execute pre-maintenance driving strategies:

[0028] 1) Notification reminder strategy, including using email and APP (application end) to push messages and send notification messages to the advance maintenance end (the advance maintenance end belongs to the message strategy sending system to realize system operation and maintenance);

[0029] 2) Implement message resending strategy through the current message channel, which is used to resend the message using the current channel of the message;

[0030] 3) A message resending strategy is implemented by switching channels, which is used to switch to another message channel for message resending;

[0031] 4) The overall switching channel for message resending strategy is used to switch the current message sending channel to another channel, and then use this new channel to send messages. When a serious problem occurs in the message channel, the overall switching is switched to another channel for message resending.

[0032] 3.3 The driving strategy connects the trigger conditions and the execution strategy, and is composed of the trigger conditions, execution strategies and priorities. When the system operation triggers the trigger conditions, the execution strategy configured by the driving strategy is executed. The system scans the message sending table using two modes: fixed frequency and timing. Then the message sending failure rate is calculated to determine whether the trigger conditions are met. The message channel switching system configures m driving strategies, each strategy corresponds to a priority. When m trigger conditions are triggered at the same time, the tasks under the trigger conditions with higher priority are executed according to the configuration.

[0033] The reachability verification mechanism is used in the message channel switching system to dynamically implement the timing task in the process of switching the message channel, including the following steps:

[0034] 4.1 The message processing module is pre-set with three channels of identity identification smart (SIM) cards, which are used to receive the verification messages sent by the message generation module in the message system;

[0035] 4.2 After receiving the verification message, the message processing module sends the attributes of the verification message (including message receiving time, receiving channel, sender name, message content, etc.) to the internal management module;

[0036] 4.3 The internal management module calculates the reachability of the channel in real time based on the attributes of the verification message and generates basic data (basic parameters), including the message channel, the receiver channel, the message reachability judgment and the message delivery time interval;

[0037] 4.4 The internal management module calculates the availability score of the message channel based on this basic data. This score is the result of the message reachability verification.

[0038] Other advantages, objectives and features of the present invention will be reflected in part through the following description, and in part will be understood by those skilled in the art through research and practice of the present invention. The present invention at least includes the following beneficial effects: the message system of the present invention implements the sending of five commonly used information types, such as text messages, station letters (messages within the system), emails, APP Push (application message push) and service numbers. The messages of the text message type adopt two modes, namely, custom signature and agreed signature, to achieve the flexibility of signature. The message sending in the system of the present invention implements asynchronous message sending through MQ, realizes high-concurrency message sending, expands the server horizontally according to the actual concurrency of the business, connects to multiple message channels, and sends two types of sending messages in batches through interface calls and internal management modules. The message channel can be dynamically switched according to the message sending failure rate, ensuring the high availability and high performance of the system. The message channel retransmission strategy is flexibly configured, which can promptly detect message channel anomalies and execute specific strategies maintained in advance, reducing the impact caused by the anomaly of a certain message channel. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 A diagram showing a mechanism for implementing high concurrent message processing in the system of the present invention;

[0040] Figure 2 A flowchart for realizing high-concurrency message processing in the present invention;

[0041] Figure 3 A schematic diagram of the present invention for implementing dynamic switching of message sending strategies;

[0042] Figure 4 This is a diagram of the reachability verification mechanism of the present invention. DETAILED DESCRIPTION

[0043] In order to clearly explain the present invention and make the objectives, technical solutions and advantages of the embodiments of the present invention clearer, the technology of the present invention will be described in detail in the following specific implementation modes in combination with the accompanying drawings, so that those skilled in the art can implement it according to the description.

[0044] Figure 1 The diagram shows the mechanism of the system of the present invention to realize high-concurrency message processing, and shows the principle of coordinated interaction of the three modules of message generation module, internal management module and message processing module for processing messages. A high-concurrency message processing system for financial asset trading is composed of the following:

[0045] The message generation module includes n subsystems, where the number n is set as needed, and is used to query the messages to be sent from the message table, obtain the summary messages to be sent from the database, and parse, verify and split the messages into details before sending them to the message queue server;

[0046] The internal management module contains n subsystems, which are used to maintain basic parameters, data dictionaries and MQ, provide a page entry for sending messages, and provide a query entry for message sending. The internal management module configures message channels, and the number of these message channels is configured according to the specific business volume. Use two modes: custom signature and agreed signature. Select the message sending channel of the corresponding mode according to the message business type;

[0047] The message processing module includes n subsystems, which are used to obtain the details of the message to be sent from MQ, call the message sending API (interface) to send the message, and the internal third-party message demand system calls the API to obtain the message to be sent on the internal management module, and call the corresponding message API according to the message type to send the message;

[0048] Among them, the three major modules all include a high-concurrency message processing system, which adopts the asynchronous processing MQ mechanism for high-concurrency message sending, and expands the server horizontally according to the actual concurrency of the business; it includes a message queue server for caching messages to be sent; it also includes a message channel switching system, which is used to connect to multiple message channels and dynamically switch message channels according to the message sending failure rate; the message channel switching system also includes a reachability verification mechanism for realizing intelligent channel management.

[0049] Among them, the basic parameters maintained by the internal management module include: message type, template, user group, blacklist and other key information involved in the maintenance process. MQ uses the master-slave mode. MQ can cache a large number of messages and has high performance. For example, when the main MQ is abnormal, the slave MQ automatically takes over and provides message reading and writing services to ensure high availability. When the MQ performance cannot meet the requirements, the performance problem can be solved by adding MQ nodes and deploying the cluster mode; by sending messages on the page of the internal management subsystem; the message generation module queries the messages to be sent in real time. The message processing module obtains the messages to be sent from MQ in real time, and calls the corresponding message API to send the messages according to the message type; the message generation module and the message processing module adopt the horizontal expansion mode and deploy nodes according to the actual business volume.

[0050] In addition to sending messages on the page of the internal management subsystem of the internal management module, messages can also be sent online through the interface provided by the system. After receiving the message sending request, data verification is performed and then stored in the database. The subsequent message sending process is an asynchronous processing process, which improves the response speed of third-party API calls and the overall TPS of the system; the message generation module queries the messages to be sent in real time: the message generation subsystem of the message generation module starts the scheduled task to obtain the messages to be sent from the database in real time, and sends the messages to MQ after parsing. The message processing module obtains the messages to be sent from MQ in real time: the message processing subsystem of the message processing module obtains the messages from the database in real time, selects the corresponding message sending program according to the type of the message, and sends the messages. The message processing subsystem is horizontally expanded according to the concurrency situation, and the number of nodes that meet the business volume requirements is deployed. For example, when the business volume is m, m nodes are deployed. Generally speaking, the speed of message processing is lower than the speed of message reception (acquisition), so the nodes of the message processing subsystem are more than the nodes of the message generation subsystem. Different types of message processing are realized, and each type of message uses the same queue to achieve isolation and high availability of various message types, avoiding the unavailability of other message types due to individual types of message sending problems. The message generation subsystem can be horizontally expanded and deployed on multiple nodes according to the concurrency situation. This can not only ensure high availability and avoid single point problems, but also improve the performance of the system.

[0051] 2. Figure 2 The process of implementing high-concurrency message processing in the present invention includes the following steps:

[0052] 1.1 Asynchronous message sending: The message generation subsystem queries the message table for messages to be sent in real time and sends the messages to MQ;

[0053] 1.2 MQ receives the message to be sent and caches the message to be sent;

[0054] 1.3 The message processing subsystem obtains the messages to be sent from MQ in real time, and calls the corresponding message API according to the message type to send the message;

[0055] 1.4 MQ can cache massive messages;

[0056] 1.5 The message production subsystem and message sending subsystem support horizontal expansion and deploy nodes according to actual business volume.

[0057] 3. Figure 3 The schematic diagram of the present invention for realizing dynamic switching of message channels. The purpose of realizing dynamic switching of message channels in the present invention can be further realized by configuring relevant strategies. The configured strategies include: configuring early warning strategies to realize the sending of messages in the most recent unit time, such as the interval of the most recent 1 minute, 3 minutes, and 10 minutes, and sending messages at regular intervals, such as every 1 minute, 3 minutes, and 10 minutes; configuring strategy effectiveness strategies to switch the current message channel to another message channel; configuring timed or fixed-frequency scanning strategies, and timed or fixed-frequency scanning message sending records. When a specific early warning strategy is triggered, the corresponding configuration is executed (the corresponding configuration refers to the driving strategy, that is, when the trigger condition is triggered during system operation, the execution action configured by the strategy will be executed), thereby completing the dynamic switching of message channels. The implementation methods or strategies for realizing dynamic switching of message channels include:

[0058] 2.1 Configure multiple message channels in the internal management module, and the number of message channels is set according to the business volume;

[0059] 2.2 Configure early warning strategies for sending messages within the latest unit time and sending messages at scheduled times;

[0060] 2.3 Configure the message channel switching strategy to switch the current message channel to another message channel;

[0061] 2.4 Configure a timing or fixed frequency strategy to scan the message sending records at a fixed time or fixed frequency. When a specific warning strategy is triggered, the corresponding configured effective strategy is executed to complete the dynamic switching of the message channel;

[0062] 2.5 Dynamically adjust the switching strategy based on the actual sending success rate of each message channel.

[0063] Among them, the method of dynamic channel switching is used to dynamically adjust the switching strategy according to the actual sending success rate of each message channel during the financial asset transaction process, and asynchronous message sending is realized through the database and MQ. This system dynamically switches the message sending strategy according to the configuration. The message sending strategy consists of three parts: trigger conditions, execution strategy and driving strategy. The specific steps to realize the dynamic switching of message sending strategy are as follows:

[0064] 3.1 The trigger condition defines the specific way to trigger the execution, including three message trigger conditions: failure to send a single message, failure rate of message sending in the recent time period, and failure rate of message sending in the past. After configuring the trigger condition, the system starts the corresponding program to process and judge the current trigger condition. Among them, the failure rate of message sending in the recent time period and the failure rate of the recent specific number of messages are used to configure the trigger condition of the message failure rate in the recent period;

[0065] 3.2 Execution strategies include notification reminders, message resending through the current message channel, message resending by switching channels, and message resending by switching channels as a whole. These strategies are used to promptly detect message channel anomalies and execute pre-maintenance strategies:

[0066] a) Notification reminder strategy, including using email and APP (application end) to push messages and send notification messages to the advance maintenance end;

[0067] b) A message resending strategy is implemented through the current channel, which is used to resend the message using the current channel of the message;

[0068] c) Message retransmission strategy is implemented by switching channels, which is used to switch to another message channel for retransmission;

[0069] d) The overall switching channel for message resending strategy is used to switch the current message sending channel to another channel, and then use this new channel to send messages. When a serious problem occurs in the message channel, the entire channel is switched to another channel for message resending.

[0070] 3.3 The driving strategy connects the trigger conditions and the execution strategy, and is composed of the trigger conditions, execution strategies and priorities. When the system operation triggers the trigger conditions, the execution strategy configured by the driving strategy is executed. The system scans the message sending table using two modes: fixed frequency and timing. Then the message sending failure rate is calculated to determine whether the trigger conditions are met. The message channel switching system configures m driving strategies, each strategy corresponds to a priority. When m trigger conditions are triggered at the same time, the tasks under the trigger conditions with higher priority are executed according to the configuration.

[0071] 4. Figure 4 The reachability verification mechanism of the present invention is used in the message channel switching system to realize the timing task in the process of dynamically switching the message channel. This scheme has the advantage of realizing intelligent management of the information channel. Its working mode is:

[0072] 4.1 The message processing module presets three channels (for example, the mobile operator or the agent of the mobile operator provides the message sending technology channel) of the SIM (identity identification smart card) card, which is used to receive the verification message sent by the message generation module in the message system;

[0073] 4.2 After receiving the verification message, the message processing module sends the attributes of the verification message (such as message receiving time, receiver channel, sender name, message content, etc.) to the internal management module system;

[0074] 4.3 The internal management module calculates the reachability of the channel in real time based on the attributes of the verification message and generates basic data (basic parameters), including the message channel, the receiver channel, whether the message is reachable, and the message delivery time interval;

[0075] 4.4 The internal management module calculates the availability score of the message channel based on this basic data. This score is the result of the message reachability verification.

[0076] The number of modules and processing scales described here are used to simplify the description of the present invention. Applications, modifications and variations of the information processing system of the present invention will be obvious to those skilled in the art.

[0077] As described above, according to the present invention, since a high-concurrency message processing system is applied and a reachability verification mechanism is configured in the message channel switching system, dynamic switching of message channels is achieved, thereby achieving the effect of intelligent and efficient management of message channels.

[0078] The above description of the embodiments is to facilitate the understanding and application of the present invention by those skilled in the art. It is obvious that those skilled in the art can easily make various modifications to the above embodiments and apply the general principles described herein to other embodiments without creative work. Therefore, the present invention is not limited to the above embodiments, and improvements and modifications made to the present invention by those skilled in the art based on the disclosure of the present invention should be within the scope of protection of the present invention.

Claims

1. A high-concurrency messaging system for financial asset trading, It is characterized in that include: The message generation module includes n subsystems, where the number n is set as needed, and is used to query the messages to be sent from the message table, obtain the summary messages to be sent from the database, and parse, verify and split the messages into details before sending them to the message queue server; The internal management module includes n subsystems, which are used to maintain basic parameters and data dictionaries, provide a page entry for sending messages, and provide a query entry for message sending. The internal management module configures message channels internally, uses two modes: custom signature and agreed signature, and selects the message sending channel of the corresponding mode according to the message business type; The message processing module includes n subsystems, which are used to obtain the details of the message to be sent from the message queue server, call the message sending interface to send the message, the internal third-party message demand system calls the interface, obtains the message to be sent on the internal management module, and calls the corresponding message interface according to the message type to send the message; Among them, the three major modules all include a high-concurrency message processing system, which adopts an asynchronous processing message queue server mechanism for high-concurrency message sending, and expands the server horizontally according to the actual concurrency of the business; it includes a message queue server server for caching messages to be sent; it also includes a message channel switching system, which is used to connect to multiple message channels and dynamically switch message channels according to the message sending failure rate; the message channel switching system also includes a reachability verification mechanism for realizing intelligent channel management.

2. The high-concurrency messaging system for financial asset transactions according to claim 1, It is characterized in that The basic parameters maintained by its internal management module include: message type, template, user group, blacklist and key information involved in the maintenance process; the message queue server uses the master-slave mode. When the performance of the message queue server cannot meet the requirements, the performance problem is solved by adding message queue server nodes and deploying cluster mode recovery; messages are sent on the page of the internal management subsystem; the message generation module queries the messages to be sent in real time; the message processing module obtains the messages to be sent from the message queue server in real time, and calls the corresponding message interface to send the messages according to the message type; the message generation module and the message processing module adopt the horizontal expansion mode and deploy nodes according to the actual business volume.

3. The high-concurrency messaging system for financial asset transactions according to claim 2, It is characterized in that In addition to sending messages on the page of the internal management subsystem of the internal management module, messages can also be sent online through the interface provided by the system. After receiving the message sending request, data verification is performed and then stored in the database. The subsequent message sending process is an asynchronous processing process; the message generation module queries the messages to be sent in real time: the message generation subsystem of the message generation module starts the scheduled task to obtain the messages to be sent from the database in real time, parses the messages and sends them to the message queue server; the message processing module obtains the messages to be sent from the message queue server in real time: the message processing subsystem of the message processing module obtains the messages from the database in real time, selects the corresponding message sending program according to the type of message, and sends the messages. The message processing subsystem is horizontally expanded according to the concurrency situation and deploys the number of nodes that meet the business volume requirements; each type of message uses the same message queue server to achieve isolation and high availability of various message types.

4. The high-concurrency messaging system for financial asset transactions according to claim 1, It is characterized in that The process of implementing high-concurrency message processing includes the following steps: 1.1 Asynchronous message sending: The message generation subsystem queries the message table for messages to be sent in real time and sends the messages to the message queue server; 1.2 The message queue server receives the messages to be sent and caches the messages to be sent; 1.3 The message processing subsystem obtains the messages to be sent from the message queue server in real time, and calls the corresponding message interface according to the message type to send the message; 1.4 The message generation subsystem and message processing subsystem support horizontal expansion and deploy nodes according to actual business volume.

5. The high-concurrency messaging system for financial asset transactions according to claim 1, It is characterized in that In the message channel switching system, the method for realizing dynamic channel switching also includes configuring relevant strategies: configuring an early warning strategy to realize the recent unit time message sending and the scheduled message sending; configuring a strategy effectiveness strategy for switching the current message channel to another message channel; configuring a scheduled or fixed frequency scanning strategy to scan the message sending records at a scheduled or fixed frequency, and when a specific early warning strategy is triggered, executing the corresponding configuration to complete the dynamic switching of the message channel; using the method of dynamic channel switching to realize the dynamic adjustment of the switching strategy according to the actual sending success rate of each message channel during the financial asset transaction process, and realizing asynchronous message sending through the database and the message queue server; The implementation method of dynamically switching message channels includes: 2.1 Configure multiple message channels in the internal management subsystem, and the number of message channels is set according to the business volume; 2.2 Configure early warning strategies for sending messages within the latest unit time and sending messages at scheduled times; 2.3 Configure the message channel switching strategy to switch the current message channel to another message channel; 2.4 Configure a timing or fixed frequency strategy to scan the message sending records at a fixed time or fixed frequency. When a specific warning strategy is triggered, the corresponding configured effective strategy is executed to complete the dynamic switching of the message channel; 2.5 Dynamically adjust the switching strategy based on the actual sending success rate of each message channel.

6. The high-concurrency messaging system for financial asset transactions according to claim 1 or 5, It is characterized in that In the message channel switching system, the message sending strategy is dynamically switched according to the configuration. The message sending strategy consists of three parts: trigger conditions, execution strategy and driving strategy. The specific implementation steps are as follows: 3.1 Trigger conditions define the specific way to trigger execution, including three message trigger conditions: single message sending failure, message sending failure rate in the recent time period, and message sending failure rate in the past. After configuring the trigger conditions, the system can start the corresponding program to process the message and judge the current trigger conditions; among them, the message sending failure rate in the recent time period and the recent specific number of message sending failure rate are used to configure the trigger conditions of the message failure rate in the recent time period; 3.2 Execution strategies include notification reminders, message resending through the current message channel, message resending by switching channels, and message resending by switching channels as a whole. These strategies are used to promptly detect message channel anomalies and execute pre-maintenance strategies: 1) Notification reminder strategy, including using email and application to push messages and send notification messages to the advance maintenance terminal; 2) A message resending strategy is implemented through the current message channel, which is used to resend the message according to the current channel where the message is located; 3) A message resending strategy is implemented by switching channels, which is used to switch other message channels for message resending; 4) The strategy of switching channels as a whole to resend messages is used to switch the current message sending channel to another channel, and then use this new channel to send messages; when a serious problem occurs in the message channel, the whole channel is switched to another channel for message resending; 3.3 Driving strategy, composed of trigger conditions, execution strategy and priority: when the trigger condition is triggered during system operation, the execution strategy configured by the driving strategy is executed; the system scans the message sending table using two modes: fixed frequency and timing, and then calculates the message sending failure rate to determine whether the trigger condition is met; the message channel switches your system to configure m driving strategies, each strategy corresponds to a priority, and when m trigger conditions are triggered at the same time, the task under the trigger condition with the highest priority is executed according to the configuration.

7. The high-concurrency messaging system for financial asset transactions according to claim 1, It is characterized in that The reachability verification mechanism is used in the message channel switching system to implement the timing task in the process of dynamically switching the message channel, including the following steps: 4.1 The message processing module presets three channels of identity recognition smart cards for receiving verification messages sent by the message generation module in the message system; 4.2 After receiving the verification message, the message processing module sends the attributes of the verification message to the internal management module; 4.3 The internal management module calculates the reachability of the channel in real time based on the attributes of the verification message and generates basic parameters, including the message channel, the receiver channel, the message reachability judgment and the message delivery time interval; 4.4 The internal management module calculates the availability score of the message channel based on this basic data. This score is the result of the message reachability verification.

Citation Information

Patent Citations

  • Service processing method and system

    CN108076098A

  • Comprehensive monitoring front-end system based on a dynamic load balancing mode and a working method

    CN109614228A

  • A system and method for intelligent hardware message transmission

    CN110417782A

  • Fusion device, system and method for implementing internet protocol television service

    US20150264412A1

  • Context-Aware Dynamic Policy Selection for Messaging Behavior

    US20150365358A1