Transaction processing method, device, equipment, medium and program product
By determining the application link in the online trading system and performing health checks, the related transaction processing requests and the address information of available containers are solved, and the transaction suspension and duration extension problems caused by transaction processing exceptions are improved, and transaction success rate and customer satisfaction are improved.
Patent Information
- Application Number
- CN202510184313.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-19
- Publication Date
- 2025-05-30
AI Technical Summary
In the prior art, after an abnormality occurs during the transaction processing process, the transaction will be suspended and cannot be processed continuously. The abnormality is not discovered in time, resulting in a long transaction processing time.
By determining the application link for transaction processing requests and performing a health check on each available container in the application link, determining the address information of the healthy available containers in each application and associating it with the transaction processing request, ensuring that each application uses the available container when processing transactions.
It reduces the probability of transaction suspending and inability to trade normally due to transaction processing abnormalities, improves transaction success rate and customer satisfaction, and at least partially solves the problem of long transaction processing time.
Smart Images

Figure CN120066789A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of artificial intelligence technology and fintech, and particularly to a transaction processing method, apparatus, device, medium, and program product. Background Art
[0002] With the development of technology, online transactions are chosen by more and more users due to their convenience. Therefore, the stability and timeliness of online transactions are becoming increasingly important. In related technologies, if an abnormality occurs during the transaction processing of an online transaction system, usually the transaction will be suspended, resulting in the inability to continue processing the transaction and also unable to initiate it again. If you want to continue processing the transaction, you need to wait for the day-end suspense account query or the night batch closure to detect the abnormality and close the transaction.
[0003] In the process of implementing the concept of the present disclosure, the inventors found that there are at least the following problems in related technologies: Since the online transaction system in related technologies suspends the transaction if an abnormality occurs during the transaction processing, it cannot be continuously processed, and the detection of abnormalities is not timely enough, which may cause the transaction to be unable to be processed for a long time, resulting in a long transaction processing time. Summary of the Invention
[0004] In view of the above problems, the present disclosure provides a transaction processing method, apparatus, device, medium, and program product.
[0005] According to a first aspect of the present disclosure, there is provided a transaction processing method, including: in response to receiving a transaction processing request, determining an application link for the transaction processing request based on the transaction type included in the transaction processing request, where the application link includes dependencies between multiple applications, and the applications include multiple processing containers; performing a health check on the application link based on transaction test data corresponding to the transaction type and the dependencies, to obtain address information of available containers of each of the multiple applications, where the available containers are determined from the multiple processing containers; associating the address information of the available containers of each of the multiple applications with the transaction processing request to obtain associated data; and sending the associated data and the transaction processing request to a starting application in the application link, where the starting application is used to transmit the associated data and the transaction processing request in the application link, and the associated data is used to enable each application in the application link to process the transaction processing request based on a target container, and the address information of the target container is the same as the address information of the available container corresponding to the application.
[0006] According to an embodiment of the present disclosure, based on transaction test data corresponding to a transaction type and dependency relationships, a health check is performed on an application link to obtain address information of available containers for each of multiple applications, including: determining the transfer order of the transaction test data among the multiple applications based on the dependency relationships; sequentially performing health checks on the processing containers of each of the multiple applications and the databases of each of the multiple applications based on the transfer order and the transaction test data to obtain health check results for each of the multiple applications; and determining the address information of the healthy containers included in the health check results for each of the multiple applications as the address information of the available containers corresponding to each of the multiple applications.
[0007] According to an embodiment of the present disclosure, the transaction test data includes: database detection sub-data and container detection sub-data; sequentially performing health checks on the processing containers of each of the multiple applications and the databases of each of the multiple applications based on the transfer order and the transaction test data to obtain health check results for each of the multiple applications, including: sequentially performing health checks on the databases of each of the multiple applications based on the transfer order and the database detection sub-data to obtain database check results for each of the multiple applications; and based on the container detection sub-data and the transfer order, sequentially performing health detections on the processing containers of each of the multiple applications to obtain health check results of the target application when the database check results of each of the multiple applications all indicate health.
[0008] According to an embodiment of the present disclosure, the container detection sub-data includes: health check instructions and test transaction requests corresponding to multiple applications respectively; the health check instructions are used to perform health checks on multiple processing containers included in the application; based on the container detection sub-data and the transfer order, health checks are sequentially performed on the processing containers of multiple applications respectively to obtain the health check results of the target application, including: sending the container detection sub-data and the transfer order to the starting application in the application link; receiving the health check results of multiple applications respectively returned by the starting application; wherein, the starting application is used to perform the following operations: based on the health check instructions and test transaction requests corresponding to the starting application, perform health checks on multiple processing containers of the starting application to obtain the first health check results of the starting application; in the case where the first health check results indicate that there are available containers in the starting application, delete the health check instructions and test transaction requests corresponding to the starting application in the container detection sub-data to obtain new container detection sub-data; based on the transfer order, send the processing data of the available containers for the test transaction requests, the transfer order, and the new container detection sub-data to the downstream application of the starting application, wherein the downstream application is used to perform health checks on multiple processing containers included in the downstream application through the health check instructions and processing data corresponding to the downstream application to obtain the second health check results, and is used to transfer the second health check results to the starting application in the case where the downstream application is determined to be the end application based on the transfer order; in the case where it is determined that the health check results of the end application are received, summarize and forward the first health check results and the second health check results.
[0009] According to an embodiment of the present disclosure, the above transaction processing method further includes: in response to an abnormal situation occurring during the processing of a transaction processing request by an application in the application link, query the target data matching the transaction processing request in the databases of multiple applications respectively to obtain the query results for the databases of multiple applications respectively; for the query results of the databases of each application, in the case where the query results indicate that there is target data matching the transaction processing request in the database, update the data status of the target data to processing failure.
[0010] According to an embodiment of the present disclosure, the above transaction processing method further includes: in the case where the query results indicate that there is no target data matching the transaction processing request in the database, write the preset data matching the transaction processing request in the database, wherein the data status of the preset data is processing failure.
[0011] According to an embodiment of the present disclosure, determining the application link for the transaction processing request based on the transaction type included in the transaction processing request includes: based on the transaction type included in the transaction processing request, determining multiple candidate application links from the historical application links of multiple historical transaction processing requests respectively; determining the application link for the transaction processing request from multiple candidate application links based on the transaction processing scores of the candidate application links.
[0012] The second aspect of the present disclosure provides a transaction processing device, including: a link determination module, configured to determine an application link for a transaction processing request based on the transaction type included in the transaction processing request in response to receiving the transaction processing request, where the application link includes dependencies between multiple applications, and the applications include multiple processing containers; a health check module, configured to perform a health check on the application link based on transaction test data corresponding to the transaction type and the dependencies, to obtain address information of available containers of each of the multiple applications, where the available containers are determined from the multiple processing containers; an association module, configured to associate the address information of available containers of each of the multiple applications with the transaction processing request to obtain associated data; a processing module, configured to send the associated data and the transaction processing request to a starting application in the application link, where the starting application is configured to transmit the associated data and the transaction processing request in the application link, and the associated data is used to enable each application in the application link to process the transaction processing request based on a target container, and the address information of the target container is the same as the address information of the available container corresponding to the application.
[0013] The third aspect of the present disclosure provides an electronic device, including: one or more processors; a memory, configured to store one or more computer programs, where the one or more processors execute the one or more computer programs to implement the steps of the above method.
[0014] The fourth aspect of the present disclosure further provides a computer-readable storage medium, on which a computer program or instruction is stored, and when the computer program or instruction is executed by a processor, the steps of the above method are implemented.
[0015] The fifth aspect of the present disclosure further provides a computer program product, including a computer program or instruction, and when the computer program or instruction is executed by a processor, the steps of the above method are implemented.
[0016] According to the transaction processing method of the present disclosure, before processing a transaction processing request of a customer, an application link for processing the transaction processing request is determined, and health checks are performed on each available container in the application link through the dependency relationships among multiple applications in the application link and transaction test data corresponding to the transaction type, so as to determine the address information of the healthy available containers in each application, and associate the address information of each available container with the transaction processing request, so that when each application in the application link processes the transaction processing request, the above-mentioned available containers can be used for processing. Since the address information of the available containers of each application in the application link is determined and associated with the transaction processing request, each application in the application link can use the above-mentioned available containers for processing when processing the transaction processing request, thereby reducing the probability of transaction suspension and inability to conduct normal transactions caused by abnormal transaction processing, and at least partially solving the technical problem of long transaction processing duration in the related art, and achieving the technical effect of improving transaction success rate and customer satisfaction. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Through the following description of the embodiments of the present disclosure with reference to the drawings, the above content and other objects, features and advantages of the present disclosure will become clearer. In the drawings:
[0018] Figure 1 Schematically shows an application scenario diagram of a transaction processing method, device, equipment, medium and program product according to an embodiment of the present disclosure;
[0019] Figure 2 Schematically shows a flowchart of a transaction processing method according to an embodiment of the present disclosure;
[0020] Figure 3 Schematically shows a schematic diagram of a pre-check component and an application link according to an embodiment of the present disclosure;
[0021] Figure 4 Schematically shows a flowchart of a transaction processing method according to another embodiment of the present disclosure;
[0022] Figure 5 Schematically shows a structural block diagram of a transaction processing device according to an embodiment of the present disclosure; and
[0023] Figure 6 Schematically shows a block diagram of an electronic device suitable for implementing a transaction processing method according to an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0024] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are merely exemplary and are not intended to limit the scope of the present disclosure. In the following detailed description, for the sake of explanation, numerous specific details are set forth in order to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is obvious that one or more embodiments can also be implemented without these specific details. In addition, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessarily confusing the concepts of the present disclosure.
[0025] The terms used herein are merely for describing specific embodiments and are not intended to limit the present disclosure. The terms "including", "comprising", etc. used herein indicate the presence of features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.
[0026] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.
[0027] In the case of using expressions such as "at least one of A, B, and C, etc.", generally, it should be interpreted according to the meaning commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include, but is not limited to, a system having only A, only B, only C, having A and B, having A and C, having B and C, and / or having A, B, and C, etc.).
[0028] It should be noted that the transaction processing method and apparatus of the present disclosure can be used in the fields of fintech and artificial intelligence technologies, and can also be used in any field other than the fintech field or the artificial intelligence technology field, such as: the computer technology field, the data processing technology field, etc. The application fields of the transaction processing method and apparatus of the present disclosure are not limited.
[0029] In the technical solution of the present disclosure, the user information involved (including but not limited to user personal information, user image information, user device information, such as location information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) are all information and data authorized by the user or fully authorized by all parties. Moreover, the processing of relevant data, such as collection, storage, use, processing, transmission, provision, disclosure, and application, all comply with relevant laws, regulations, and standards, take necessary confidentiality measures, do not violate public order and good customs, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0030] In the scenario of making automated decisions using personal information, the methods, devices, and systems provided by the embodiments of the present disclosure all provide corresponding operation entrances for users to choose to agree or reject the automated decision results; if the user chooses to reject, the expert decision-making process will be entered. The expression "automated decision" here refers to the activity of automatically analyzing and evaluating an individual's behavior habits, hobbies, or economic, health, credit status, etc. through a computer program and making a decision. The expression "expert decision" here refers to the activity of making a decision by a person who specializes in a certain field, has specialized experience, knowledge, and skills, and has reached a certain professional level.
[0031] During the research process, it was found that in online transactions, such as online transfer transactions, in the related art, when an unknown or abnormal situation occurs downstream of the transfer system, the bank-securities transfer system still transmits the unknown status to the securities firm, ultimately resulting in the securities firm obtaining the unknown status of the transaction and affecting the customer's investment behavior.
[0032] If you want to close the above transaction loop, in the related art, it is usually achieved through daytime doubtful account queries or through batch processing at night. However, these methods are all post-processing and may still result in a relatively long transaction processing time and reduce customer satisfaction.
[0033] The embodiments of the present disclosure provide a transaction processing method, including: in response to receiving a transaction processing request, determining an application link for the transaction processing request based on the transaction type included in the transaction processing request, where the application link includes the dependency relationships between multiple applications, and the applications include multiple processing containers; performing a health check on the application link based on the transaction test data and dependency relationships corresponding to the transaction type to obtain the address information of the available containers of each of the multiple applications, where the available containers are determined from the multiple processing containers; associating the address information of the available containers of each of the multiple applications with the transaction processing request to obtain associated data; and sending the associated data and the transaction processing request to the starting application in the application link, where the starting application transmits the associated data and the transaction processing request in the application link, and the associated data is used to enable each application in the application link to process the transaction processing request based on the target container, and the address information of the target container is the same as the address information of the available container corresponding to the application.
[0034] Figure 1 Schematically shows an application scenario diagram of a transaction processing method, device, equipment, medium, and program product according to an embodiment of the present disclosure.
[0035] Such as Figure 1As shown, the application scenario 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 is used to provide a medium for communication links between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, etc.
[0036] Users can use the first terminal device 101, the second terminal device 102, and the third terminal device 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications may be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (for example only).
[0037] The first terminal device 101, the second terminal device 102, and the third terminal device 103 may be various electronic devices with a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, and desktop computers, etc.
[0038] The server 105 may be a server that provides various services, such as a background management server that supports the websites browsed by users using the first terminal device 101, the second terminal device 102, and the third terminal device 103 (for example only). The background management server may analyze and process data such as user requests received, and feedback the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.
[0039] It should be noted that the transaction processing method provided by the embodiments of the present disclosure can generally be executed by the server 105. Correspondingly, the transaction processing device provided by the embodiments of the present disclosure can generally be set in the server 105. The transaction processing method provided by the embodiments of the present disclosure can also be executed by a server or a server cluster different from the server 105 and capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and / or the server 105. Correspondingly, the transaction processing device provided by the embodiments of the present disclosure can also be set in a server or a server cluster different from the server 105 and capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and / or the server 105.
[0040] It should be understood that Figure 1 the numbers of terminal devices, networks, and servers in are merely illustrative. According to actual needs, there can be any number of terminal devices, networks, and servers.
[0041] Based on the scenario described below, the transaction processing method of the disclosed embodiments will be described in detail through Figure 1 the following. Figures 2 to 4 The transaction processing method of the disclosed embodiments will be described in detail through the following.
[0042] Figure 2 FIG. schematically shows a flowchart of a transaction processing method according to an embodiment of the present disclosure.
[0043] As Figure 2 shown, the method includes operations S210 to S240.
[0044] In operation S210, in response to receiving a transaction processing request, an application link for the transaction processing request is determined based on the transaction type included in the transaction processing request, where the application link includes dependencies between multiple applications, and the applications include multiple processing containers.
[0045] In operation S220, a health check is performed on the application link based on transaction test data corresponding to the transaction type and dependencies, and address information of available containers of each of the multiple applications is obtained, where the available containers are determined from the multiple processing containers.
[0046] In operation S230, the address information of the available containers of each of the multiple applications is associated with the transaction processing request to obtain associated data.
[0047] In operation S240, the associated data and the transaction processing request are sent to the starting application in the application link, where the starting application transmits the associated data and the transaction processing request in the application link, and the associated data is used to enable each application in the application link to process the transaction processing request based on the target container, and the address information of the target container is the same as the address information of the available container corresponding to the application.
[0048] According to an embodiment of the present disclosure, the transaction processing method may be executed by a pre-check component, and the pre-check component may be used to receive a transaction processing request and communicate with the starting application in the application link.
[0049] According to an embodiment of the present disclosure, the transaction processing request may be sent by a client that initiates a transaction.
[0050] According to an embodiment of the present disclosure, the type of the transaction is not limited and may be a transfer type, a loan type, a deposit and withdrawal type, etc.
[0051] According to an embodiment of the present disclosure, the transaction processing request may include: a transaction type, a transaction amount, a transaction identifier, etc.
[0052] According to an embodiment of the present disclosure, the application may be an application program, an application server, etc. The processing container is a container for processing transaction processing requests.
[0053] According to an embodiment of the present disclosure, the address information of the available container may include: container identifier, network protocol address, container port, etc.
[0054] According to an embodiment of the present disclosure, based on the transaction type, an application link for the transaction processing request may be determined from at least one preset application link for processing the transaction type.
[0055] According to an embodiment of the present disclosure, by transmitting transaction test data among multiple applications and performing health checks on the multiple applications respectively, the transmission order may be determined by the dependency relationship.
[0056] According to an embodiment of the present disclosure, there is no limitation on the manner of associating the address information of the available container and the transaction processing request, and it may be achieved by concatenating the identifier of each application, the address information of the available container of each application, and the transaction identifier in the transaction processing request.
[0057] According to an embodiment of the present disclosure, by sending the association data and the transaction processing request to the starting application, the starting application transmits the association data and the transaction processing request in the application link, so that each application determines the target container for processing the transaction processing request through the address information of the available container included in the association data.
[0058] According to an embodiment of the present disclosure, the transmission order of the association data and the transaction processing request in the application link is determined based on the dependency relationship.
[0059] According to an embodiment of the present disclosure, by performing a health check on the application link before processing the customer's transaction processing request, that is, detecting in advance whether the processing link is normal, the occurrence data of unknown transactions is reduced, and the occurrence of customer complaints is reduced.
[0060] According to an embodiment of the present disclosure, before processing a transaction processing request of a customer, an application link for processing the transaction processing request is determined, and a health check is performed on each available container in the application link based on the dependency relationship between multiple applications in the application link and transaction test data corresponding to the transaction type, so as to determine the address information of the healthy available containers in each application, and associate the address information of each available container with the transaction processing request, so that when each application in the application link processes the transaction processing request, the above-mentioned available containers can be used for processing. Since the address information of the available containers of each application in the application link is determined and associated with the transaction processing request, each application in the application link can use the above-mentioned available containers for processing when processing the transaction processing request, thereby reducing the probability of transaction suspension and abnormal transaction caused by abnormal transaction processing, and at least partially solving the technical problem of long transaction processing time in the related art, and achieving the technical effect of improving the transaction success rate and customer satisfaction.
[0061] According to an embodiment of the present disclosure, based on the transaction test data corresponding to the transaction type and the dependency relationship, a health check is performed on the application link to obtain the address information of the available containers of each of the multiple applications, which may include the following operations.
[0062] Based on the dependency relationship, determine the transfer order of the transaction test data among the multiple applications; based on the transfer order and the transaction test data, perform health checks on the processing containers of each of the multiple applications and the databases of each of the multiple applications respectively to obtain the health check results of each of the multiple applications; determine the address information of the healthy containers included in the health check results of each of the multiple applications as the address information of the available containers corresponding to each of the multiple applications.
[0063] According to an embodiment of the present disclosure, the dependency relationship between multiple applications can be analyzed, and a directed graph is constructed through the dependency relationship, where the nodes in the directed graph are applications, and the edges of the directed graph represent the dependency relationship, so as to determine the transfer order through the node positions in the directed graph.
[0064] According to an embodiment of the present disclosure, when performing a health check on an application, a health check can be performed on the database of the application and the processing containers included in the application respectively. When it is determined that the database of the application is in a healthy state and there are available containers (i.e., containers in a healthy state) in the processing containers, it is determined that the application is in a healthy state.
[0065] According to an embodiment of the present disclosure, the health check result of an application may include the address information of the processing containers in a healthy state, i.e., healthy containers, and determine this address information as the address information of the available containers.
[0066] According to an embodiment of the present disclosure, by relying on the dependency relationship, a reasonable transfer order of transaction test data among multiple applications is determined, and the health checks of the processing containers and databases of each of the multiple applications are sequentially performed according to the transfer order, thereby improving the inspection efficiency of the health check.
[0067] According to an embodiment of the present disclosure, the transaction test data includes: database detection sub-data and container detection sub-data; based on the transfer order and the transaction test data, the health checks of the processing containers and databases of each of the multiple applications are sequentially performed respectively to obtain the health check results of each of the multiple applications, which may include the following operations.
[0068] Based on the transfer order and the database detection sub-data, the health checks of the databases of each of the multiple applications are sequentially performed to obtain the database check results of each of the multiple applications; in the case where the database check results of each of the multiple applications all indicate health, based on the container detection sub-data and the transfer order, the health checks of the processing containers of each of the multiple applications are sequentially performed to obtain the health check results of the target application.
[0069] According to an embodiment of the present disclosure, the database detection sub-data may include instructions for performing a health check on the database. The instructions may include database access instructions, database write instructions, and database read instructions.
[0070] According to an embodiment of the present disclosure, in the case where it is recognized through the above instructions that the database can be normally accessed and the database response duration is not greater than a first preset duration, it is determined that the database is in a healthy state, that is, the database health check result of the database indicates health, where the first preset duration is not limited and can be set according to the actual situation.
[0071] According to an embodiment of the present disclosure, in the case where the database check results of each of the multiple applications all indicate health, the health checks of the processing containers of each of the multiple applications are sequentially performed to determine whether there are available containers for each application.
[0072] According to an embodiment of the present disclosure, since the health check speed of the database is relatively fast, by first sequentially performing the health checks of the databases of multiple applications based on the transfer order and then sequentially performing the health checks of the processing containers of multiple applications when the health checks of the databases of multiple applications all pass, the technical effect of improving the health check speed can be achieved.
[0073] According to an embodiment of the present disclosure, the container detection sub-data includes: health check instructions and test transaction requests corresponding to multiple applications respectively; the health check instructions are used to perform health checks on multiple processing containers included in the application; based on the container detection sub-data and the transfer order, health checks are sequentially performed on the processing containers of multiple applications to obtain the health check results of the target application, which may include the following operations.
[0074] Send the container detection sub-data and the transfer order to the starting application in the application link; receive the health check results of multiple applications returned by the starting application; wherein, the starting application is used to perform the following operations.
[0075] Based on the health check instructions and test transaction requests corresponding to the starting application, perform a health check on multiple processing containers of the starting application to obtain the first health check result of the starting application; in the case where the first health check result indicates that there are available containers in the starting application, delete the health check instructions and test transaction requests corresponding to the starting application in the container detection sub-data to obtain new container detection sub-data; based on the transfer order, send the processing data of the available containers for the test transaction request, the transfer order, and the new container detection sub-data to the downstream application of the starting application, wherein the downstream application is used to perform a health check on multiple processing containers included in the downstream application through the health check instructions and processing data corresponding to the downstream application to obtain the second health check result, and is used to transfer the second health check result to the starting application in the case where the downstream application is determined to be the end application based on the transfer order; in the case where it is determined that the health check result of the end application is received, summarize and forward the first health check result and the second health check result.
[0076] According to an embodiment of the present disclosure, each application may include a health check container for executing the health check instructions, and the health check instructions corresponding to each application may be used to instruct the health check container to perform a health check on multiple processing containers.
[0077] According to an embodiment of the present disclosure, the downstream application is an application downstream of the starting application.
[0078] According to an embodiment of the present disclosure, for each application, when it is determined that there are multiple healthy applications, one with the best performance may be determined through load balancing.
[0079] According to an embodiment of the present disclosure, the health check of multiple processing containers may include: checking whether each processing container can process the input data normally and obtain the correct processing result. It may also include: checking whether the duration for each processing container to obtain the processing result is less than a second preset duration, and in the case where it is less than the second preset duration, considering the processing container as a healthy container.
[0080] According to an embodiment of the present disclosure, the test transaction request is a preset transaction request that matches the transaction type, and the test transaction request may include correct processing results of respective processing containers of multiple applications during the process of processing input data.
[0081] According to an embodiment of the present disclosure, the input data of the respective processing containers of each application may be based on the output data of the application upstream of the application. For example, if the input data of the starting application is the test transaction request, then the input data of the downstream application of the starting application is the processed data obtained by the available containers in the starting application for processing the test transaction request.
[0082] According to an embodiment of the present disclosure, the starting application is the application located in the first position in the transfer order, and the end application is the application located in the last position in the transfer order.
[0083] According to an embodiment of the present disclosure, when it is determined based on the transfer order that the downstream application is not the end application and the second health result indicates that there are available containers in the downstream application, the downstream application may repeat the operation steps of the starting application. For example, delete the health check instruction in the new container detection sub-data that matches the downstream application to obtain updated container detection sub-data, and send the updated container detection sub-data, the new processing data of the available containers in the downstream application for the processing data, and the transfer order to the more downstream application of the downstream application.
[0084] According to an embodiment of the present disclosure, the more downstream application repeats the operation of the downstream application: for example, the more downstream application executes the health check instruction and obtains a third health check result. And when it is determined based on the transfer order that the downstream application is the end application, send the third health check result to the downstream application.
[0085] According to an embodiment of the present disclosure, when the downstream application is not the end application, continue with the health check of the next application until the end application is reached.
[0086] According to an embodiment of the present disclosure, the transmission of the health detection results may be in the reverse order of the transfer order.
[0087] According to an embodiment of the present disclosure, after receiving the health check result sent by the application downstream, the application upstream packages the health check result sent by the application downstream and its own health check result together into a data packet and sends it to the more upstream application.
[0088] According to an embodiment of the present disclosure, after receiving the health check results of all applications, the starting application summarizes them and forwards them to the pre-check component.
[0089] According to an embodiment of the present disclosure, when the health check result of the upstream application indicates that there are no available containers, it is possible not to continue the health check of the downstream application, but to quickly determine a new application link for health check and process the transaction processing request, thereby saving the transaction processing time.
[0090] According to an embodiment of the present disclosure, for example: if the first health check result indicates that there are no available containers in the starting application, an error message can be generated based on the first health detection result, and the health check of the downstream application can be stopped.
[0091] According to an embodiment of the present disclosure, during the health check, by sending the container detection sub-data to the starting application in the application link and passing the health check instructions downward in the transfer order, automated health check is achieved. And the downstream application reversely transfers its own health check result to the upstream application through this transfer order and finally aggregates it into the starting application, which is then sent to the pre-check component by the starting application after aggregation, achieving the saving of communication resources.
[0092] Figure 3 A schematic diagram of the pre-check component and the application link according to an embodiment of the present disclosure is schematically shown.
[0093] As Figure 3 shown, in some embodiments, the application link includes the following three applications: Application 1, Application 2, and Application 3. And each application respectively includes an access layer and a service layer. The access layer and the service layer respectively include a plurality of processing containers. Among them, Application 1 is the starting application, Application 2 is the downstream application of the starting application, and Application 3 is the downstream application of the downstream application, that is, the further downstream application, and it is the end application.
[0094] According to an embodiment of the present disclosure, when performing the health check of the application link, the pre-check component sends a check data packet including the container detection sub-data and the transfer order to Application 1. Application 1 performs health checks on the multiple processing containers included in the access layer and the service layer respectively through the container detection sub-data to obtain the first health check result. Among them, the processing data of the available containers in the access layer will be passed into the service layer so that the processing containers in the service layer can perform health checks.
[0095] According to an embodiment of the present disclosure, when the first health check result indicates that there are available containers in both the access layer and the service layer of Application 1, Application 1 deletes the health check instructions and test transaction requests corresponding to Application 1 in the container detection sub-data to obtain new container detection sub-data. And based on the transfer order, it sends the processing data of the available containers in the service layer of Application 1, the transfer order, and the new container detection sub-data to Application 2.
[0096] According to an embodiment of the present disclosure, Application 2 performs a health check on multiple processing containers included in the access layer and the service layer of Application 2 based on the health check instructions and processing data corresponding to Application 2, and obtains a second health check result. When the second health check result indicates that there are available containers in both the access layer and the service layer of Application 1, Application 2 deletes the health check instructions corresponding to Application 2 in the new container detection sub-data to obtain updated container detection sub-data. And based on the transfer order, it sends the processing data, transfer order, and updated container detection sub-data of the available containers in the service layer of Application 2 to Application 3.
[0097] According to an embodiment of the present disclosure, Application 3 performs a health check on multiple processing containers included in the access layer and the service layer of Application 2 based on the health check instructions and processing data corresponding to Application 2, and obtains a third health check result.
[0098] According to an embodiment of the present disclosure, Application 3 sends the third inspection result to Application 2. After receiving the third health check result, Application 2 packages the second health check result and the third health check result into a data packet and sends it to Application 1. After receiving the data packet, Application 1 packages the first health check result, the second health check result, and the third health check result into a result data packet and sends it to the pre-inspection component.
[0099] According to an embodiment of the present disclosure, the pre-inspection component associates the address information of the available containers in the access layer and the service layer of Application 1, the address information of the available containers in the access layer and the service layer of Application 2, and the address information of the available containers in the access layer and the service layer of Application 3 included in the first health check result, the second health check result, and the third health check result respectively with the transaction processing request to obtain associated data.
[0100] According to an embodiment of the present disclosure, the pre-inspection component packages the associated data and the transaction processing request into a first actual transaction data packet and sends it to Application 1.
[0101] According to an embodiment of the present disclosure, the transaction processing method may further include the following operations.
[0102] In response to an abnormal situation occurring during the processing of the transaction processing request by an application in the application link, query the target data matching the transaction processing request in the databases of the multiple applications respectively to obtain query results for the databases of the multiple applications; for the query results of each application's database, when the query result indicates that there is target data in the database that matches the transaction processing request, update the data status of the target data to processing failed.
[0103] According to an embodiment of the present disclosure, not limiting abnormal situations may include: not receiving a final processing result for the transaction processing request within a third preset duration, receiving an error message from any application in the application link, etc. The third preset duration is not limited and can be set according to actual situations.
[0104] According to an embodiment of the present disclosure, the final processing result and the error message may be sent by the starting application to the pre-check component after being reversely transmitted to the starting application. It may also be sent by the application that outputs the above information to the pre-check component.
[0105] According to an embodiment of the present disclosure, the transaction identifier of the transaction processing request may be queried in the database to obtain target data matching the transaction processing request.
[0106] According to an embodiment of the present disclosure, by updating the data status of the target data to processing failure, a fast closed-loop of the transaction can be achieved, so that the transaction processing request can be initiated again, thereby improving the processing speed of the transaction to a certain extent.
[0107] According to an embodiment of the present disclosure, the transaction processing method may further include the following operations.
[0108] In the case where the query result indicates that there is no target data matching the transaction processing request in the database, preset data matching the transaction processing request is written into the database, where the data status of the preset data is processing failure.
[0109] According to an embodiment of the present disclosure, the specific content of the preset data is not limited and can be set according to actual situations.
[0110] According to an embodiment of the present disclosure, if no target data related to the transaction processing request can be queried in the database, in the available container where the data related to the transaction processing request may be applied, by writing preset data with a data status of processing failure, a fast closed-loop of the transaction can be achieved, facilitating the re-initiation of the transaction processing request.
[0111] According to an embodiment of the present disclosure, determining an application link for the transaction processing request based on the transaction type included in the transaction processing request may include the following operations.
[0112] Based on the transaction type included in the transaction processing request, determine multiple candidate application links from the historical application links of multiple historical transaction processing requests; based on the transaction processing scores of the candidate application links, determine the application link for the transaction processing request from the multiple candidate application links.
[0113] According to an embodiment of the present disclosure, by matching the transaction type with the historical transaction types included in multiple historical transaction processing requests, a target historical transaction processing request with the same historical transaction type as the transaction type can be determined, and the historical application link used to process the target historical transaction processing request can be determined as the candidate application link.
[0114] According to an embodiment of the present disclosure, the application link can be determined according to the transaction processing scores of each candidate application link.
[0115] According to an embodiment of the present disclosure, the transaction processing score can be obtained by comprehensively evaluating various information such as the total transaction processing duration, whether there are abnormal situations during the transaction processing, and user feedback information for the candidate application link.
[0116] According to an embodiment of the present disclosure, the transaction processing scores of multiple candidate application links can be performed, and the candidate application link with the highest transaction processing score can be determined as the application link for processing the current transaction processing request, thereby increasing the passing probability of the health check of the application link and thus increasing the transaction processing success rate.
[0117] Figure 4 The flowchart of a transaction processing method according to another embodiment of the present disclosure is schematically shown.
[0118] As Figure 4 shown, the method includes operations S401 to S410.
[0119] In operation S401, in response to receiving a transaction processing request, based on the transaction type included in the transaction processing request, the application link for the transaction processing request is determined, where the application link includes the dependency relationship between multiple applications, and the application includes multiple processing containers.
[0120] In operation S402, based on the transaction test data corresponding to the transaction type and the dependency relationship, a health check is performed on the application link to obtain the address information of the available containers of each application, where the available containers are determined from multiple processing containers.
[0121] In operation S403, the address information of the available containers of each application and the transaction processing request are associated to obtain associated data.
[0122] In operation S404, the associated data and the transaction processing request are sent to the starting application in the application link, so that the starting application transmits the associated data and the transaction processing request in the application link, and enables multiple applications in the application link to process the transaction processing request.
[0123] In operation S405, it is determined whether an abnormal situation occurs during the processing of the transaction processing request by the application in the application link. In response to the occurrence of an abnormal situation, operation S406 is executed. In response to the non-occurrence of an abnormal situation, operation S410 is executed.
[0124] In operation S406, target data matching the transaction processing request is queried in the respective databases of multiple applications, and query results for the respective databases of multiple applications are obtained.
[0125] In operation S407, it is determined whether the target data is queried. In the case where the target data is queried, operation S408 is executed. In the case where the target data is not queried, operation S409 is executed.
[0126] In operation S408, the data status of the target data is updated to processing failure, and operation S401 is returned.
[0127] In operation S409, preset data matching the transaction processing request is written into the database, where the data status of the preset data is processing failure, and operation S401 is returned.
[0128] In operation S410, the transaction processing request is marked as processed.
[0129] Based on the above transaction processing method, the present disclosure also provides a transaction processing device. The following will be combined with Figure 5 to describe the device in detail.
[0130] Figure 5 The structural block diagram of the transaction processing device according to an embodiment of the present disclosure is schematically shown.
[0131] As Figure 5 shown, the transaction processing device 500 of this embodiment includes a link determination module 510, a health check module 520, an association module 530, and a processing module 540.
[0132] The link determination module 510 is configured to, in response to receiving a transaction processing request, determine an application link for the transaction processing request based on the transaction type included in the transaction processing request, where the application link includes the dependency relationship between multiple applications, and the application includes multiple processing containers.
[0133] The health check module 520 is configured to perform a health check on the application link based on the transaction test data and the dependency relationship corresponding to the transaction type, and obtain the address information of the available containers of each of the multiple applications, where the available containers are determined from the multiple processing containers.
[0134] The association module 530 is configured to associate the address information of the available containers of each of the multiple applications with the transaction processing request to obtain associated data.
[0135] A processing module 540 is configured to send associated data and a transaction processing request to a starting application in an application link. The starting application is used to transfer the associated data and the transaction processing request in the application link. The associated data is used to enable each application in the application link to process the transaction processing request based on a target container, and the address information of the target container is the same as the address information of the available containers corresponding to the applications.
[0136] According to an embodiment of the present disclosure, the health check module 520 includes: a sequence determination sub-module, a health check sub-module, and an address determination sub-module.
[0137] The sequence determination sub-module is configured to determine the transfer sequence of transaction test data among multiple applications based on the dependency relationship.
[0138] The health check sub-module is configured to perform health checks on the processing containers and databases of multiple applications respectively based on the transfer sequence and the transaction test data, and obtain the health check results of multiple applications respectively.
[0139] The address determination sub-module is configured to determine the address information of the healthy containers included in the health check results of multiple applications respectively as the address information of the available containers corresponding to multiple applications respectively.
[0140] According to an embodiment of the present disclosure, the transaction test data includes: database detection sub-data and container detection sub-data. The health check sub-module includes: a first health check unit and a second health check unit.
[0141] The first health check unit is configured to perform health checks on the databases of multiple applications respectively based on the transfer sequence and the database detection sub-data, and obtain the database check results of multiple applications respectively.
[0142] The second health check unit is configured to, when the database check results of multiple applications respectively indicate health, perform health checks on the processing containers of multiple applications respectively based on the container detection sub-data and the transfer sequence, and obtain the health check results of the target application.
[0143] According to an embodiment of the present disclosure, the container detection sub-data includes: health check instructions and test transaction requests corresponding to multiple applications respectively. The second health check unit includes: a sending sub-unit and a receiving sub-unit.
[0144] The sending sub-unit is configured to send the container detection sub-data and the transfer sequence to a starting application in the application link.
[0145] The receiving sub-unit is configured to receive the health check results of multiple applications respectively returned by the starting application.
[0146] Among them, the starting application is used to execute the following modules.
[0147] The first check module is used to perform a health check on multiple processing containers of the starting application based on a health check instruction corresponding to the starting application and a test transaction request, and obtain a first health check result of the starting application.
[0148] The data update module is used to delete the health check instruction and the test transaction request corresponding to the starting application in the container detection sub-data when the first health check result indicates that there are available containers in the starting application, and obtain new container detection sub-data.
[0149] The data sending module is used to send the processing data of the available containers for the test transaction request, the transfer order, and the new container detection sub-data to the downstream application of the starting application based on the transfer order, where the downstream application is used to perform a health check on multiple processing containers included in the downstream application through a health check instruction and processing data corresponding to the downstream application, obtain a second health check result, and is used to transfer the second health check result to the starting application when it is determined that the downstream application is the end application based on the transfer order.
[0150] The forwarding module is used to summarize and forward the first health check result and the second health check result when it is determined that the health check result of the end application is received.
[0151] According to an embodiment of the present disclosure, the above transaction processing device 500 further includes: a query module and a status update module.
[0152] The query module is used to query target data matching the transaction processing request in the databases of multiple applications in response to an abnormal situation occurring during the processing of the transaction processing request by an application in the application link, and obtain query results for the databases of multiple applications respectively.
[0153] The status update module is used to update the data status of the target data to processing failure for the query result of each application's database when the query result indicates that there is target data matching the transaction processing request in the database.
[0154] According to an embodiment of the present disclosure, the above transaction processing device 500 further includes: a data writing module.
[0155] The data writing module is used to write preset data matching the transaction processing request into the database when the query result indicates that there is no target data matching the transaction processing request in the database, where the data status of the preset data is processing failure.
[0156] According to an embodiment of the present disclosure, the link determination module 510 includes: a first selection sub-module and a second selection sub-module.
[0157] The first selection sub-module is configured to determine a plurality of candidate application links from the historical application links of each of the plurality of historical transaction processing requests based on the transaction type included in the transaction processing request.
[0158] The second selection sub-module is configured to determine an application link for the transaction processing request from the plurality of candidate application links based on the transaction processing scores of the candidate application links.
[0159] According to an embodiment of the present disclosure, any plurality of modules among the link determination module 510, the health check module 520, the association module 530, and the processing module 540 may be combined and implemented in one module, or any one of them may be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules may be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the link determination module 510, the health check module 520, the association module 530, and the processing module 540 may be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on chip, a system on substrate, a system on package, an application specific integrated circuit (ASIC), or may be implemented by any other reasonable means such as hardware or firmware for integrating or packaging circuits, or may be implemented in any one of the three implementation manners of software, hardware, and firmware, or in an appropriate combination of any several of them. Alternatively, at least one of the link determination module 510, the health check module 520, the association module 530, and the processing module 540 may be at least partially implemented as a computer program module, and when the computer program module is run, it may execute corresponding functions.
[0160] Figure 6 A block diagram of an electronic device suitable for implementing the transaction processing method according to an embodiment of the present disclosure is schematically shown.
[0161] As Figure 6 shown, the electronic device 600 according to an embodiment of the present disclosure includes a processor 601, which may perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage section 608 into a random access memory (RAM) 603. The processor 601 may include, for example, a general microprocessor (such as a CPU), an instruction set processor, and / or a related chipset, and / or a dedicated microprocessor (such as an application specific integrated circuit (ASIC)), etc. The processor 601 may also include on-board memory for caching purposes. The processor 601 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0162] In the RAM 603, various programs and data required for the operation of the electronic device 600 are stored. The processor 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. The processor 601 performs various operations of the method flow according to the embodiments of the present disclosure by executing the programs in the ROM 602 and / or the RAM 603. It should be noted that the programs can also be stored in one or more memories other than the ROM 602 and the RAM 603. The processor 601 can also perform various operations of the method flow according to the embodiments of the present disclosure by executing the programs stored in one or more memories.
[0163] According to an embodiment of the present disclosure, the electronic device 600 may further include an input / output (I / O) interface 605, and the input / output (I / O) interface 605 is also connected to the bus 604. The electronic device 600 may further include one or more of the following components connected to the input / output (I / O) interface 605: an input part 606 including a keyboard, a mouse, etc.; an output part 607 including, for example, a cathode ray tube (CRT), a liquid crystal display (LCD), etc. and a speaker, etc.; a storage part 608 including a hard disk, etc.; and a communication part 609 including a network interface card such as a LAN card, a modem, etc. The communication part 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the input / output (I / O) interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed so that a computer program read from it can be installed into the storage part 608 as needed.
[0164] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist separately without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the one or more programs are executed, the method according to the embodiments of the present disclosure is implemented.
[0165] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example, but is not limited to: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In the present disclosure, the computer-readable storage medium may be any tangible medium that contains or stores a program, and this program can be used by or in combination with an instruction execution system, apparatus, or device. For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the above-described ROM 602 and / or RAM 603 and / or one or more memories other than ROM 602 and RAM 603.
[0166] An embodiment of the present disclosure also includes a computer program product, which includes a computer program that contains program code for executing the method shown in the flowchart. When the computer program product runs in a computer system, the program code is used to enable the computer system to implement the transaction processing method provided by the embodiment of the present disclosure.
[0167] When the computer program is executed by the processor 601, it executes the above functions defined in the system / apparatus of the embodiment of the present disclosure. According to an embodiment of the present disclosure, the above-described systems, apparatuses, modules, units, etc. can be implemented by computer program modules.
[0168] In one embodiment, the computer program can rely on tangible storage media such as optical storage devices and magnetic storage devices. In another embodiment, the computer program can also be transmitted and distributed in the form of a signal on a network medium, and is downloaded and installed through the communication part 609, and / or installed from the removable medium 611. The program code included in the computer program can be transmitted by any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0169] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the processor 601, it executes the above functions defined in the system of the embodiment of the present disclosure. According to an embodiment of the present disclosure, the above-described systems, devices, apparatuses, modules, units, etc. can be implemented by computer program modules.
[0170] In accordance with embodiments of the present disclosure, program code for executing the computer programs provided by the embodiments of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, such as Java, C++, Python, the "C" language, or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (for example, by connecting through the Internet using an Internet service provider).
[0171] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram can represent a module, a program segment, or a part of code that contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than that marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram or flowchart, and the combination of blocks in the block diagram or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.
[0172] Those skilled in the art can understand that the features described in the various embodiments of the present disclosure can be combined and / or combined in various ways, even if such combinations or combinations are not explicitly described in the present disclosure. In particular, without departing from the spirit and teachings of the present disclosure, the features described in the various embodiments of the present disclosure can be combined and / or combined in various ways. All such combinations and / or combinations fall within the scope of the present disclosure.
[0173] The above describes the embodiments of the present disclosure. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in each embodiment cannot be used advantageously in combination. Without departing from the scope of the present disclosure, those skilled in the art can make various substitutions and modifications, and all such substitutions and modifications should fall within the scope of the present disclosure.
Claims
1. A transaction processing method, characterized in that: The method comprises: In response to receiving a transaction processing request, determining an application chain for the transaction processing request based on a transaction type included in the transaction processing request, wherein the application chain includes a dependency relationship between a plurality of applications, and the application includes a plurality of processing containers; Based on the transaction test data corresponding to the transaction type and the dependency relationship, a health check is performed on the application link to obtain address information of available containers of each of the plurality of applications, wherein the available containers are determined from the plurality of processing containers; Associating the address information of the available containers of the plurality of applications with the transaction processing request to obtain associated data; The associated data and the transaction processing request are sent to a starting application in the application chain, wherein the starting application is used to transfer the associated data and the transaction processing request in the application chain, and the associated data is used to enable each application in the application chain to process the transaction processing request based on a target container, and the address information of the target container is the same as the address information of an available container corresponding to the application.
2. The method according to claim 1, characterized in that: The step of performing a health check on the application link based on the transaction test data corresponding to the transaction type and the dependency relationship to obtain address information of available containers of each of the plurality of applications includes: Based on the dependency relationship, determining the order of transmitting the transaction test data among the plurality of applications; Based on the transmission order and the transaction test data, health checks are performed on the processing containers of the plurality of applications and the databases of the plurality of applications in turn to obtain health check results of the plurality of applications; The address information of the healthy containers included in the health check results of the multiple applications is determined as the address information of the available containers corresponding to the multiple applications.
3. The method according to claim 1, characterized in that: The transaction test data includes: database detection sub-data and container detection sub-data; The step of performing health checks on the processing containers of the plurality of applications and the databases of the plurality of applications in sequence based on the transfer sequence and the transaction test data to obtain health check results of the plurality of applications includes: Based on the transmission order and the database detection sub-data, health checks are performed on the respective databases of the plurality of applications in sequence to obtain database inspection results of the respective plurality of applications; When the database check results of each of the multiple applications indicate health, health checks are performed on the processing containers of each of the multiple applications in sequence based on the container check sub-data and the transfer order to obtain a health check result of the target application.
4. The method according to claim 3, characterized in that The container detection sub-data includes: health check instructions and test transaction requests corresponding to each of the plurality of applications; the health check instructions are used to perform health checks on the plurality of processing containers included in the application; The step of performing health checks on the processing containers of the plurality of applications in sequence based on the container detection sub-data and the transfer order to obtain the health check result of the target application includes: Sending the container detection sub-data and the transfer order to the starting application in the application link; Receiving health check results of each of the multiple applications returned by the starting application; The starting application is used to perform the following operations: Based on the health check instruction corresponding to the starting application and the test transaction request, perform a health check on multiple processing containers of the starting application to obtain a first health check result of the starting application; If the first health check result indicates that the starting application has an available container, deleting the health check instruction and the test transaction request corresponding to the starting application in the container detection sub-data to obtain new container detection sub-data; Based on the transfer sequence, the processing data of the available container for the test transaction request, the transfer sequence and the new container detection sub-data are sent to a downstream application of the starting application, wherein the downstream application is used to perform a health check on a plurality of processing containers included in the downstream application through a health check instruction corresponding to the downstream application and the processing data to obtain a second health check result, and is used to transfer the second health check result to the starting application when the downstream application is determined to be an end application based on the transfer sequence; When it is determined that the health check result of the endpoint application is received, the first health check result and the second health check result are aggregated and forwarded.
5. The method according to claim 1, characterized in that The method further comprises: In response to an abnormality occurring in the application in the application chain during the processing of the transaction processing request, querying target data matching the transaction processing request in respective databases of the plurality of applications to obtain query results for respective databases of the plurality of applications; For the query result of the database of each application, when the query result indicates that the database has target data matching the transaction processing request, the data status of the target data is updated to processing failure.
6. The method according to claim 5, characterized in that The method further comprises: When the query result indicates that the database does not have target data matching the transaction processing request, preset data matching the transaction processing request is written into the database, wherein the data status of the preset data is processing failure.
7. The method according to claim 1, characterized in that The determining, based on the transaction type included in the transaction processing request, an application link for the transaction processing request includes: Based on the transaction type included in the transaction processing request, determining a plurality of candidate application links from respective historical application links of a plurality of historical transaction processing requests; The application link for the transaction processing request is determined from a plurality of the candidate application links based on the transaction processing scores of the candidate application links.
8. A transaction processing device, characterized in that: The device comprises: a link determination module, configured to, in response to receiving a transaction processing request, determine an application link for the transaction processing request based on a transaction type included in the transaction processing request, wherein the application link includes a dependency relationship between a plurality of applications, and the application includes a plurality of processing containers; A health check module, configured to perform a health check on the application link based on the transaction test data corresponding to the transaction type and the dependency relationship, and obtain address information of available containers of each of the plurality of applications, wherein the available containers are determined from the plurality of processing containers; An association module, used for associating the address information of the available containers of the plurality of applications with the transaction processing request to obtain association data; A processing module is used to send the associated data and the transaction processing request to the starting application in the application chain, wherein the starting application is used to transfer the associated data and the transaction processing request in the application chain, and the associated data is used to enable each of the applications in the application chain to process the transaction processing request based on a target container, and the address information of the target container is the same as the address information of the available container corresponding to the application.
9. An electronic device, comprising: one or more processors; a memory for storing one or more computer programs, It is characterized in that the one or more processors execute the one or more computer programs to implement the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program or instruction stored thereon, characterized in that: When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
11. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.