Transaction execution method and device, equipment and storage medium

By receiving transactions to be executed in the outreach system and determining the transaction delay limit based on historical transaction information, the problems of high transaction delay and labor inspection costs of the outreach system are solved, and transaction delays and cost savings are achieved.

CN119784385APending Publication Date: 2025-04-08CHINA CONSTR BANK CORP (HUNAN BRANCH)
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411773664.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-04
Publication Date
2025-04-08

AI Technical Summary

Technical Problem

After the transaction delay problem occurs in the existing outreach system, financial institutions and third-party institutions need to participate in the investigation, resulting in high labor costs.

Method used

By receiving the transaction to be executed sent by the transaction initiator in the preset outreach system, determining the transaction delay limit based on historical transaction information, recording the transaction delay, and determining whether the upper limit is exceeded, the transaction execution or returning the timeout result.

Benefits of technology

It effectively reduces transaction delay in the outreach system and reduces labor inspection costs. By setting the transaction delay upper limit in advance, it saves investigation time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119784385A_ABST
    Figure CN119784385A_ABST
Patent Text Reader

Abstract

The invention discloses a transaction execution method and device, equipment and a storage medium, is applied to a preset external connection system, and relates to the technical field of financial transactions, and the method comprises the steps: receiving a to-be-executed transaction sent by a transaction initiator, and forwarding the to-be-executed transaction to a transaction executor, determining a transaction delay upper limit of the to-be-executed transaction according to historical transaction information of the preset external connection system; recording a target moment when the to-be-executed transaction is forwarded to the transaction executor, and determining a time interval between the current moment and the target moment so as to take the time interval as a transaction delay of the to-be-executed transaction; and judging whether the transaction delay of the to-be-executed transaction exceeds the transaction delay upper limit or not so as to complete transaction execution of the to-be-executed transaction according to a judgment result of the transaction delay. Therefore, by setting the transaction delay upper limit of the external connection system, whether the transaction delay is overtime can be determined, and the transaction delay of the external connection system is effectively reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of financial transaction technology, and in particular to a transaction execution method, device, equipment and storage medium. Background Art

[0002] In order to promote the development of social economy, financial institutions are committed to establishing close, safe and smooth cooperation with third-party institutions, and building an external connection platform has become an effective way. This platform promotes data sharing between different institutions by establishing a secure data exchange system, and realizes seamless connection of business processes; by integrating multiple resources, it realizes one-stop service, especially in terms of fund settlement, account query management and other aspects to provide customers with convenient services. At present, when the outbound call to the third-party institution does not get a response, the bank side reduces the response time of the third-party institution and reduces the long transaction rate by optimizing system performance, improving network speed, establishing a fault recovery mechanism, manually restricting users, and monitoring and early warning. However, when the general external connection platform has a delay problem, it requires financial institutions and third-party institutions to jointly participate in the investigation, and the external connection system has high flexibility, many uncontrollable factors, and is difficult to investigate, so the labor cost is high.

[0003] In summary, how to effectively reduce transaction delays in external systems and reduce manual investigation costs is a technical problem that needs to be solved urgently. Summary of the invention

[0004] In view of this, the purpose of the present invention is to provide a transaction execution method, device, equipment and storage medium, which can effectively reduce the transaction delay of the external connection system and reduce the cost of human investigation. The specific scheme is as follows:

[0005] In a first aspect, the present application provides a transaction execution method, which is applied to a preset external connection system, comprising:

[0006] Receiving a pending transaction sent by a transaction initiator, forwarding the pending transaction to a transaction executor, and determining a transaction delay upper limit of the pending transaction based on historical transaction information of the preset external connection system;

[0007] Recording a target time for forwarding the transaction to be executed to the transaction executor, and determining a time interval between the current time and the target time, so as to use the time interval as a transaction delay of the transaction to be executed;

[0008] It is determined whether the transaction delay of the transaction to be executed exceeds the transaction delay upper limit, so as to complete the transaction execution of the transaction to be executed according to the determination result of the transaction delay.

[0009] Optionally, determining the transaction delay upper limit of the to-be-executed transaction according to the historical transaction information of the preset external connection system includes:

[0010] Determining the transaction executor corresponding to the transaction to be executed;

[0011] The historical transaction information of the transaction executor recorded in the preset external system is obtained, and the transaction delay upper limit of the transaction executor corresponding to the transaction to be executed is configured based on the historical transaction information, and the transaction delay upper limit of the transaction executor is determined as the transaction delay upper limit of the transaction to be executed.

[0012] Optionally, determining the transaction delay upper limit of the to-be-executed transaction according to the historical transaction information of the preset external connection system includes:

[0013] The transaction delay upper limit of the preset external system is configured according to the historical transaction information recorded in the preset external system, and the transaction delay upper limit of the preset external system is determined as the transaction delay upper limit of the transaction to be executed.

[0014] Optionally, the determining whether the transaction delay of the to-be-executed transaction exceeds the transaction delay upper limit so as to complete the transaction execution of the to-be-executed transaction according to the determination result of the transaction delay includes:

[0015] If the transaction delay of the pending transaction exceeds the transaction delay upper limit, a timeout result corresponding to the pending transaction is returned to the transaction initiator, so that the transaction initiator ends the pending transaction according to the timeout result;

[0016] If the transaction delay of the transaction to be executed does not exceed the transaction delay upper limit, it is determined whether the execution result of the transaction executor is currently received, and after receiving the execution result corresponding to the transaction to be executed sent by the transaction executor, the execution result is forwarded to the transaction initiator.

[0017] Optionally, the transaction execution method further includes:

[0018] Receiving a transaction warning corresponding to the pending transaction sent by a preset transaction warning system, and counting the number of the transaction warnings; the transaction warning is a warning generated by the preset transaction warning system when the preset external connection system does not receive the execution result of the pending transaction within a preset time;

[0019] If the number of transaction warnings is greater than a preset threshold, the transaction executor corresponding to the pending transaction is determined to be abnormal, so as to control the current limiting switch corresponding to the transaction executor in the preset external connection system to turn on and stop forwarding the pending transaction.

[0020] Optionally, after determining that the transaction executor corresponding to the to-be-executed transaction is abnormal, the method further includes:

[0021] If a signal indicating that the system is normal is received from the transaction executor, it is determined that the transaction executor has returned to normal, and the current limiting switch corresponding to the transaction executor in the preset external system is controlled to be closed to continue forwarding the to-be-executed transaction to the transaction executor.

[0022] Optionally, forwarding the transaction to be executed to a transaction execution party includes:

[0023] Based on an asynchronous mechanism, the plurality of transactions to be executed are forwarded to the transaction executors corresponding to the transactions to be executed, so that the transaction executors can execute the plurality of transactions to be executed at the same time.

[0024] In a second aspect, the present application provides a transaction execution device, which is applied to a preset external connection system, including:

[0025] A delay upper limit determination module, used to receive a pending transaction sent by a transaction initiator, forward the pending transaction to a transaction executor, and determine a transaction delay upper limit of the pending transaction based on historical transaction information of the preset external connection system;

[0026] a delay determination module, configured to record a target time for forwarding the transaction to be executed to the transaction execution party, and determine a time interval between a current time and the target time, so as to use the time interval as a transaction delay of the transaction to be executed;

[0027] The condition judgment module is used to judge whether the transaction delay of the transaction to be executed exceeds the transaction delay upper limit, so as to complete the transaction execution of the transaction to be executed according to the judgment result of the transaction delay.

[0028] In a third aspect, the present application provides an electronic device, including:

[0029] Memory, used to store computer programs;

[0030] The processor is used to execute the computer program to implement the aforementioned transaction execution method.

[0031] In a fourth aspect, the present application provides a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the aforementioned transaction execution method is implemented.

[0032] In this application, first, the pending transaction sent by the transaction initiator is received, and the pending transaction is forwarded to the transaction executor, and the transaction delay upper limit of the pending transaction is determined according to the historical transaction information of the preset external connection system; the target time for forwarding the pending transaction to the transaction executor is recorded, and the time interval between the current time and the target time is determined, so as to use the time interval as the transaction delay of the pending transaction; it is determined whether the transaction delay of the pending transaction exceeds the transaction delay upper limit, so as to complete the transaction execution of the pending transaction according to the judgment result of the transaction delay. As can be seen from the above, in this application, the external connection system first receives the pending transaction, and determines the transaction delay upper limit of the pending transaction based on the historical transaction information, and compares the transaction delay of the pending transaction with the transaction delay upper limit. If the transaction delay of the pending transaction exceeds the transaction delay upper limit, it is determined that the pending transaction has timed out, and the pending transaction is terminated. In this way, by pre-setting the transaction delay upper limit of the external connection system, it can be determined whether the transaction delay of the pending transaction has timed out, thereby saving manpower troubleshooting costs and effectively reducing the transaction delay of the external connection system. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0034] Figure 1 A flow chart of a transaction execution method provided for this application;

[0035] Figure 2 A specific transaction execution method flow chart provided for this application;

[0036] Figure 3 A specific transaction execution method flow chart provided for this application;

[0037] Figure 4 A schematic diagram of the structure of a transaction execution device provided for this application;

[0038] Figure 5 A structural diagram of an electronic device provided for this application. DETAILED DESCRIPTION

[0039] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0040] Currently, when an outbound call to a third-party agency fails to obtain a response, the bank reduces the response time of the third-party agency and reduces the long transaction rate by optimizing system performance, improving network speed, establishing a fault recovery mechanism, manually restricting users, and monitoring and early warning. However, when a delay problem occurs on a general outbound platform, financial institutions and third-party agencies are required to jointly participate in the investigation. The outbound system has high flexibility, many uncontrollable factors, and is difficult to investigate, so the labor cost is high. To this end, this application provides a transaction execution solution that can effectively reduce the transaction delay of the outbound system and reduce the cost of human investigation.

[0041] See also Figure 1 As shown, an embodiment of the present invention discloses a transaction execution method, which is applied to a preset external connection system and may include:

[0042] Step S11: receiving the pending transaction sent by the transaction initiator, forwarding the pending transaction to the transaction executor, and determining the transaction delay upper limit of the pending transaction according to the historical transaction information of the preset external connection system.

[0043] In this embodiment, financial institutions can build an external system to conduct transactions with third-party customers. By building an external system, third-party customers can simplify the transaction process with financial institutions and improve transaction efficiency. It is understandable that a financial institution can build multiple external systems to connect with multiple third-party customers, and the construction of the external system can adopt a distributed architecture to meet high-concurrency business needs. At the same time, the use of a distributed architecture in the external system helps to improve the stability and reliability of the external system. The external system can also build a multi-layer protection system by deploying an intrusion detection system to prevent external attacks and malicious intrusions. Secondly, the external system should establish a complete permission control mechanism to ensure that only authorized third-party customers can access and operate the external system. At the same time, the operation log and transaction records of the external system can be recorded through the transaction monitoring system to facilitate subsequent security audits and troubleshooting. For example, banks can conduct transactions with individual customers through external systems such as online banking, mobile banking, telephone banking, ATM (Automated Teller Machine), POS (point of sale, sales terminal), etc., and can also process payment transactions through payment institutions to achieve rapid clearing of funds.

[0044] In a specific implementation, determining the upper limit of the transaction delay of the pending transaction according to the historical transaction information of the preset external connection system may include: determining the transaction executor corresponding to the pending transaction; obtaining the historical transaction information of the transaction executor recorded in the preset external connection system, and configuring the upper limit of the transaction delay of the transaction executor corresponding to the pending transaction based on the historical transaction information, and determining the upper limit of the transaction delay of the transaction executor as the upper limit of the transaction delay of the pending transaction. Specifically, since an external connection system can connect to multiple transaction executors, the upper limit of the transaction delay of the transaction executor corresponding to the pending transaction can be determined as the upper limit of the transaction delay of the pending transaction. First, it is necessary to determine the transaction executor corresponding to the pending transaction, and the historical successful transaction information of the transaction executor can be determined through the operation log and transaction record of the external connection system recorded by the transaction monitoring system. Among them, the historical successful transaction information may include key information such as transaction time, transaction type, transaction amount, etc., and the upper limit of the transaction delay of the transaction executor corresponding to the pending transaction in the external connection system is configured based on the historical successful transaction information of the transaction executor, and the upper limit of the transaction delay is generally not less than the maximum value of the transaction delay of the historical successful transaction. After the configuration is completed, further system testing can be performed to ensure that the transaction delay limit setting can take effect correctly and verify whether the external system can issue a warning or take other risk control measures in a timely manner when the transaction delay exceeds the limit. At the same time, the transaction delay limit can be dynamically adjusted according to the operation of the external system and changes in business needs. For example, in a high-concurrency scenario, the transaction delay limit can be appropriately increased to accommodate more transaction requests; in a low-concurrency scenario, the transaction delay limit can be lowered to increase the response speed of the external system.

[0045] In a specific implementation, determining the upper limit of the transaction delay of the pending transaction according to the historical transaction information of the preset external system may include: configuring the upper limit of the transaction delay of the preset external system according to the historical transaction information recorded in the preset external system, and determining the upper limit of the transaction delay of the preset external system as the upper limit of the transaction delay of the pending transaction. Specifically, since a financial institution can build multiple external systems to connect with multiple third-party customers, that is, the transaction initiator can build multiple external systems to initiate transactions to multiple transaction executors, the upper limit of the transaction delay of the external system can be determined as the upper limit of the transaction delay of the pending transaction. First, it is necessary to determine the external system corresponding to the pending transaction, determine the historical successful transaction information of the external system through the operation log and transaction record of the external system recorded by the transaction monitoring system, and then sort out the historical successful transaction information of the external system, for example, set the transaction time to the past week, and configure the upper limit of the transaction delay of the external system corresponding to the pending transaction based on the historical successful transaction information of the external system in the past week, and then test the configuration of the upper limit of the transaction delay regularly to ensure the rationality and effectiveness of the configuration.

[0046] In this embodiment, forwarding the pending transactions to the transaction executor may include: forwarding several pending transactions to the transaction executors corresponding to each pending transaction based on an asynchronous mechanism, so that the transaction executors can simultaneously execute several pending transactions. Specifically, since the external connection system involves docking with multiple third-party clients, i.e., transaction executors, in order to improve the fault tolerance of the external connection system, an asynchronous mechanism can be reasonably adopted to design database operations, file system access, etc., so as to improve the performance of the application and user experience, so as to ensure that if an exception occurs in a pending transaction, other pending transactions can continue to be executed. Based on the asynchronous mechanism, the external connection system can simultaneously forward multiple pending transactions to the transaction executors corresponding to each pending transaction, so that the transaction executors can simultaneously execute several pending transactions. The external connection system receives pending transactions sent by the transaction initiator, and can classify and sort the pending transactions according to factors such as transaction type and priority, so as to ensure that high-priority or urgent transactions can be processed first. Afterwards, the pending transaction can be asynchronously forwarded to the corresponding transaction executor based on the information of the transaction executor. During the forwarding process, the status of the transaction can be recorded, such as sent, pending execution, etc. After receiving the pending transaction, the transaction executor confirms and processes it. After the processing is completed, the processing result or confirmation information is returned to the external system.

[0047] Step S12: Record the target time for forwarding the transaction to be executed to the transaction executor, and determine the time interval between the current time and the target time, so as to use the time interval as the transaction delay of the transaction to be executed.

[0048] In this embodiment, the transaction monitoring system of the external connection system can be used to monitor the entire process of the pending transaction, including the initiation, forwarding, execution and completion of the transaction. By recording the key time nodes of the pending transaction, such as the target time when the pending transaction is forwarded to the transaction executor, and the current time, the system can calculate the transaction duration. Specifically, when the pending transaction is forwarded to the transaction executor, the transaction monitoring system will record this moment as the target time, and the transaction monitoring system will obtain the current system time in real time as the current time. By calculating the difference between the current time and the target time, the transaction delay can be obtained. The transaction delay is usually expressed in units such as seconds, minutes, hours or days, depending on the settings of the external connection system and the characteristics of the pending transaction.

[0049] Step S13: determine whether the transaction delay of the transaction to be executed exceeds the transaction delay upper limit, so as to complete the transaction execution of the transaction to be executed according to the determination result of the transaction delay.

[0050] In this embodiment, judging whether the transaction delay of the transaction to be executed exceeds the transaction delay upper limit so as to complete the transaction execution of the transaction to be executed according to the judgment result of the transaction delay may include: if the transaction delay of the transaction to be executed exceeds the transaction delay upper limit, returning a timeout result corresponding to the transaction to be executed to the transaction initiator so that the transaction initiator ends the transaction to be executed according to the timeout result; if the transaction delay of the transaction to be executed does not exceed the transaction delay upper limit, judging whether the execution result of the transaction executor is currently received, and after receiving the execution result corresponding to the transaction to be executed sent by the transaction executor, forwarding the execution result to the transaction initiator. Specifically, the transaction monitoring system calculates the transaction delay of the pending transaction in real time and compares it with the upper limit of the transaction delay of the pending transaction. If the transaction delay of the pending transaction exceeds the upper limit of the transaction delay of the pending transaction, it indicates that the execution of the pending transaction has timed out. The external system directly returns the timeout result corresponding to the pending transaction to the transaction initiator corresponding to the pending transaction, and can also send a signal to stop the transaction execution to the transaction executor corresponding to the pending transaction, so that the transaction initiator can end the pending transaction according to the timeout result. If the transaction delay of the pending transaction does not exceed the upper limit of the transaction delay of the pending transaction, the execution result of the pending transaction is monitored in real time. After the execution of the pending transaction is completed, the transaction executor sends the execution result corresponding to the pending transaction to the external system. After receiving the execution result corresponding to the pending transaction sent by the transaction executor, the external system can forward the execution result to the transaction initiator. In the process of forwarding the execution result of the pending transaction, the security and integrity of the pending transaction information can be ensured through encrypted transmission, digital signature, etc. The transaction initiator can set up a variety of receiving methods, including but not limited to: setting up an email account, SMS receiving number or API (Application Programming Interface) interface, etc., to receive the execution results of the pending transaction. After receiving the execution results of the pending transaction, the transaction initiator can further confirm whether it is consistent with expectations.

[0051] As can be seen from the above, this embodiment first receives the pending transaction sent by the transaction initiator, and forwards the pending transaction to the transaction executor, and determines the upper limit of the transaction delay of the pending transaction according to the historical transaction information of the preset external connection system; records the target time for forwarding the pending transaction to the transaction executor, and determines the time interval between the current time and the target time, so as to use the time interval as the transaction delay of the pending transaction; judges whether the transaction delay of the pending transaction exceeds the upper limit of the transaction delay, so as to complete the transaction execution of the pending transaction according to the judgment result of the transaction delay. As can be seen from the above, in this embodiment, the external connection system first receives the pending transaction, and determines the upper limit of the transaction delay of the pending transaction based on the historical transaction information, and compares the transaction delay of the pending transaction with the upper limit of the transaction delay. If the transaction delay of the pending transaction exceeds the upper limit of the transaction delay, it is determined that the pending transaction has timed out, and the pending transaction is terminated. In this way, by pre-setting the upper limit of the transaction delay of the external connection system, it can be determined whether the transaction delay of the pending transaction has timed out, thereby saving the cost of manpower investigation and effectively reducing the transaction delay of the external connection system.

[0052] Through the above embodiment, the transaction delay upper limit of the pending transaction can be used to determine whether the pending transaction has timed out, and the transaction execution of the pending transaction is completed based on the judgment result. Next, in order to reduce the impact caused by the abnormality of the transaction execution party, see Figure 2 As shown, the embodiment of the present invention further discloses a transaction execution method, which is applied to a preset external connection system and may include:

[0053] Step S21, receiving the transaction warning corresponding to the pending transaction sent by the preset transaction warning system, and counting the number of the transaction warnings; the transaction warning is a warning generated by the preset transaction warning system when the preset external system does not receive the execution result of the pending transaction within a preset time.

[0054] In this embodiment, the transaction monitoring system of the external connection system monitors the pending transactions in real time. If the execution result of the pending transaction is not received within the preset time, the pending transaction is determined to be a long transaction, and an early warning is triggered through the preset transaction early warning system. The early warning content may include detailed information of the pending transaction, such as the ID (Identity document, unique code) of the pending transaction, the type of the pending transaction, the transaction initiator and transaction executor of the pending transaction, the time period when the execution result is not received, and the long transaction prompt. The early warning can be sent in a variety of ways, such as email, SMS, instant messaging, or directly displayed in the external connection system. At the same time, the preset transaction early warning system counts the number of transaction early warnings in real time, and the statistical period can be set according to actual needs, such as daily, weekly, monthly, etc.

[0055] Step S22: If the number of transaction warnings is greater than a preset threshold, it is determined that the transaction executor corresponding to the pending transaction is abnormal, so as to control the current limiting switch corresponding to the transaction executor in the preset external connection system to turn on and stop forwarding the pending transaction.

[0056] In this embodiment, if the number of transaction warnings received within the statistical period is greater than a preset threshold, it can be determined that the response of the transaction executor corresponding to the pending transaction has timed out, wherein the preset threshold can be set based on factors such as the scale, type, and stability of the external connection system of the transaction. If it is determined that the response of the transaction executor corresponding to the pending transaction has timed out, the current limiting switch corresponding to the transaction executor in the preset external connection system is controlled to be turned on. When the current limiting switch is turned on, new pending transactions can be prevented from being forwarded to the transaction executor, so that the transaction executor can continue to execute the pending transaction.

[0057] Step S23: If a signal indicating that the system is normal is received from the transaction executor, it is determined that the transaction executor has returned to normal, and the current limiting switch corresponding to the transaction executor in the preset external connection system is controlled to be closed to continue forwarding the to-be-executed transaction to the transaction executor.

[0058] It is understandable that if the external connection system receives a signal sent by the transaction executor indicating that the system has returned to normal, it can determine that the transaction executor has returned to normal, and control the current limiting switch corresponding to the transaction executor in the preset external connection system to be closed, so that the external connection system can continue to forward other pending transactions to the transaction executor. During the forwarding process of pending transactions, the integrity, accuracy and security of pending transactions should be ensured. After the transaction executor returns to normal, the transaction monitoring system should continue to monitor pending transactions to determine key indicators such as the execution speed, success rate, and error rate of pending transactions.

[0059] See also Figure 3 As shown, in order to reduce transaction delays, the transaction monitoring system can be used to analyze historical successful transaction information, and the transaction delay upper limit of the external system can be personalized based on the historical successful transaction information. If a large number of long transaction warnings are received, it is determined whether the cause is a third-party system, and the current limiting switch is manually started. If it is determined that the third-party system has returned to normal, the current limiting switch can be manually closed.

[0060] As can be seen from the above, this embodiment determines whether an abnormality occurs on the transaction executor by counting the number of warnings sent by the preset transaction warning system and comparing it with the preset threshold, so as to control the current limiting switch corresponding to the transaction executor in the preset external connection system to be turned on, thereby stopping the forwarding of other pending transactions to the transaction executor. If it is determined that the transaction executor has returned to normal, the current limiting switch can be turned off, thereby continuing to forward other pending transactions to the transaction executor. In this way, by controlling the start of the current limiting switch, the impact range of the transaction delay of the external connection system can be shortened to the greatest extent, and it has strong versatility and high scalability, and can be promoted and used in the external connection system of the financial industry.

[0061] Accordingly, see Figure 4 As shown, the embodiment of the present application also provides a transaction execution device, which is applied to a preset external connection system and may include:

[0062] The delay upper limit determination module 11 is used to receive the pending transaction sent by the transaction initiator, forward the pending transaction to the transaction executor, and determine the transaction delay upper limit of the pending transaction according to the historical transaction information of the preset external connection system;

[0063] A delay determination module 12, configured to record a target time for forwarding the transaction to be executed to the transaction execution party, and determine a time interval between a current time and the target time, so as to use the time interval as a transaction delay of the transaction to be executed;

[0064] The condition judgment module 13 is used to judge whether the transaction delay of the transaction to be executed exceeds the transaction delay upper limit, so as to complete the transaction execution of the transaction to be executed according to the judgment result of the transaction delay.

[0065] As can be seen from the above, this embodiment first receives the pending transaction sent by the transaction initiator, and forwards the pending transaction to the transaction executor, and determines the upper limit of the transaction delay of the pending transaction according to the historical transaction information of the preset external connection system; records the target time for forwarding the pending transaction to the transaction executor, and determines the time interval between the current time and the target time, so as to use the time interval as the transaction delay of the pending transaction; judges whether the transaction delay of the pending transaction exceeds the upper limit of the transaction delay, so as to complete the transaction execution of the pending transaction according to the judgment result of the transaction delay. As can be seen from the above, in this embodiment, the external connection system first receives the pending transaction, and determines the upper limit of the transaction delay of the pending transaction based on the historical transaction information, and compares the transaction delay of the pending transaction with the upper limit of the transaction delay. If the transaction delay of the pending transaction exceeds the upper limit of the transaction delay, it is determined that the pending transaction has timed out, and the pending transaction is terminated. In this way, by pre-setting the upper limit of the transaction delay of the external connection system, it can be determined whether the transaction delay of the pending transaction has timed out, thereby saving the cost of manpower investigation and effectively reducing the transaction delay of the external connection system.

[0066] In some specific implementations, the delay upper limit determination module 11 includes:

[0067] An execution party determination unit, used to determine the transaction execution party corresponding to the transaction to be executed;

[0068] The first delay upper limit determination unit is used to obtain the historical transaction information of the transaction executor recorded in the preset external system, and configure the transaction delay upper limit of the transaction executor corresponding to the transaction to be executed based on the historical transaction information, and determine the transaction delay upper limit of the transaction executor as the transaction delay upper limit of the transaction to be executed.

[0069] In some specific implementations, the delay upper limit determination module 11 includes:

[0070] The second delay upper limit determining unit is used to configure the transaction delay upper limit of the preset external system according to the historical transaction information recorded in the preset external system, and determine the transaction delay upper limit of the preset external system as the transaction delay upper limit of the to-be-executed transaction.

[0071] In some specific implementations, the condition determination module 13 includes:

[0072] A first condition judgment unit is configured to return a timeout result corresponding to the pending transaction to the transaction initiator if the transaction delay of the pending transaction exceeds the transaction delay upper limit, so that the transaction initiator can terminate the pending transaction according to the timeout result;

[0073] The second condition judgment unit is used to judge whether the execution result of the transaction executor is currently received if the transaction delay of the transaction to be executed does not exceed the transaction delay upper limit, and after receiving the execution result corresponding to the transaction to be executed sent by the transaction executor, forward the execution result to the transaction initiator.

[0074] In some specific implementations, the transaction execution device further includes:

[0075] A quantity statistics module, used for receiving the transaction warning corresponding to the pending transaction sent by the preset transaction warning system, and counting the number of the transaction warnings; the transaction warning is a warning generated by the preset transaction warning system when the preset external connection system does not receive the execution result of the pending transaction within a preset time;

[0076] The abnormality judgment module is used to determine that the transaction executor corresponding to the pending transaction is abnormal if the number of the transaction warnings is greater than a preset threshold, so as to control the current limiting switch corresponding to the transaction executor in the preset external connection system to turn on and stop forwarding the pending transaction.

[0077] In some specific implementations, the transaction execution device further includes:

[0078] The transaction forwarding module is used to determine that the transaction executor has returned to normal if a signal indicating that the system is normal is received from the transaction executor, and to control the current limiting switch corresponding to the transaction executor in the preset external system to be closed, so as to continue forwarding the to-be-executed transaction to the transaction executor.

[0079] In some specific implementations, the delay upper limit determination module 11 includes:

[0080] The transaction execution unit is used to forward the plurality of pending transactions to the transaction execution parties corresponding to the pending transactions based on an asynchronous mechanism, so that the transaction execution parties can execute the plurality of pending transactions at the same time.

[0081] Furthermore, the present application also discloses an electronic device. Figure 5 This is a structural diagram of an electronic device 20 according to an exemplary embodiment, and the content in the figure cannot be regarded as any limitation on the scope of use of this application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the transaction execution method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.

[0082] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0083] In addition, the memory 22 as a carrier for resource storage may be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon may include an operating system 221, a computer program 222, etc., and the storage method may be temporary storage or permanent storage.

[0084] The operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, and may be Windows Server, Netware, Unix, Linux, etc. In addition to computer programs that can be used to complete the transaction execution method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 may further include computer programs that can be used to complete other specific tasks.

[0085] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the transaction execution method disclosed above. The specific steps of the method can refer to the corresponding contents disclosed in the above embodiments, and will not be repeated here.

[0086] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0087] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0088] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0089] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0090] The technical solution provided by the present application is introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technicians in this field, according to the idea of ​​the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A transaction execution method, characterized in that: Applicable to preset external connection systems, including: Receiving a pending transaction sent by a transaction initiator, forwarding the pending transaction to a transaction executor, and determining a transaction delay upper limit of the pending transaction based on historical transaction information of the preset external connection system; Recording a target time for forwarding the transaction to be executed to the transaction executor, and determining a time interval between the current time and the target time, so as to use the time interval as a transaction delay of the transaction to be executed; It is determined whether the transaction delay of the transaction to be executed exceeds the transaction delay upper limit, so as to complete the transaction execution of the transaction to be executed according to the determination result of the transaction delay.

2. The transaction execution method according to claim 1, characterized in that: The determining the upper limit of the transaction delay of the to-be-executed transaction according to the historical transaction information of the preset external connection system includes: Determining the transaction executor corresponding to the transaction to be executed; The historical transaction information of the transaction executor recorded in the preset external system is obtained, and the transaction delay upper limit of the transaction executor corresponding to the transaction to be executed is configured based on the historical transaction information, and the transaction delay upper limit of the transaction executor is determined as the transaction delay upper limit of the transaction to be executed.

3. The transaction execution method according to claim 1, characterized in that: The determining the upper limit of the transaction delay of the to-be-executed transaction according to the historical transaction information of the preset external connection system includes: The transaction delay upper limit of the preset external system is configured according to the historical transaction information recorded in the preset external system, and the transaction delay upper limit of the preset external system is determined as the transaction delay upper limit of the transaction to be executed.

4. The transaction execution method according to claim 1, characterized in that: The determining whether the transaction delay of the transaction to be executed exceeds the transaction delay upper limit, so as to complete the transaction execution of the transaction to be executed according to the determination result of the transaction delay, includes: If the transaction delay of the pending transaction exceeds the transaction delay upper limit, a timeout result corresponding to the pending transaction is returned to the transaction initiator, so that the transaction initiator ends the pending transaction according to the timeout result; If the transaction delay of the transaction to be executed does not exceed the transaction delay upper limit, it is determined whether the execution result of the transaction executor is currently received, and after receiving the execution result corresponding to the transaction to be executed sent by the transaction executor, the execution result is forwarded to the transaction initiator.

5. The transaction execution method according to claim 1, characterized in that: Also includes: Receiving a transaction warning corresponding to the pending transaction sent by a preset transaction warning system, and counting the number of the transaction warnings; The transaction warning is a warning generated by the preset transaction warning system when the preset external connection system does not receive the execution result of the pending transaction within a preset time; If the number of transaction warnings is greater than a preset threshold, the transaction executor corresponding to the pending transaction is determined to be abnormal, so as to control the current limiting switch corresponding to the transaction executor in the preset external connection system to turn on and stop forwarding the pending transaction.

6. The transaction execution method according to claim 5, characterized in that: After determining that the transaction executor corresponding to the to-be-executed transaction is abnormal, the method further includes: If a signal indicating that the system is normal is received from the transaction executor, it is determined that the transaction executor has returned to normal, and the current limiting switch corresponding to the transaction executor in the preset external system is controlled to be closed to continue forwarding the to-be-executed transaction to the transaction executor.

7. The transaction execution method according to any one of claims 1 to 6, characterized in that: The forwarding of the transaction to be executed to the transaction execution party includes: Based on an asynchronous mechanism, the plurality of transactions to be executed are forwarded to the transaction executors corresponding to the transactions to be executed, so that the transaction executors can execute the plurality of transactions to be executed at the same time.

8. A transaction execution device, characterized in that: Applicable to preset external connection systems, including: A delay upper limit determination module, used to receive a pending transaction sent by a transaction initiator, forward the pending transaction to a transaction executor, and determine a transaction delay upper limit of the pending transaction based on historical transaction information of the preset external connection system; a delay determination module, configured to record a target time for forwarding the transaction to be executed to the transaction execution party, and determine a time interval between a current time and the target time, so as to use the time interval as a transaction delay of the transaction to be executed; The condition judgment module is used to judge whether the transaction delay of the transaction to be executed exceeds the transaction delay upper limit, so as to complete the transaction execution of the transaction to be executed according to the judgment result of the transaction delay.

9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the transaction execution method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: Used to store a computer program; wherein, when the computer program is executed by a processor, the transaction execution method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Method and system for responding request from request side

    CN107257363A

  • Method, apparatus and storage medium for optimizing transaction timeout threshold

    CN109543988A

  • Transaction traffic limiting method and device, server, storage medium and product

    CN114338811A

  • Transaction traffic limiting method and device, storage medium and electronic equipment

    CN115375457A

  • Order placing host with timeout checking function and timeout checking method

    CN118279007A