CN114092246A - Problem positioning method and device for financial transaction link - Google Patents

Problem positioning method and device for financial transaction link Download PDF

Info

Publication number
CN114092246A
CN114092246A CN202111404283.2A CN202111404283A CN114092246A CN 114092246 A CN114092246 A CN 114092246A CN 202111404283 A CN202111404283 A CN 202111404283A CN 114092246 A CN114092246 A CN 114092246A
Authority
CN
China
Prior art keywords
transaction
link
serial number
unique serial
transaction link
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111404283.2A
Other languages
Chinese (zh)
Inventor
马文建
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202111404283.2A priority Critical patent/CN114092246A/en
Publication of CN114092246A publication Critical patent/CN114092246A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/36Creation of semantic tools, e.g. ontology or thesauri
    • G06F16/367Ontology

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Databases & Information Systems (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • Computational Linguistics (AREA)
  • Animal Behavior & Ethology (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention discloses a problem positioning method and a device of a financial transaction link, relating to the technical field of artificial intelligence, wherein the method comprises the following steps: the transaction request is processed in each business system according to the following method: when the transaction enters the current business system, judging whether the transaction has a globally unique serial number or not; if the global unique serial number is not carried, generating a global unique serial number; acquiring transaction state information of a transaction at a key path of a current service system through a transaction record log buried point which is preset at the key path in a transaction link; constructing an actual transaction link of the whole transaction according to all transaction state information in the transaction links related to all service systems; and comparing the actual transaction link with a financial transaction link knowledge graph established in advance, and positioning the problem of the transaction link according to the comparison result. The invention can realize the problem of efficiently and accurately positioning the complex financial transaction link.

Description

Problem positioning method and device for financial transaction link
Technical Field
The invention relates to the technical field of artificial intelligence, in particular to a problem positioning method and device for a financial transaction link.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
In some large-scale financial technology companies, the application systems are often complicated due to the detailed division of responsibilities. A business transaction from the first business system to the last system is often processed across several or even tens of business systems. During the transaction processing, once one of the business systems processes the failure, the whole transaction fails. However, to perform troubleshooting, all related service systems on the transaction link need to be jointly checked, and huge manpower, material resources and financial resources are consumed. With the popularity of micro-services and container technologies and the service clustering brought by the increase of traffic, the interior of a service system is often continuously divided into a plurality of micro-services, each micro-service is deployed in a server cluster formed by dozens of servers, and the problem troubleshooting is more difficult.
Disclosure of Invention
The embodiment of the invention provides a problem positioning method of a financial transaction link, which is used for efficiently and accurately positioning the problem of a complex financial transaction link and comprises the following steps:
receiving a financial transaction request;
processing the transaction request at each business system according to the following method: when the transaction enters the current business system, judging whether the transaction has a globally unique serial number or not; if the global unique serial number is not carried, generating a global unique serial number; the global unique serial number is used as a unique identifier of a transaction link and is transmitted to a subsequent service system; acquiring transaction state information of a transaction at a key path of a current service system through a transaction record log buried point which is preset at the key path in a transaction link;
constructing an actual transaction link of the whole transaction according to all transaction state information in the transaction links related to all service systems;
comparing the actual transaction link with a financial transaction link knowledge graph established in advance, and positioning the problem of the transaction link according to the comparison result; the financial transaction link knowledge graph is pre-established based on the upstream and downstream relationship of the business system, the sequential execution relationship of the business process and the business elements related to the business process.
The embodiment of the invention also provides a problem positioning device of the financial transaction link, which is used for efficiently and accurately positioning the problem of the complex financial transaction link and comprises the following components:
a receiving unit for receiving a financial transaction request;
a processing unit, for processing the transaction request at each service system according to the following method: when the transaction enters the current business system, judging whether the transaction has a globally unique serial number or not; if the global unique serial number is not carried, generating a global unique serial number; the global unique serial number is used as a unique identifier of a transaction link and is transmitted to a subsequent service system; acquiring transaction state information of a transaction at a key path of a current service system through a transaction record log buried point which is preset at the key path in a transaction link;
the construction unit is used for constructing an actual transaction link of the whole transaction according to all transaction state information in the transaction links related to all service systems;
the positioning unit is used for comparing the actual transaction link with a financial transaction link knowledge graph established in advance and positioning the problem of the transaction link according to the comparison result; the financial transaction link knowledge graph is pre-established based on the upstream and downstream relationship of the business system, the sequential execution relationship of the business process and the business elements related to the business process.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the computer program to realize the problem positioning method of the financial transaction link.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the method for locating a problem in a financial transaction link is implemented.
An embodiment of the present invention further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the method for locating a problem of a financial transaction link is implemented.
In the embodiment of the invention, compared with the technical scheme that a plurality of persons are needed to participate in positioning the financial transaction link and the efficiency and the accuracy are low in the prior art, the problem positioning scheme of the financial transaction link is characterized in that: receiving a financial transaction request; processing the transaction request at each business system according to the following method: when the transaction enters the current business system, judging whether the transaction has a globally unique serial number or not; if the global unique serial number is not carried, generating a global unique serial number; the global unique serial number is used as a unique identifier of a transaction link and is transmitted to a subsequent service system; acquiring transaction state information of a transaction at a key path of a current service system through a transaction record log buried point which is preset at the key path in a transaction link; constructing an actual transaction link of the whole transaction according to all transaction state information in the transaction links related to all service systems; comparing the actual transaction link with a financial transaction link knowledge graph established in advance, and positioning the problem of the transaction link according to the comparison result; the financial transaction link knowledge graph is pre-established based on the upstream and downstream relation of the business system, the sequential execution relation of the business process and the business elements related to the business process, so that the problem of efficiently and accurately positioning the complex financial transaction link can be solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
FIG. 1 is a flow chart illustrating a problem location method for a financial transaction link according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating a problem location method for a financial transaction link according to another embodiment of the present invention;
FIG. 3 is a flow chart illustrating a problem location method for a financial transaction link according to another embodiment of the present invention;
FIG. 4 is a diagram of a financial transaction link knowledge-graph in accordance with an embodiment of the invention;
FIG. 5 is a schematic diagram of the problem location of the financial transaction link in an embodiment of the invention;
FIG. 6 is a schematic diagram of a problem locating device for a financial transaction link according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a problem locating device for a financial transaction link according to another embodiment of the present invention;
FIG. 8 is a schematic diagram of a problem locating device for a financial transaction link according to another embodiment of the present invention;
FIG. 9 is a diagram illustrating status information in the form of a graph according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention.
Knowledge map (Knowledge Graph) is a series of different graphs displaying Knowledge development process and structure relationship in the book intelligence field, describing Knowledge resources and carriers thereof by using visualization technology, mining, analyzing, constructing, drawing and displaying Knowledge and mutual relation between Knowledge resources and Knowledge carriers.
In industry applications, distributed link tracing techniques based on log burial and log consolidation already exist. The common link tracking technology method mainly comprises the following modules: 1) the Collector module receives or collects data transmitted by each application; 2) the Storage module stores the received or collected data; 3) the API (query) is responsible for inquiring data stored in Storage and providing simple JSON API for acquiring data; 4) the Web module provides a Web UI interface for the user to inquire and view.
The main emphasis points of the existing link tracking scheme are two: firstly, real-time transaction statistical information, such as statistical indexes of current transaction amount, system response time, transaction normal rate and the like, is obtained by collecting transaction data of each business system, and the collection and the display of macroscopic statistical information are mainly focused; secondly, a uniform distributed log management platform is constructed, so that the problems that the transaction logs are scattered in each service system and cannot be managed in a centralized mode are solved, and the gathering of the transaction logs is mainly focused on one.
Some distributed transaction link tracking schemes provide a concept of log burial point, but the concept is fundamental, the rapid retrieval of log information is realized through keywords, and the main purpose is retrieval convenience.
The above approaches, either for obtaining macro metrics or for log retrieval convenience, lack further high-level analysis for specific transactions. For high-level analysis, analysis needs to be performed by combining the business scenario and business logic of the transaction. With the current existing schemes, the concern for high-level analysis of the trade link is insufficient. For example, when a transaction is wrong, the conventional scheme only retrieves log information associated with the transaction at most, but as for where the problem occurs and what reason is caused, the problem location still needs to be manually performed.
The embodiment of the invention provides a problem positioning scheme of a financial transaction link based on the defects, and the scheme carries out high-order modeling on financial services based on a knowledge graph technology, so that high-order analysis on transaction state information and the whole transaction link is realized, and further, the problem under the complex financial transaction link is quickly positioned. The problem location scheme for the financial transaction link is described in detail below.
Fig. 1 is a schematic flow chart of a problem location method of a financial transaction link according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step 101: receiving a financial transaction request;
step 102: processing the transaction request at each business system according to the following method: when the transaction enters the current business system, judging whether the transaction has a globally unique serial number or not; if the global unique serial number is not carried, generating a global unique serial number; the global unique serial number is used as a unique identifier of a transaction link and is transmitted to a subsequent service system; acquiring transaction state information of a transaction at a key path of a current service system through a transaction record log buried point which is preset at the key path in a transaction link;
step 103: constructing an actual transaction link of the whole transaction according to all transaction state information in the transaction links related to all service systems;
step 104: comparing the actual transaction link with a financial transaction link knowledge graph established in advance, and positioning the problem of the transaction link according to the comparison result; the financial transaction link knowledge map is pre-established based on the upstream and downstream relationship of the service system, the sequential execution relationship of the service process and the service elements related to the service process.
The problem positioning method of the financial transaction link provided by the embodiment of the invention is characterized in that the method comprises the following steps: receiving a financial transaction request; processing the transaction request at each business system according to the following method: when the transaction enters the current business system, judging whether the transaction has a globally unique serial number or not; if the global unique serial number is not carried, generating a global unique serial number; the global unique serial number is used as a unique identifier of a transaction link and is transmitted to a subsequent service system; acquiring transaction state information of a transaction at a key path of a current service system through a transaction record log buried point which is preset at the key path in a transaction link; constructing an actual transaction link of the whole transaction according to all transaction state information in the transaction links related to all service systems; comparing the actual transaction link with a financial transaction link knowledge graph established in advance, and positioning the problem of the transaction link according to the comparison result; the financial transaction link knowledge graph is pre-established according to the upstream and downstream relation based on the service system, the sequence execution relation of the service process and the service elements related to the service process, so that the problem of efficiently and accurately positioning the complex financial transaction link can be solved. This is described in detail below with reference to fig. 2 to 5.
In one embodiment, as shown in fig. 5, the method for locating the problem of the financial transaction link may further include: and when the global unique serial number is judged to exist in the transaction, transmitting the global unique serial number to a subsequent service system.
In specific implementation, the global unique serial number is used as a unique identifier which runs through the whole transaction link, and then the unique identifier is transmitted in a subsequent service system, so that the whole transaction link is conveniently run through, an actual transaction link is constructed, and the efficiency and the accuracy of positioning the problems of the financial transaction link are further improved.
In one embodiment, when determining that the transaction carries the globally unique serial number, passing the globally unique serial number to a subsequent business system may include: and when the transaction is judged to have the global unique serial number, the global unique serial number is transferred to a subsequent service system through a representational state transfer REST protocol and a Dubbo protocol.
In one embodiment, in the REST protocol, a globally unique sequence number may be passed through an HTTP Header; in the Dubbo protocol, the transfer may be performed by the temporal state recorder RpcContext.
In the aspect of cross-transaction system call, in order to support the transfer of the global unique serial number between systems, the invention supports two protocols of REST and Dubbo. In the REST protocol, a global unique serial number is transmitted through an Http Header; in the Dubbo protocol, delivery is via Rpcontext.
In one embodiment, as shown in fig. 2, the method for locating a problem in a financial transaction link may further include step 105: and displaying all transaction state information in a form of a chart.
When the method is specifically implemented, the user can conveniently and visually know the transaction state information, and the efficiency and the accuracy of positioning the financial transaction link problem are further improved.
In one embodiment, as shown in fig. 3, the method for locating the problem of the financial transaction link may further include step 106: the structured transaction state information is returned to the third party calling system in the form of a representational state transfer interface REST API.
In specific implementation, the state information is returned to a third party in a structured data form (JSON) in a REST API form to call system functions, so that a stronger ecosystem is constructed, and integration and expansion of a third party system are facilitated.
To facilitate an understanding of how the invention may be practiced, a general description is provided below.
The embodiment of the invention constructs the financial transaction link knowledge graph based on the upstream and downstream relations of the business system, the sequential execution relation of the business process, the business elements related to the specific business process and the like. The financial transaction link knowledge graph is applied to state information on a transaction link to achieve rapid positioning of problems under complex financial transaction links. The method comprises the following steps.
1) And constructing a financial transaction link knowledge graph based on the upstream and downstream relations of the business system, the sequential execution relation of the business process, the business elements related to the specific business process and the like, and applying the knowledge graph to problem positioning. Note: this step is the most central process step.
2) In order to carry out transaction uniqueness positioning, a global unique serial number is generated at a first service system and is transmitted between subsequent systems;
3) and performing transaction recording log burying at a critical path in a transaction link, and recording the state information of the transaction at the critical path.
4) And aggregating all the transaction state information in the transaction link through a message queue to construct an actual transaction link of the whole transaction.
5) And comparing the actual transaction link with the knowledge graph of the financial transaction link to quickly find problems. For example, in the financial transaction link knowledge map, the financing transaction comprises four steps of information input, information inspection, message transmission and financing distribution. The financing distribution business process matching rule is ' IGTBNET ' (FINC. INPUT '), the matching rule is used as a characteristic character and is matched with all transaction state information corresponding to the transaction one by one, if a certain transaction state information contains the characteristic character, the transaction state information is indicated to hit the rule, and then the execution state (whether the execution is successful) of the transaction is read from the transaction state information and is used as a mark for judging whether the execution is successful in the current step. The subsequent steps are the same. If all the steps are successfully executed, the transaction is proved to have no problem; otherwise, the problem exists in the execution process. If there is a problem, the positioning problem can be quickly found by judging which step is not successfully executed.
To facilitate understanding of how the present invention may be implemented, reference is now made to fig. 4 and 5 for a detailed description of an example.
The invention provides a method for positioning a problem of a financial transaction link, which is a complex financial transaction link tracking method based on a knowledge graph technology and aims to solve the problem that the fault is difficult to track and troubleshoot under the complex financial transaction link. The method comprises the following steps.
1) Pre-constructing a knowledge graph: the business process is modeled by using the form of the knowledge graph from the whole business scene and the business process, including but not limited to the information of the upstream and downstream relation of a business system, the sequence execution relation of the business process, the business elements concerned by the specific business process, the matching rules of the nodes of the knowledge graph and the transaction state information, and the like, namely the business process is modeled by using the form of the knowledge graph by combining the specific business scene and the business process, namely the business process is modeled by using the form of the knowledge graph, and the constructed knowledge graph is stored in the knowledge graph constructing and maintaining module. An example of a constructed knowledge graph structure is shown in FIG. 4. Other preparation steps of the present invention may further include: and analyzing the service value and combing the key path in the transaction link.
The step 1) can be realized by a knowledge graph construction and maintenance module, and the module models the business process in a knowledge graph form according to the whole business scene and the business process, including but not limited to the information of the upstream and downstream relation of the business system, the sequential execution relation of the business process, the business elements related to the specific business process, the matching rules of the knowledge graph nodes and the transaction state information, and the like.
2) Embodiments of the present invention use a globally unique serial number as the unique identifier throughout the entire transaction link. In order to achieve the purpose that the global unique serial number is transmitted in all the service systems, a transaction system needs to be modified to a certain extent.
The step 2) can be realized by a global unique sequence number generation and transfer module, and the model (financial transaction link knowledge map) realizes that after a financing transaction enters a first service system (IGTBNET), the service system generates a global unique sequence number for the transaction, and then transfers the sequence number to a subsequent service system; for the subsequent service system, if it is detected that the globally unique sequence number has been generated, the sequence number is passed to the subsequent service system, for example, when an intersystem call occurs (for example, IGTNET calls SCFS), the upstream system (IGTBNET) passes the globally unique sequence number as a parameter to the downstream system (SCFS), and the downstream system does not regenerate the globally unique sequence number any more, but uses the passed globally unique sequence number as the globally unique sequence number of the current transaction. When a transaction enters a first service system, the global unique serial number generation and transfer module generates a global unique serial number as a unique identifier which runs through the whole transaction link, and then the unique identifier is transmitted in a subsequent service system.
In the aspect of selection of the global sequence number generator, the embodiment of the invention is realized by adopting a UUID mechanism.
In the aspect of cross-transaction system (service system) calling, in order to support the transfer between service systems with globally unique serial numbers, the embodiment of the invention supports two protocols, namely REST and Dubbo. In the REST protocol, a global unique serial number is transmitted through an Http Header; in the Dubbo protocol, delivery is via Rpcontext.
In addition, with respect to subsequent business systems: i.e., the system called by the first system, and the associated called systems, such as a calling the B and C systems, C calling the D and E, E calling F, F calling G, B, C, D, E, F, G all belong to the subsequent business system of the a system.
In addition, with regard to the meaning of the transfer: assuming that the first system is A, the globally unique serial number is generated in the system A, when A calls the systems B and C, C calls the systems D and E, E calls the systems F and F calls the systems G, B, C, D, E, F, G does not regenerate the globally unique serial number any more, but the globally unique serial number generated by the system A is used as the globally unique serial number of the current transaction. To ensure that the globally unique sequence number is consistent across all systems a through G, it needs to be "passed" when system calls are made.
In specific implementation, taking financing transaction as an example, four steps of information entry, information check, message transmission, financing distribution and the like need to be performed, and the passed service systems include four systems of IGTBNET (information entry), SCFS (information check), MCIS (message transmission) and BANCS (financing distribution), such as the home system shown in fig. 4. Wherein IGTBNET is the first service system, and SCFS, MCIS and BANCS are the subsequent service systems.
3) And performing pre-transaction record log embedding at a critical path of each business system transaction link, and recording transaction state information, related business elements, execution time and other critical element information of the transaction at the critical path.
In terms of transaction record logging, embodiments of the present invention may be implemented using SLF4J + logack, with the record format shown in table 1 below:
Figure BDA0003371762780000081
TABLE 1
The middle brackets are used as separators, wherein the first part is transaction occurrence time, the second part is a global unique serial number, the third part is a service system identifier of the position, the fourth part is a service process name, the fifth part is a transaction execution state, and the last part is a related service element.
In terms of message queue type selection, the embodiment of the present invention may select Kafka as message queue middleware to provide better data throughput.
In addition, the state information mentioned in the embodiment of the present invention may include: execution time; the time taken to perform the transaction; execution results (success, failure, not clear); invoking incoming parameters for the transaction; invoking an execution result after the transaction; the post-transaction error message is invoked (if execution fails).
4) All the transaction state information in the transaction link is collected through the message queue so as to construct a complete transaction link of the whole transaction, namely the log buried point data is collected to the same position through the message queue, and therefore subsequent processing is facilitated.
The step 3) and the step 4) can be realized by a transaction state information collecting module, and the functions of the module mainly comprise two functions: firstly, when a transaction record log is embedded at a critical path in a transaction link, the module is responsible for recording the state information of the transaction at the critical path; secondly, the recorded state information is sent to a transaction state information processing module through a message queue. The transaction state information collection module performs transaction record log embedding at a key path in a transaction link, records state information of transactions at the key path, and collects all transaction state information through a message queue.
In addition, the service elements that need to be concerned in the embodiments of the present invention may include: for example, when financing transaction is carried out, the financing number, financer, financing currency, financing amount and financing account number all belong to 'business elements needing attention'; for example, when transfer transaction is carried out, the transaction serial number, the payer, the payee, the currency and the amount all belong to 'business elements needing attention'.
In addition, the correlation values mentioned in the embodiments of the present invention may be: that is, the actual occurrence value of the concerned business element in the transaction, such as a financing transaction, the concerned business element is "financing amount", and the financing amount of the actual financing transaction is 1000 ten thousand, and then 1000 ten thousand is "related value".
5) Matching the collected transaction link state information with corresponding nodes in the knowledge graph, wherein the matching mode is as follows: and matching the service system identification and the service process name in the log as matching conditions with the system and the service process matching rule in the knowledge graph to obtain the state information of the transaction data in the global transaction link and the position of the transaction ending position in the global transaction link.
This step 5) may be implemented by a transaction state information processing module. The module reads all transaction state information from the message queue, and performs inverse analysis on the transaction state information according to a transaction record format to obtain information such as transaction occurrence time, a global unique serial number, a located business system identifier, a business process name, a transaction execution state, related business elements and the like; reading the constructed knowledge graph from a knowledge graph construction and maintenance module, and matching the transaction state information item by item according to the business process matching rules in the knowledge graph; after matching, acquiring the service elements needing to be concerned from the knowledge graph, and extracting the relevant values of the service elements needing to be concerned from the fields related to the service elements of the transaction state information; and then storing the information of the transaction occurrence time, the global unique serial number, the identification of the located service system, the name of the service process, the transaction execution state, the concerned service element and the like in a database. The transaction state information processing module carries out matching and structuring processing on the transaction state information and then persists the transaction state information to the database.
In addition, the relationship example of the actual transaction link and the complete transaction link mentioned in the embodiment of the present invention is as follows: whether the actual transaction link is completely consistent with the complete transaction link; the actual transaction link is within the complete transaction link, which transactions executed successfully, which executions failed, and which were not executed.
In addition, the embodiment of the invention can also comprise a transaction state information analysis module, and the module mainly has four functions: firstly, pulling a constructed knowledge graph from a knowledge graph construction and maintenance module; secondly, reading the structured transaction state information from the database according to the global unique serial number, and sequencing according to the transaction serial number to construct an actual transaction link of one transaction; thirdly, substituting the information of the actual transaction link into the knowledge graph to obtain the positioning of the transaction in the complete transaction link, and dumping the relationship between the actual transaction link and the complete transaction link into structured data; fourthly, returning the structured data to the transaction state information query and display module. The transaction state information analysis module constructs an actual transaction link of a transaction, and the actual transaction link is matched with a corresponding node in the knowledge graph, so that the state information of the transaction data in the complete transaction link and the position of the transaction ending position in the complete transaction link can be obtained.
6) And displaying the state information in a chart form, wherein the chart is shown as figure 9, or returning a structured data form (JSON) to a third party calling system in a REST API form.
The step 6) can be realized by a transaction state information query and display module, and the module reads the structured data from the transaction state information analysis module according to the query condition input by the user, and then displays the structured data to the user in a chart form, or returns a structured data form (JSON) to a third party calling system in a REST API form. Namely, the transaction state information query and display module displays the state information in a form of a chart, or returns a structured data form (JSON) to a third party calling system in a form of REST API.
In addition, the third party calling system mentioned in the embodiment of the present invention is: the system for carrying out secondary development based on the invention is a system for obtaining data by calling the system and then carrying out operations such as processing, showing and the like on the data.
The problem location method for the financial transaction link provided by the embodiment of the invention solves the problem troubleshooting dilemma that the financial science and technology company needs to comprehensively troubleshoot the upstream and downstream systems on the link together when facing a complex financial transaction link scene, is beneficial to improving the problem discovery and solution efficiency of the financial science and technology company under the complex financial transaction link, is beneficial to improving the operation capacity of an enterprise, and has strong external establishment capacity and good enterprise image with high efficiency.
The embodiment of the invention also provides a problem positioning device for the financial transaction link, which is described in the following embodiment. Because the principle of the device for solving the problems is similar to the problem positioning method of the financial transaction link, the implementation of the device can refer to the implementation of the problem positioning method of the financial transaction link, and repeated details are not repeated.
Fig. 6 is a schematic structural diagram of a problem locating apparatus of a financial transaction link according to an embodiment of the present invention, as shown in fig. 6, the apparatus includes:
a receiving unit 01 for receiving a financial transaction request;
a processing unit 02 for processing the transaction request at each business system according to the following method: when the transaction enters the current business system, judging whether the transaction has a globally unique serial number or not; if the global unique serial number is not carried, generating a global unique serial number; the global unique serial number is used as a unique identifier of a transaction link and is transmitted to a subsequent service system; acquiring transaction state information of a transaction at a key path of a current service system through a transaction record log buried point which is preset at the key path in a transaction link;
the construction unit 03 is used for constructing an actual transaction link of the whole transaction according to all transaction state information in the transaction links related to all service systems;
the positioning unit 04 is used for comparing the actual transaction link with a financial transaction link knowledge graph established in advance and positioning the problem of the transaction link according to the comparison result; the financial transaction link knowledge graph is pre-established according to the upstream and downstream relation based on the service system, the sequential execution relation of the service process and the service elements related to the service process.
In one embodiment, the processing unit is further configured to: and when the global unique serial number is judged to exist in the transaction, transmitting the global unique serial number to a subsequent service system.
In one embodiment, as shown in fig. 7, the problem locating device of the financial transaction link may further include: and the display unit 05 is used for displaying all the transaction state information in a form of a chart.
In one embodiment, as shown in fig. 8, the problem locating device of the financial transaction link may further include: a feedback unit 06 for returning the structured transaction state information to the third party calling system in the form of a representational state transfer interface REST API.
According to the technical scheme, the data acquisition, storage, use, processing and the like meet relevant regulations of national laws and regulations.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the computer program to realize the problem positioning method of the financial transaction link.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the method for locating a problem in a financial transaction link is implemented.
An embodiment of the present invention further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the method for locating a problem of a financial transaction link is implemented.
In the embodiment of the invention, compared with the technical scheme that the problem of positioning the financial transaction link needs to be manually participated in the prior art and the efficiency and the accuracy are low, the problem positioning scheme of the financial transaction link comprises the following steps: receiving a financial transaction request; processing the transaction request at each business system according to the following method: when the transaction enters the current business system, judging whether the transaction has a globally unique serial number or not; if the global unique serial number is not carried, generating a global unique serial number; the global unique serial number is used as a unique identifier of a transaction link and is transmitted to a subsequent service system; acquiring transaction state information of a transaction at a key path of a current service system through a transaction record log buried point which is preset at the key path in a transaction link; constructing an actual transaction link of the whole transaction according to all transaction state information in the transaction links related to all service systems; comparing the actual transaction link with a financial transaction link knowledge graph established in advance, and positioning the problem of the transaction link according to the comparison result; the financial transaction link knowledge graph is pre-established according to the upstream and downstream relation based on the service system, the sequence execution relation of the service process and the service elements related to the service process, so that the problem of efficiently and accurately positioning the complex financial transaction link can be solved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (13)

1. A method for locating problems in a financial transaction link, comprising:
receiving a financial transaction request;
processing the transaction request at each business system according to the following method: when the transaction enters the current business system, judging whether the transaction has a globally unique serial number or not; if the global unique serial number is not carried, generating a global unique serial number; the global unique serial number is used as a unique identifier of a transaction link and is transmitted to a subsequent service system; acquiring transaction state information of a transaction at a key path of a current service system through a transaction record log buried point which is preset at the key path in a transaction link;
constructing an actual transaction link of the whole transaction according to all transaction state information in the transaction links related to all service systems;
comparing the actual transaction link with a financial transaction link knowledge graph established in advance, and positioning the problem of the transaction link according to the comparison result; the financial transaction link knowledge graph is pre-established based on the upstream and downstream relationship of the business system, the sequential execution relationship of the business process and the business elements related to the business process.
2. The method of problem location for a financial transaction link of claim 1 further comprising: and when the global unique serial number is judged to exist in the transaction, transmitting the global unique serial number to a subsequent service system.
3. The method of problem location in a financial transaction link of claim 2 wherein communicating the globally unique serial number to a subsequent business system upon determining that the transaction carries the globally unique serial number comprises: and when the transaction is judged to have the global unique serial number, transmitting the global unique serial number to a subsequent service system through a representational state transfer (REST) protocol and a Dubbo protocol.
4. A problem location method of a financial transaction link as claimed in claim 3, characterized in that in the REST protocol, the globally unique sequence number is passed through the HTTP Header; in the Dubbo protocol, the transfer is performed by the temporal state recorder RpcContext.
5. The method of problem location for a financial transaction link of claim 1 further comprising: and displaying all transaction state information in a form of a chart.
6. The method of problem location for a financial transaction link of claim 1 further comprising: the structured transaction state information is returned to the third party calling system in the form of a representational state transfer interface REST API.
7. A problem location device for a financial transaction link, comprising:
a receiving unit for receiving a financial transaction request;
a processing unit, for processing the transaction request at each service system according to the following method: when the transaction enters the current business system, judging whether the transaction has a globally unique serial number or not; if the global unique serial number is not carried, generating a global unique serial number; the global unique serial number is used as a unique identifier of a transaction link and is transmitted to a subsequent service system; acquiring transaction state information of a transaction at a key path of a current service system through a transaction record log buried point which is preset at the key path in a transaction link;
the construction unit is used for constructing an actual transaction link of the whole transaction according to all transaction state information in the transaction links related to all service systems;
the positioning unit is used for comparing the actual transaction link with a financial transaction link knowledge graph established in advance and positioning the problem of the transaction link according to the comparison result; the financial transaction link knowledge graph is pre-established based on the upstream and downstream relationship of the business system, the sequential execution relationship of the business process and the business elements related to the business process.
8. The problem location apparatus for a financial transaction link of claim 7 wherein said processing unit is further configured to: and when the global unique serial number is judged to exist in the transaction, transmitting the global unique serial number to a subsequent service system.
9. The problem location apparatus for a financial transaction link of claim 7, further comprising: and the display unit is used for displaying all the transaction state information in a form of a chart.
10. The problem location apparatus for a financial transaction link of claim 7, further comprising: and the feedback unit is used for returning the structured transaction state information to the third party calling system in the form of a representational state transfer interface REST API.
11. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 6 when executing the computer program.
12. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, implements the method of any one of claims 1 to 6.
13. A computer program product, characterized in that the computer program product comprises a computer program which, when being executed by a processor, carries out the method of any one of claims 1 to 6.
CN202111404283.2A 2021-11-24 2021-11-24 Problem positioning method and device for financial transaction link Pending CN114092246A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111404283.2A CN114092246A (en) 2021-11-24 2021-11-24 Problem positioning method and device for financial transaction link

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111404283.2A CN114092246A (en) 2021-11-24 2021-11-24 Problem positioning method and device for financial transaction link

Publications (1)

Publication Number Publication Date
CN114092246A true CN114092246A (en) 2022-02-25

Family

ID=80304215

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111404283.2A Pending CN114092246A (en) 2021-11-24 2021-11-24 Problem positioning method and device for financial transaction link

Country Status (1)

Country Link
CN (1) CN114092246A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114691732A (en) * 2022-03-09 2022-07-01 中国邮政储蓄银行股份有限公司 Method and device for positioning abnormal transaction, nonvolatile storage medium and processor
CN115984002A (en) * 2023-02-22 2023-04-18 上海信宝博通电子商务有限公司 Data processing method and device for vehicle transaction management

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114691732A (en) * 2022-03-09 2022-07-01 中国邮政储蓄银行股份有限公司 Method and device for positioning abnormal transaction, nonvolatile storage medium and processor
CN115984002A (en) * 2023-02-22 2023-04-18 上海信宝博通电子商务有限公司 Data processing method and device for vehicle transaction management
CN115984002B (en) * 2023-02-22 2024-01-16 上海信宝博通电子商务有限公司 Data processing method and device for vehicle transaction management

Similar Documents

Publication Publication Date Title
CN110149361B (en) Internet business operation process backtracking method, system and device
US7689455B2 (en) Analyzing and detecting anomalies in data records using artificial intelligence
CN111752799A (en) Service link tracking method, device, equipment and storage medium
CN109961204A (en) Quality of service analysis method and system under a kind of micro services framework
CN114092246A (en) Problem positioning method and device for financial transaction link
CN108280022A (en) Performance monitoring method and device
CN112035191B (en) APM full-link monitoring system and method based on micro-service
CN111552509B (en) Method and device for determining dependency relationship between interfaces
CN111061696B (en) Method and device for analyzing transaction message log
CN110457175B (en) Service data processing method and device, electronic equipment and medium
KR102325258B1 (en) Method for an autonomic or ai-assisted validation or decision making regarding network performance of a telecommunications network and/or for an autonomic or ai-assisted troubleshooting or performance enhancement within a telecommunications network, telecommunications network, system, machine intelligence entity, visualization interface, computer program and computer-readable medium
CN111913824B (en) Method for determining data link fault cause and related equipment
CN112711496A (en) Log information full link tracking method and device, computer equipment and storage medium
CN114745295A (en) Data acquisition method, device, equipment and readable storage medium
CN109409948B (en) Transaction abnormity detection method, device, equipment and computer readable storage medium
CN112416557B (en) Method and device for determining call relation, storage medium and electronic device
CN113411209A (en) Distributed password service full-link detection system and method
CN110188033B (en) Data detection device, method, computer device, and computer-readable storage medium
US20080033995A1 (en) Identifying events that correspond to a modified version of a process
Rong et al. Locating the clues of declining success rate of service calls
CN113688012A (en) Call chain monitoring system and method
CN115687054A (en) Self-adaptive test method and device based on service segmentation and restoration
CN114819981A (en) Customer service problem processing method, device, equipment and storage medium
CN117312101B (en) Method and device for determining structure log, storage medium and electronic equipment
CN111045953A (en) Distributed test case execution system and method

Legal Events

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