Method and system for intelligent transaction routing control

Through intelligent transaction routing control, monitoring and automatic switching methods and systems, the problems of single point failure, poor scalability and insufficient flexibility of the existing payment gateway system are solved, and high stability, high scalability and multi-payment channels are achieved The flexible integration improves transaction efficiency and security.

CN118710262BActive Publication Date: 2024-11-29SHANGHAI FUIOU PAYMENT SERVICE
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411178771.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-27
Publication Date
2024-11-29
Estimated Expiration
2044-08-27

AI Technical Summary

Technical Problem

The existing payment gateway system has single point of failure, poor scalability, insufficient flexibility and difficulty in meeting the needs of high stability, high scalability and flexible integration of multiple payment channels.

Method used

Using intelligent transaction routing control, monitoring and automatic switching methods and systems, through real-time transaction monitoring, automatic switching routing and flexible routing operations, intelligent management of transaction routing is realized.

Benefits of technology

It improves the stability and scalability of the system, can quickly adapt to market changes, access new payment channels, and ensures transaction efficiency and security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118710262B_ABST
    Figure CN118710262B_ABST
Patent Text Reader

Abstract

The present application relates to a solution for transaction routing control, including: receiving a transaction request and monitoring the real-time transaction status; extracting corresponding basic elements by parsing monitoring data; determining the scenario and corresponding strategy to which the current transaction belongs based on the extracted basic elements and predefined scenarios and strategies; calculating the optimal route through a corresponding routing selection algorithm based on the strategy associated with the determined scenario; recording the routing information of the optimal route, and immediately performing an automatic switching operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of e-commerce, and more specifically, to aspects such as transaction or data routing control (monitoring and automated processing) during online transactions. Background Art

[0002] E-commerce usually refers to commercial and trade activities that are widely carried out around the world. In the open network environment of the Internet, based on the client / server application method, buyers and sellers conduct various commercial activities without meeting each other, realizing consumers' online shopping, online transactions and online electronic payments between merchants, as well as various business activities, transaction activities, financial activities and related comprehensive service activities. A new business operation model.

[0003] With the continuous development of e-commerce, online transaction (also known as "online transaction") technology has also begun to flourish and gradually replaced cash transactions. Online transactions specifically refer to transactions conducted through the Internet, and transactions are mainly completed with virtual currency to purchase various physical items, information services, and virtual products. With the advent of the electronic information age, since the 1990s, transactions completed through the Internet have increased day by day, and now almost all items can be traded on the Internet. The online transaction technology can be applied to, but not limited to, the following technical fields: mobile payment, digital payment platform, electronic wallet, payment processing and gateway technology, etc.

[0004] Currently, mainstream online transaction technologies are usually developed using Java and Spring frameworks, using MySQL as the database and Redis as the cache system, and communicating with various payment channels through TCP, REST or SOAP interfaces.

[0005] In the online transaction technology, the payment gateway system is a common payment processing solution, which is responsible for forwarding the merchant's payment request to the corresponding payment channel.

[0006] The main functions of the payment gateway system include:

[0007] 1. Receiving and parsing payment requests: Receive payment requests from merchants and parse the payment information in the request.

[0008] 2. Routing selection: Select the appropriate payment channel based on the merchant and transaction information.

[0009] 3. Transaction processing: Send the payment request to the selected payment channel and process the payment result.

[0010] 4. Security: Ensure the security of payment data during transmission to prevent data leakage and tampering.

[0011] In reality, although there are already a variety of payment processing systems and methods, they have some obvious shortcomings. The following is a brief description of the existing technology and its shortcomings:

[0012] The existing payment gateway system is one of the common payment processing methods, but it has the following problems:

[0013] 1. Single point of failure: Traditional payment gateway systems usually have single point of failure problems. Once the core components of the system fail, the entire payment processing process may be interrupted.

[0014] 2. Poor scalability: During peak payment periods, the traditional payment gateway system has limited scalability and is unable to cope with large-scale concurrent requests, resulting in slower system response or even crash.

[0015] 3. Lack of flexibility: The integration of different payment channels is difficult, and due to the inflexible system design, it is difficult to quickly adapt to the access of new payment methods or channels.

[0016] In addition to the shortcomings of the existing systems mentioned above, there are also some new demands on payment gateways in the market, but there is a lack of corresponding equipment or methods to meet these demands. These demands specifically include:

[0017] 1. The need for high stability and high scalability

[0018] With the rapid development of e-commerce and mobile payments, merchants have increasing demands for high stability and high scalability of payment systems. Existing systems are difficult to fully meet the needs of large-scale concurrent request processing and rapid response.

[0019] 2. The need for flexible integration of multiple payment channels

[0020] Merchants hope to quickly integrate multiple payment channels, including but not limited to UnionPay, ChinaNet, WeChat Pay, Alipay, etc., to provide more diverse payment options and improve user experience. However, the existing system lacks flexibility when integrating new channels and is difficult to respond quickly to market changes.

[0021] 3. The need for payment data security and consistency

[0022] Payment transactions involve sensitive user information and fund flows, so data security and consistency are crucial. Existing systems often fail to fully meet the security and consistency requirements of payment data while ensuring high performance, posing potential security risks.

[0023] In order to overcome existing problems and meet new demands, it is hoped to provide a real-time synchronous processing method and system that can provide intelligent transaction routing control, monitoring and automatic switching. Summary of the invention

[0024] The present application relates to a real-time synchronous processing method and system capable of providing intelligent transaction routing control, monitoring and automatic switching.

[0025] According to a first aspect of the present application, a method for transaction routing control is provided, comprising:

[0026] Receive transaction requests and monitor real-time transaction status;

[0027] Extract the corresponding basic elements by parsing the monitoring data;

[0028] Determine the scenario and corresponding strategy to which the current transaction belongs based on the extracted basic elements and predefined scenarios and strategies;

[0029] Calculating an optimal route using a corresponding routing algorithm according to the strategy associated with the determined scenario;

[0030] The routing information of the optimal route is recorded, and an automatic switching operation is immediately performed.

[0031] According to a second aspect of the present application, a system for transaction routing control is provided, comprising:

[0032] A transaction initiation module, configured to allow a merchant to initiate a transaction request;

[0033] a transaction monitoring module configured to monitor the transaction status in real time and forward the status data to the routing element module, and if an abnormal transaction is detected, take timely measures to prevent risks to ensure that the transaction proceeds as expected;

[0034] A routing service module is configured to process and route transaction requests from the merchant, and the routing service module includes the following components:

[0035] a routing element component, configured to parse the monitoring data associated with the transaction request and extract the basic elements of the transaction;

[0036] b. a scenario component configured to determine a scenario and a corresponding strategy for a transaction based on the extracted basic elements of the transaction, and to calculate a weight associated with the basic elements based on the determined strategy;

[0037] c. A routing control component configured to calculate an optimal route through a corresponding routing selection algorithm according to the strategy associated with the determined scenario.

[0038] The transaction service module is configured to process the transaction request, manage the transaction status, execute transaction routing switching, and interact with the routing service module and the transaction monitoring module.

[0039] According to a third aspect of the present application, a system for transaction routing control is provided, comprising a device for executing the method as described in the first aspect.

[0040] This Summary is provided to introduce some concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to describe the manner in which the above and other advantages and features of the present invention can be obtained, a more particular description of the invention briefly described above will be presented by reference to specific embodiments of the invention shown in the accompanying drawings. Understanding that these drawings depict only typical embodiments of the invention and are not therefore to be considered limiting of its scope, the invention will be described and explained with additional specificity and detail through the use of the accompanying drawings, in which:

[0042] Figure 1 This is an example block diagram of a system for intelligent transaction routing control (monitoring and automatic switching) according to an embodiment of the present application.

[0043] Figure 2 This is an example flow chart of a method for intelligent transaction routing control (monitoring and automatic switching) according to an embodiment of the present application. DETAILED DESCRIPTION

[0044] Since there is no complete open source technical framework for transaction routing system that can fully solve a series of problems faced by the actual payment processing system and meet the market demand, this application proposes a method and system for intelligent transaction routing control, monitoring and automatic switching. The following describes the problems existing in the prior art and the innovations of the present invention that can overcome these problems.

[0045] First, in general, the solution of the present application provides the following creative improvements:

[0046] 1. Transaction monitoring

[0047] This application introduces a real-time transaction monitoring mechanism, including transaction success rate monitoring and transaction anomaly monitoring, etc. Through real-time monitoring of transaction data, transaction anomalies can be discovered and identified in a timely manner, improving system reliability and user experience.

[0048] 2. Automatic switching maintenance

[0049] When a routing anomaly is detected, the system of this application can automatically switch the routing to ensure that the transaction can proceed smoothly. The specific steps include adding a new routing, switching a routing, and deleting a routing, etc., to ensure the continuous and stable operation of the system in the event of a payment channel failure or anomaly.

[0050] 3. Flexible routing operations

[0051] The system provides a flexible routing operation mechanism, which can add, switch and delete routes according to actual needs. Through this flexible mechanism, it can quickly adapt to market changes, access new payment channels, and improve the scalability and adaptability of the system.

[0052] 4. Real-time collaboration between algorithms and monitoring

[0053] During the transaction, the monitoring module continuously monitors the system's operating status. If an abnormal situation is found (such as increased transaction delays, excessive routing load), the monitoring module will transmit the latest data to the algorithm module.

[0054] After gradually receiving the latest data, the routing control recalculates and optimizes and adjusts the routing strategy.

[0055] Combine the following Figure 1 and 2 A method and system for intelligent transaction routing control (monitoring and automatic switching) of the present application will be described in detail.

[0056] First, if Figure 1 As shown, a system for intelligent transaction routing control (monitoring and automatic switching) according to an embodiment of the present application is shown. The system mainly includes:

[0057] 1. A transaction initiation module, configured to allow a merchant to initiate a transaction request. For example, the transaction initiation module may include a card, a POS machine, a barcode, a mobile payment device, and other terminal devices. A merchant may generate a payment request on a payment terminal (such as a POS machine, a mobile payment device), and the transaction request may include information such as a transaction amount, merchant information, product information, or service details.

[0058] 2. Routing service module, configured to process and route transaction requests from merchants. Routing service is the core of the system, and its main functions include: receiving and parsing payment requests, extracting necessary routing information from the payment requests, determining specific application scenarios based on the extracted information, and executing routing selection algorithms based on the scenarios to automatically switch routes.

[0059] Specifically, the routing service module may include the following components:

[0060] a. Routing factor component, configured to parse monitoring data associated with transaction requests and extract basic elements of transactions, such as load, latency, stability, and cost, to determine the preliminary direction of routing strategy.

[0061] b. The scenario component is configured to determine the scenario and corresponding strategy of the transaction based on the extracted basic elements of the transaction, and calculate the weights associated with the basic elements based on the determined strategies (such as load balancing, low latency priority, cost optimization, high stability priority, etc.). The basic elements and their weights will be used in the subsequent routing selection algorithm.

[0062] Specifically, the scenario component pre-stores a variety of scenarios and strategies, and each scenario is associated with a corresponding routing strategy (hereinafter referred to as "strategy"). Based on the comparison of the extracted basic elements with the corresponding preset corresponding thresholds, it can be determined which scenario the transaction belongs to and which strategy should be used. At the same time, based on the determined strategy, the weight associated with the corresponding parameter in the subsequent routing selection algorithm can be calculated.

[0063] c. A routing control component is configured to calculate the optimal route through a corresponding routing selection algorithm according to the strategy associated with the determined scenario. That is, after determining the scenario to which the current transaction belongs, the routing control component applies the strategy associated with the scenario to the routing selection algorithm to calculate the optimal route.

[0064] 3. The transaction service module is configured to process transaction requests, manage transaction status, perform transaction routing switching, and interact with the routing service module and the transaction monitoring module. Its specific functions are as follows:

[0065] Receive transaction requests: Receive transaction requests from clients or other systems and perform preliminary verification.

[0066] Transaction route switching: According to the optimal route provided by the routing service module, select the appropriate transaction path for switching.

[0067] Execute transactions: perform specific transaction operations, such as deductions, transfers, etc.

[0068] Interact with the transaction monitoring module: The data collected during the transaction execution is passed to the transaction monitoring module so that the latter can monitor and analyze it in real time.

[0069] 4. The transaction monitoring module is configured to monitor the transaction status in real time and forward the status data to the routing element module, and if abnormal transactions are detected, such as frequent failures, suspicious amounts, etc., timely measures are taken to prevent risks to ensure that the transaction is carried out as expected. Specifically, the transaction monitoring module can monitor the following transaction parameters: transaction success rate, transaction anomalies, response time, transaction timeout, total transaction volume, etc.

[0070] After understanding the basic structure of the system for intelligent transaction routing control (monitoring and automatic switching) of the present application, Figure 2 To further introduce the example process of the method for intelligent transaction routing control (monitoring and automatic switching) of the present application.

[0071] As shown in the figure, first, the merchant initiates a transaction request in step 202. For example, the merchant may generate a payment request through a mobile payment device, and the transaction request includes information such as transaction amount, merchant information, product information or service details.

[0072] In step 204, when the system receives a transaction request, the transaction monitoring module monitors the transaction status in real time and forwards the monitoring data to the routing element module. The monitoring data of the transaction system collected in real time by the transaction monitoring module may include, for example, basic data such as CPU usage, memory usage, network delay, transaction time, transaction success rate, error rate, timeout rate, and transaction cost. The transaction monitoring module belongs to the source data center of the entire process, and synchronizes the calculation data required by the routing control component in real time. After receiving the monitoring data, the routing control component updates each algorithm in real time to more efficiently support the scenario component and the routing element component.

[0073] In step 206, the corresponding basic elements are extracted by parsing the monitoring data. The parsing and extraction may include further arranging the monitoring data and calculating basic element data such as load, delay, stability and cost, which can be subsequently used by the routing control module for efficient optimization of routing. An example calculation method of the basic element data is as follows:

[0074] 1. Calculation method of routing load: Statistics on average CPU usage, memory usage and network traffic over a period of time, that is, load.

[0075] 2. Calculation method of routing delay: Statistics of average network delay and transaction processing time over a period of time.

[0076] 3. Calculation method of routing stability: statistics of transaction success rate and error rate over a period of time.

[0077] 4. Calculation method of routing cost: statistics of operating costs and fees over a period of time.

[0078] Specifically, after receiving the monitoring data, the routing element component calculates the basic elements according to the following calculation method:

[0079] 1. Load (L) calculation method: Statistics on the average CPU usage, memory usage, and network bandwidth over a period of time.

[0080] That is to say, the load is calculated based on cpu_usage (CPU usage), memory_usags (memory usage) and bandwidth_usage (bandwidth usage), that is:

[0081] Load calculation: L = (cpu_usage + memory_usage + bandwidth_usage) / 2. The final calculation result is generally expressed as a percentage.

[0082] 2. Delay (D) calculation method: Statistics of average network delay and transaction delay over a period of time.

[0083] The delay is directly taken from the average delay obtained by dividing the sum of the network delay indicator network_delay (network delay, in ms) and transaction_time (transaction processing time) by time (time period), for example:

[0084] Delay calculation: D = (network_delay + Transaction_time) / time.

[0085] 3. Stability (S) calculation method: Statistics of transaction success rate and error rate over a period of time.

[0086] Stability is calculated based on success_rate and error_rate, for example:

[0087] Stability calculation: S=success_rate - error_rate.

[0088] 4. Cost (C) calculation method: statistics of operating costs and fees over a period of time.

[0089] The cost is calculated based on operational_cost and transaction_fee, for example:

[0090] Cost calculation: C = operational_cost + transaction_fee.

[0091] These calculated basic elements can be used in subsequent scene determination and routing selection algorithms.

[0092] Then, in step 208, the scenario to which the current transaction belongs and the corresponding strategy are determined based on the extracted basic elements and predefined business scenarios (also referred to as "scenarios") and strategies.

[0093] As we all know, online transactions include many application scenarios, and each scenario has different requirements for routing. For example, some high-load transaction scenarios hope to maintain load balancing between routes to avoid congestion, some real-time transaction scenarios require minimal latency, and some transaction scenarios pay more attention to stability requirements and hope to provide a highly stable trading environment, etc.

[0094] In the present application, various business scenarios and corresponding strategies can be predefined, and the determined scenarios and corresponding strategies can be used to determine the weights of each basic element in the routing selection algorithm used when calculating the optimal route. For example, examples of the scenarios and corresponding strategies include peak traffic scenarios, delay-sensitive scenarios, cost control scenarios, high stability scenarios, and the like. 1. Peak traffic scenario Scenario description: During peak transaction periods (such as peak consumption periods at noon or in the afternoon, merchants have promotional activities, etc.), the number of visits and transaction requests increases dramatically. In the peak traffic scenario, the following policy parameters are mainly considered: current_load (current load), that is, the aforementioned basic element L: represents the percentage of traffic load on the current route. max_load_threshold (maximum load threshold): the preset maximum load value, exceeding this value requires action. min_load_threshold (minimum load threshold): the preset minimum load value, below which the current route is maintained. Scenario determination and strategy selection: a. If current_load (L) exceeds max_load_threshold, for example, the current load is 70% and the maximum load threshold is 80%. In this case, the transaction is determined to be a peak traffic scenario and a load balancing strategy is selected to disperse the traffic to reduce the pressure on the current route. The load balancing strategy refers to allocating traffic to multiple servers and routes to avoid overloading a single server or route and ensure stable operation of the system. b. If current_load (L) is lower than min_load_threshold, for example, the current load is 45% and the minimum load threshold is 50%. In this case, the transaction is not a peak traffic scenario and the existing route is maintained because the load is low and no change is required. c. If current_load (L) is between min_load_threshold and max_load_threshold, the transaction is not a peak traffic scenario and maintains normal operation without switching.

[0095] After determining that it is a peak traffic scenario and selecting a load balancing strategy, the routing control component mainly uses alternative routes with lower loads when calculating the optimal route (i.e., the load balancing algorithm), and the transaction service module performs route switching operations to balance the system load. 2. Delay-sensitive scenario Scenario description: When a communication service provider's network fluctuates or fails, the transaction time will increase significantly or even time out, and the user experience will be very unsmooth. In the delay-sensitive scenario, the following policy parameters are mainly considered: current_delay (current delay), that is, the aforementioned basic element D: represents the average delay time (milliseconds) on the current route. max_delay_threshold (maximum delay threshold): the preset maximum delay value, exceeding which action is required. Scenario determination and strategy selection: a. If current_delay exceeds max_delay_threshold, for example, the current delay is 120 milliseconds and the maximum delay threshold is 100 milliseconds. In this case, it is determined that the transaction belongs to a delay-sensitive scenario and a low-delay priority strategy is selected to reduce the delay by switching to a route with lower delay. The low-delay priority strategy refers to giving priority to the route with the lowest delay, reducing the time delay of data transmission, and improving the user experience. b. If current_delay is less than or equal to max_delay_threshold, the transaction does not belong to the delay-sensitive scenario and maintains the existing route because the delay is within the acceptable range.

[0096] After determining that it is a delay-sensitive scenario and selecting a low-latency priority strategy, the routing control component mainly uses alternative routes with lower latency when calculating the optimal route (i.e., the delay optimization algorithm), and the transaction service module performs route switching operations to maintain low-latency routes. 3. The cost control scenario refers to a scenario in which different costs are incurred by using different network routes or resources in a cloud computing environment. This scenario uses cost as the main basis to formulate a corresponding strategy, that is, the strategy will give priority to, for example, low-cost routes. In other words, if the aforementioned basic element C is greater than the cost threshold, it is determined that the transaction belongs to the cost control scenario and the cost priority strategy is selected. For the sake of space, it will not be described in detail here. 4. The high stability scenario refers to a scenario in which a financial system or payment system requires high stability to ensure that the system can operate normally at any time. Therefore, this scenario uses stability as the main basis to formulate a corresponding strategy, that is, the strategy will give priority to, for example, high-stability routes. In other words, if the aforementioned basic element S is less than the stability threshold, it is determined that the transaction requires higher stability, belongs to a high stability scenario, and a stability priority strategy is selected. For the sake of space, it will not be described in detail here.

[0097] It should be understood that the above-mentioned example scenarios and strategies are only given for the purpose of illustration and are not intended to be limited thereto. In fact, there are other scenarios and strategies, which all belong to the protection scope of this application.

[0098] Description of various strategies:

[0099] For ease of explanation, the following strategy weight coefficients used in the strategy calculation are predefined:

[0100] a-load weight factor,

[0101] b-memory weight coefficient,

[0102] c-network usage weight coefficient,

[0103] d - delay weight coefficient,

[0104] e-trading time weight coefficient,

[0105] f-success rate weight coefficient,

[0106] g-error rate weight coefficient,

[0107] h-operating cost weight coefficient,

[0108] i- transaction fee weight coefficient,

[0109] ...,

[0110] etc.

[0111] Based on actual application experience, default values ​​can be given to the above weight coefficients. Specifically:

[0112] 1. In the load balancing strategy:

[0113] For load, it is generally necessary to consider three factors: CPU usage (CPU_usage), memory usage (Memory_usage) and network utilization (Network_usage). Therefore, according to the importance of the above factors on the load in actual operation, the corresponding weight coefficients a, b, and c can be set for these three factors in advance to calculate the value of the load weight under this strategy. In this example, a=0.4, b=0.2, c=0.2 can be set in advance, so the calculation formula for the load weight is as follows:

[0114] wLoad=a×CPU_usage+b×Memory_usage+c×Network_usage

[0115] When the transaction belongs to a peak traffic scenario and the load balancing strategy is selected, the load weight wLoad calculated according to the formula is used to replace the default value of the corresponding weight wLoad in the calculation formula of the subsequent routing selection algorithm.

[0116] 2. In the low latency priority strategy:

[0117] As mentioned above, the weight parameters can be set as follows: d=0.2, e=0.5. Therefore, the delay weight calculation formula is as follows:

[0118] wDelay=d×Network_delay+e×Transaction_time

[0119] When a transaction belongs to a delay-sensitive scenario and the low-delay priority strategy is selected, the delay weight wDelay calculated according to the formula is used to replace the default value of the corresponding weight wDelay in the calculation formula of the subsequent routing selection algorithm.

[0120] 3. In the cost-first strategy:

[0121] As mentioned above, the weight parameters can be set as: h=0.6, g=0.3, so the cost weight calculation formula is as follows:

[0122] wCost=h×Operational_cost+i×Transaction_fee

[0123] When a transaction belongs to a cost control scenario and the cost priority strategy is selected, the cost weight wCost calculated according to the formula is used to replace the default value of the corresponding weight wCost in the calculation formula of the subsequent routing selection algorithm.

[0124] 4. In the stability-first strategy:

[0125] As mentioned above, we can set the weight parameters: f=0.9, g=0.1. Therefore, the stability weight calculation formula is as follows: wStability= f×Success_rate−g×Error_rate

[0126] When a transaction belongs to a high stability scenario and the stability priority strategy is selected, the stability weight wStability calculated according to the formula is used to replace the default value of the corresponding weight wStability in the calculation formula of the subsequent routing selection algorithm.

[0127] Technicians can adjust the default values ​​of the strategy weight coefficients according to the actual conditions of the trading system and environment, which falls within the scope of protection of this application.

[0128] It can be seen that each strategy has its own corresponding specific weight. When this strategy is selected, its corresponding specific weight will be applied to the subsequent routing selection algorithm to achieve the optimization of the scenario-based routing selection algorithm.

[0129] In step 208, an optimal route is calculated using a corresponding route selection algorithm according to a policy associated with the determined scenario.

[0130] As described in the previous example, when formulating a scenario strategy, the main factors that can be considered are load, latency, stability, and cost. Therefore, first, the score of each route is calculated using the following route selection algorithm:

[0131] Score = wLoad×L+wDelay×D+wCost×C+wStability / S (calculate the score of the current route) …………………… Formula (1);

[0132] Among them, load, delay, cost and other values ​​are considered as "cost" indicators. The smaller the value, the better the routing performance. Stability is an exception and can be regarded as a "benefit" indicator. The larger the value, the better the routing performance.

[0133] Therefore, after calculating the corresponding score for each available route, we then determine:

[0134] Optimal route = min(Score) (the route with the smallest score is the optimal route);

[0135] in:

[0136] L: load of the current route, wLoad: load weight;

[0137] D: delay of the current route, wDelay: delay weight;

[0138] S: stability of the current route, wStability: stability weight;

[0139] C: cost of the current route, wCost: cost weight.

[0140] Among them: L, D, S, C are basic elements, which can be calculated by the routing element component according to the monitoring data of the corresponding route. wLoad, wDelay, wStability and wCost are the weights of the above basic elements. When no strategy is adopted, the wLoad, wDelay, wStability and wCost are in the form of default values. For example, the default value range of wLoad is 60-70% (normal load), the default value range of wDelay is 120-150ms (normal delay), the default value range of wStability is 85-90% (good stability), and the default value range of wCost is generally 3.8-4 (moderate cost). The technicians can select the appropriate default value according to the actual situation of the system.

[0141] When the scenario to which the transaction belongs is determined in the aforementioned steps and the corresponding strategy is selected, the weight calculated under the strategy is used to replace the corresponding weight in the above calculation formula, thereby achieving algorithm optimization based on scenario strategy.

[0142] For example, if it is determined that the transaction belongs to a peak traffic scenario and the load balancing strategy is selected, the load weight wLoad calculated in the load balancing strategy will replace the default value of wLoad in the above formula (1) to reflect that the calculated score is optimized for the load.

[0143] Of course, actual transactions may also belong to multiple scenarios at the same time, such as peak traffic scenarios and high stability scenarios. In this case, the wLoad and wStability calculated in the load balancing strategy and stability priority strategy can be used to replace the default values ​​in formula (1).

[0144] After the route with the smallest score is selected as the optimal route according to the score, in step 210, the optimal route is fed back to the transaction service module, and the transaction service module records the route information according to the received optimal route, and immediately performs the automatic switching operation. The specific steps of the operation include: updating the route configuration of the current transaction, switching the transaction traffic to the new optimal route, ensuring that all subsequent transaction requests are processed through the new route, and finally notifying and updating the route element module to ensure that the entire system uses the latest route information, thereby completing the automatic switching and ensuring the efficiency and stability of the transaction.

[0145] At this point, the transaction routing intelligent automatic switching process is completed.

[0146] It should be understood that in the above embodiments, load, delay, stability and cost are mainly used as considerations for evaluating the quality of routes. However, in actual transactions, the considerations for deciding which route to choose for transactions are not limited to the above four factors. More or fewer factors will have a corresponding impact on the score of the route. Therefore, the formula of the above routing selection algorithm is only given for illustrative purposes and is not intended to be limited to this. Those skilled in the art can adjust it according to the specific environment of the transaction. This all falls within the scope of protection of this application.

[0147] In addition to automatic route switching based on transaction requests, the solution of the present application may further involve a process of route monitoring and adjustment during the transaction process, including:

[0148] During the transaction process, the transaction monitoring module continuously monitors the operating status of the system. If an abnormal situation is found (such as increased transaction delays, excessive routing load), the transaction monitoring module will transmit the latest data to the routing control module. After receiving the latest data, the routing control module will adjust the routing strategy and recalculate and optimize.

[0149] Specifically, the routing anomaly monitoring process includes: 1. Anomaly detection: The transaction monitoring module continuously monitors the performance data (load, delay, stability, cost, etc.) of each routing node in the system. When the performance index of a certain route exceeds the preset threshold, such as the server cup usage rate or memory exceeding the standard (load), the delay caused by network fluctuations (delay), the routing line heartbeat detection abnormality (stability) and other scenarios, the transaction monitoring module summarizes the detailed data of the abnormal route (such as current load, delay, stability, etc.) and generates an abnormal notification, including the type of abnormality, severity, occurrence time and other information, and synchronizes it to the routing control component. 2. Receiving abnormal notification: The routing control component receives the abnormal notification from the transaction monitoring module, evaluates the abnormal notification, and analyzes the type and severity of the abnormality. For example, a high latency abnormality may have a greater impact on a business with high real-time requirements, while a high load abnormality may affect the overall performance of the system. 3. Emergency routing adjustment decision: If the abnormal evaluation result shows that the abnormality is serious and may continue to affect the system performance, the routing control module triggers the emergency routing adjustment process. 4. Recalculate the optimal route: The route control module recalculates the comprehensive score of each route based on the latest monitoring data and adjusted weights, and reselects the optimal route. 5. Notify the transaction service module: The route control component sends the new optimal route information to the transaction service module, triggering the route switching operation to ensure that the transaction traffic is processed through the new optimal route.

[0150] The real-time data of the transaction monitoring module and the dynamic adjustment of the routing control component jointly ensure the stability and efficiency of the system.

[0151] Summary of innovation points:

[0152] 1. Dynamic adjustment and optimization: Through the real-time data provided by the transaction monitoring module, the routing control component can dynamically adjust the routing strategy to ensure efficiency and stability during the transaction process.

[0153] 2. Intelligent monitoring and feedback: The transaction monitoring module is not only a passive monitoring module, but also actively transmits key data to the routing control component to form an intelligent feedback mechanism to improve the response speed and accuracy of the system.

[0154] 3. Closed-loop optimization: The closed-loop optimization mechanism between the transaction monitoring module and the routing control component ensures that the system can adapt to changes in real time, improving the overall transaction processing capabilities and user experience.

[0155] Although various embodiments are described above, it should be understood that they are intended to be exemplary rather than limiting. Those skilled in the relevant art(s) will appreciate that various modifications may be made in form and detail without departing from the spirit and scope of the present invention as defined in the appended claims. Therefore, the breadth and scope of the present invention disclosed herein should not be limited by the exemplary embodiments disclosed above, but should be defined only in accordance with the appended claims and their equivalents.

Claims

1. A method for transaction routing control, comprising: Receive transaction requests and monitor real-time transaction status; Extract the corresponding basic elements by parsing the monitoring data; Determine the scenario and corresponding strategy to which the current transaction belongs based on the extracted basic elements and predefined scenarios and strategies; Calculating an optimal route using a corresponding routing algorithm according to the strategy associated with the determined scenario; Record the routing information of the optimal route and immediately perform an automatic switching operation; The basic elements include: load L, delay D, stability S and cost C of the route; The scenarios and corresponding strategies include: 1) A peak traffic scenario and a load balancing strategy, wherein the load L in the basic element is compared with a preset load threshold to determine whether the scenario belongs to the peak traffic scenario. If the scenario belongs to the peak traffic scenario, the load balancing strategy is selected, and the load balancing strategy calculates a load weight wLoad according to CPU utilization, memory utilization, network utilization and corresponding strategy weight coefficients; 2) Delay-sensitive scenarios and low-delay priority strategies, wherein the delay D in the basic elements is compared with a preset delay threshold to determine whether the scenario belongs to the delay-sensitive scenario. If the scenario belongs to the delay-sensitive scenario, the low-delay priority strategy is selected, and the low-delay priority strategy calculates the delay weight wDelay according to the network delay, the transaction processing time and the corresponding strategy weight coefficient; 3) High stability scenario and stability priority strategy, wherein the scenario is determined to be a high stability scenario by comparing the stability S in the basic element with a preset stability threshold. If the scenario is a high stability scenario, the stability priority strategy is selected, and the stability priority strategy calculates a stability weight wStability according to the success rate, the error rate and the corresponding strategy weight coefficient; 4) Cost control scenario and cost priority strategy, wherein the cost C in the basic element is compared with a preset cost threshold to determine whether the scenario belongs to the cost control scenario. If the scenario belongs to the cost control scenario, the cost priority strategy is selected, and the cost priority strategy calculates the cost weight wCost according to the operation cost, transaction fee and the corresponding strategy weight coefficient; wherein the formula for calculating the routing score of the routing selection algorithm is: Score = wLoad×L+wDelay×D+wCost×C+wStability / S, Among them, L, D, S and C are the basic elements, When no strategy is selected, the wLoad, wDelay, wStability and wCost use default values, and when a strategy is selected, the corresponding weights in the formula are replaced by the weights in the selected strategy.

2. The method according to claim 1, characterized in that The calculating the optimal route by using a corresponding routing selection algorithm according to the strategy associated with the determined scenario includes: For each available route, the corresponding route score is calculated, and the route with the minimum score is selected as the optimal route.

3. The method according to claim 2, characterized in that The method further includes: the transaction monitoring module continuously monitors the operating status of the system, and when an abnormality is detected: Summarize the detailed data of abnormal routes and generate abnormal notifications; The routing control component receives the abnormality notification from the transaction monitoring module, and evaluates the abnormality notification to analyze the type and severity of the abnormality; If the abnormality evaluation result shows that the abnormality is serious and may continue to affect system performance, the routing control component recalculates the scores of each route based on the latest monitoring data and the adjusted weights, and reselects the optimal route; The transaction service module triggers a route switching operation according to the reselected optimal route.

4. The method according to claim 1, wherein: The default value of wLoad ranges from 60-70%, the default value of wDelay ranges from 120-150 ms, the default value of wStability ranges from 85-90%, and the default value of wCost ranges from 3.8-4.

5. The method according to claim 1, characterized in that The transaction request belongs to one or more scenarios.

6. A system for transaction routing control, comprising means for executing the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Payment route selection method,device and equipment and storage medium

    CN109670797A

  • Optimal routing of payments

    US20240257138A1