Business playback method and device

By collecting and decoupling request parameters in business logs, a parallel playback queue is constructed, which solves the problem of low playback efficiency in complex business scenarios and achieves fast and efficient business problem location and maintenance.

CN118377684BActive Publication Date: 2024-09-27HUNDSUN TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410830542.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-09-27
Estimated Expiration
2044-06-25

AI Technical Summary

Technical Problem

The existing technology has low business playback efficiency in complex business scenarios, making it difficult to quickly locate problems. Especially in trading systems, single-threaded serial playback results in low efficiency and cannot meet the needs of rapid iterative updates.

Method used

By collecting business logs, extracting the request parameters of business participants, constructing playback objects and constructing playback queues, using threads to execute the playback queue in parallel, decoupling the requests of business participants, improving playback efficiency, and realizing parallel playback.

Benefits of technology

It achieves fast and efficient business playback in complex scenarios, accurately locates problems, improves business maintenance efficiency, and meets the need for rapid iterative updates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118377684B
    Figure CN118377684B
Patent Text Reader

Abstract

The embodiments of this specification provide a business playback method and device, wherein the business playback method includes: collecting business logs of a target business, and extracting business request parameters corresponding to multiple business participants participating in the target business from the business logs; constructing a business playback object corresponding to each business participant according to the business request parameters, and constructing a playback queue for the multiple business participants; calling a playback thread to execute the business playback objects corresponding to the business participants in the playback queue in sequence, and determining the playback business information associated with the target business according to the execution results; comparing the playback business information with the historical business information of the target business to obtain the business problem of the target business.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present specification relate to the field of computer technology, and in particular to a service playback method and device. Background Art

[0002] With the development of computer technology, more and more businesses are going online. In order to ensure the normal operation of the business in the online environment, offline playback test verification is usually performed at a set time node or by manual triggering. By screening out the traffic requests involved in the business according to the log records, constructing a new request, and re-executing the request process in the test environment, the playback result corresponding to the business can be obtained. Based on this, by comparing with the real results corresponding to the business, business problems can be quickly and accurately located. In the prior art, when replaying the business, it mainly relies on business logs for playback, or relies on the underlying logs of the database for playback; although these two methods can achieve the purpose of playback, in some more complex business scenarios, the amount of logs involved in the playback process is large, and it takes a long time, which makes it difficult to meet the needs of rapid iteration and update of the business. Therefore, an effective solution is urgently needed to solve the above problems. Summary of the invention

[0003] In view of this, the embodiments of this specification provide a service playback method. One or more embodiments of this specification also relate to a service playback device, a computing device, a computer-readable storage medium and a computer program product to solve the technical defects existing in the prior art.

[0004] According to a first aspect of an embodiment of this specification, a service playback method is provided, including:

[0005] Collecting a business log of a target business, and extracting business request parameters corresponding to a plurality of business participants participating in the target business from the business log;

[0006] Constructing a business playback object corresponding to each business participant according to the business request parameters, and constructing a playback queue for the multiple business participants;

[0007] Calling the playback thread to sequentially execute the business playback objects corresponding to the business participants in the playback queue, and determining the playback business information associated with the target business according to the execution result;

[0008] The playback service information is compared with the historical service information of the target service to obtain the service problem of the target service.

[0009] According to a second aspect of an embodiment of this specification, another service playback method is provided, including:

[0010] Collecting transaction business logs of transaction business, and extracting transaction request parameters corresponding to multiple transaction parties participating in the transaction business from the transaction business logs;

[0011] Constructing a transaction playback object corresponding to each transaction party according to the transaction request parameters, and constructing a playback queue for the multiple transaction parties;

[0012] Calling the playback thread to sequentially execute the transaction playback objects corresponding to the transaction parties in the playback queue, and determining the playback transaction information associated with the transaction business according to the execution results;

[0013] The replayed transaction information is compared with the historical transaction information of the transaction business to obtain the transaction business problem of the transaction business.

[0014] According to a third aspect of an embodiment of this specification, a service playback device is provided, including:

[0015] A collection module is configured to collect a business log of a target business and extract business request parameters corresponding to a plurality of business participants participating in the target business from the business log;

[0016] A construction module, configured to construct a business playback object corresponding to each business participant according to the business request parameters, and to construct a playback queue for the multiple business participants;

[0017] A determination module is configured to call a playback thread to sequentially execute the business playback objects corresponding to the business participants in the playback queue, and determine the playback business information associated with the target business according to the execution result;

[0018] The comparison module is configured to compare the playback service information with the historical service information of the target service to obtain the service problem of the target service.

[0019] According to a fourth aspect of the embodiments of this specification, another service playback device is provided, including:

[0020] A log collection module is configured to collect transaction business logs of transaction business, and extract transaction request parameters corresponding to multiple transaction parties participating in the transaction business from the transaction business logs;

[0021] An object building module is configured to build a transaction playback object corresponding to each transaction party according to the transaction request parameters, and to build a playback queue for the multiple transaction parties;

[0022] The information determination module is configured to call the playback thread to sequentially execute the transaction playback objects corresponding to the transaction parties in the playback queue, and determine the playback transaction information associated with the transaction business according to the execution results;

[0023] The information comparison module is configured to compare the replayed transaction information with the historical transaction information of the transaction business to obtain the transaction business problem of the transaction business.

[0024] According to a fifth aspect of an embodiment of this specification, a computing device is provided, including:

[0025] Memory and processor;

[0026] The memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the above-mentioned business playback method are implemented.

[0027] According to a sixth aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores computer-executable instructions, and when the instructions are executed by a processor, the steps of the above-mentioned business playback method are implemented.

[0028] According to a seventh aspect of the embodiments of this specification, a computer program product is provided, including a computer program or instructions, which implement the steps of the above-mentioned business playback method when executed by a processor.

[0029] The business playback method provided in this embodiment can collect the business log of the target business and extract the business request parameters corresponding to the multiple business participants participating in the target business from the business log in order to quickly playback the business in complex scenarios and locate business problems efficiently and accurately. At this time, in order to decouple the business requests corresponding to each business participant, the business playback object corresponding to each business participant can be constructed according to the business request parameters corresponding to each business participant. On this basis, in order to improve the playback efficiency, multiple business participants can be sequenced to achieve the construction of playback queues for multiple business participants. Then, the playback thread can be called to execute the business playback objects corresponding to the business participants in the playback queue in turn, so as to determine the playback business information associated with the target business according to the execution result. When performing the playback operation of the associated business log, the business playback objects corresponding to the business participants in each playback queue can be executed in parallel by the thread, so as to quickly obtain the playback business information. Finally, the playback business information is compared with the historical business information of the target business to obtain the business problem of the target business. When performing business playback operations, the parallel playback efficiency can be improved by decoupling the requests of multiple business participants. This allows the playback operation to be completed quickly and accurately in any complex scenario, and business problems to be located, thereby improving business maintenance efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1It is a schematic diagram of a service playback method provided by an embodiment of this specification;

[0031] Figure 2 is a flow chart of a service playback method provided by an embodiment of this specification;

[0032] Figure 3 It is a schematic diagram of information comparison in a service playback method provided by an embodiment of this specification;

[0033] Figure 4 is a flow chart of another service playback method provided by an embodiment of this specification;

[0034] Figure 5 It is a process flow chart of a service playback method provided by an embodiment of this specification;

[0035] Figure 6 It is a structural diagram of a service playback device provided by an embodiment of this specification;

[0036] Figure 7 It is a structural diagram of another service playback device provided by an embodiment of this specification;

[0037] Figure 8 It is a structural block diagram of a computing device provided by an embodiment of this specification. DETAILED DESCRIPTION

[0038] Many specific details are described in the following description to facilitate a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of this specification, so this specification is not limited to the specific implementation disclosed below.

[0039] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.

[0040] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0041] In addition, it should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in one or more embodiments of this specification are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0042] In this specification, a service playback method is provided. This specification also relates to a service playback device, a computing device, a computer-readable storage medium and a computer program product, which are described in detail one by one in the following embodiments.

[0043] In actual applications, when implementing offline environment playback testing, log playback at the database level or log playback with business is usually used. Among them, in the log playback operation at the database level, the operation log of the database is played back according to the log recorded in the database, such as the binlog log playback of MySQL, in order to restore the data in the database. In the log playback operation with business, in order to avoid playback failure, the transaction logs of the application will be filtered and sorted according to the timestamp, and the playback will be executed serially in chronological order. And considering the high requirements for the timing of functions in complex business scenarios, the current playback of such software functions can only be done in single-threaded serial playback, which has high limitations and is extremely demanding on the business scenarios of playback, and can only play back operations in some specific scenarios. Therefore, an effective solution is urgently needed to solve the above problems.

[0044] See also Figure 1As shown in the schematic diagram, the business playback method provided by this embodiment can collect the business log of the target business and extract the business request parameters corresponding to the multiple business participants participating in the target business from the business log in order to quickly playback the business in complex scenarios and locate business problems efficiently and accurately. At this time, in order to decouple the business requests corresponding to each business participant, the business playback object corresponding to each business participant can be constructed according to the business request parameters corresponding to each business participant. On this basis, in order to improve the playback efficiency, multiple business participants can be sequenced to achieve the construction of playback queues for multiple business participants. Then, the playback thread can be called to execute the business playback objects corresponding to the business participants in the playback queue in turn, so as to determine the playback business information associated with the target business according to the execution result. When performing the playback operation of the associated business log, the business playback objects corresponding to the business participants in each playback queue can be executed in parallel by the thread, so as to quickly obtain the playback business information. Finally, the playback business information is compared with the historical business information of the target business to obtain the business problem of the target business. When performing business playback operations, the parallel playback efficiency can be improved by decoupling the requests of multiple business participants. This allows the playback operation to be completed quickly and accurately in any complex scenario, and business problems to be located, thereby improving business maintenance efficiency.

[0045] See also Figure 2 , Figure 2 A flowchart of a service playback method provided according to an embodiment of the present specification is shown, which specifically includes the following steps.

[0046] Step S202: collect the service log of the target service, and extract service request parameters corresponding to a plurality of service participants participating in the target service from the service log.

[0047] The business playback method provided in this embodiment can be applied to any scenario that requires business playback operations, such as online problem troubleshooting and reproducing online bug scenarios; or rapid business regression and construction of real stress test traffic scenarios; or scenarios for detecting whether the information technology application innovation environment can meet online business needs (customers need to construct an information technology application innovation environment, first clean the logs of the non-information technology application innovation environment in production, assemble them into request objects, and then play them back to the offline information technology application innovation environment, and configure comparison objects according to verification requirements, compare the production results with the offline environment results, so as to detect whether the offline information technology application innovation environment can meet online business needs); or heterogeneous system switching, business continuity playback test verification scenarios (such as migrating data from the old system on day T to the new system, based on the old system on day T+1, the daily data constitutes a playback request, and replays and performs clearing operations in the new system. The accuracy of the heterogeneous system switching steps and data scripts can be verified).

[0048] The service playback method provided in this embodiment can be applied to any service playback scenario. This embodiment takes the playback operation of a transaction service in a transaction scenario as an example to illustrate the playback method, wherein the transaction service may be an online payment service, a securities transaction service, a loan transaction service, etc. The service playback operations in other scenarios may refer to the same or corresponding descriptions in this embodiment, and this embodiment does not make any limitation here.

[0049] Specifically, the target business specifically refers to a business that is participated in by multiple business participants and provides online services, including but not limited to payment business, trading business, securities business, etc. Correspondingly, the business log specifically refers to the relevant log of the target business recorded when the target business provides business services to the business participants, and the log contains all the request operation records of the business participants participating in the target business. Correspondingly, the business participant specifically refers to the user or customer who participates in the target business and enjoys the business services provided by the target business. Correspondingly, the business request parameter specifically refers to the relevant parameters involved in the request of the target business triggered in the time interval to which the corresponding business log belongs when each business participant participates in the target business. For example, in the trading business, customer A purchases fund A through the trading business platform during the time period T1~T2; if there is a bug in the trading system during the time period T1~T2, in order to troubleshoot the bug, the business log corresponding to the time period T1~T2 can be collected, and then the request triggered when customer A purchases fund A can be extracted from the business log, and the input and output parameters related to the request can be extracted, so as to facilitate subsequent playback processing, thereby accurately and quickly locating the bug for maintenance.

[0050] Based on this, in the transaction business scenario, due to the fast iteration of the transaction system version involved in the transaction business, the heavy system testing tasks, the wide testing scope and other issues, the business playback efficiency is relatively low. In the prior art, in order to locate business problems in the transaction system, the call will be implemented by log playback. The log playback is performed by obtaining the redo log stream transmitted by the database from the database. Each redo log in the redo log stream is used to record a data change operation performed in the main database. This log playback is only for the database log, for the database operation, and does not include the playback process of the business program log. Another type of log playback is the playback with the business program log, which is mainly played back in a single-threaded sequence through the function playback engine. Not only can it not fully simulate the production transaction status of the transaction, but also the function playback time for tens of millions of transaction systems is long and inefficient.

[0051] Therefore, in order to be able to quickly replay the business in complex scenarios and locate business problems efficiently and accurately, the business log of the target business can be collected, and the business request parameters corresponding to the multiple business participants participating in the target business can be extracted from the business log; at this time, in order to decouple the business requests corresponding to each business participant, the business playback object corresponding to each business participant can be constructed according to the business request parameters corresponding to each business participant. On this basis, in order to improve the playback efficiency, multiple business participants can be sequenced to achieve the construction of playback queues for multiple business participants; then the playback thread can be called to execute the business playback objects corresponding to the business participants in the playback queue in turn, so as to determine the playback business information associated with the target business according to the execution results; when performing the playback operation of the associated business log, the business playback objects corresponding to the business participants in each playback queue can be executed in parallel by threads, so as to quickly obtain the playback business information. Finally, the playback business information is compared with the historical business information of the target business to obtain the business problems of the target business.

[0052] Furthermore, when replaying the target business, considering that the purpose of replaying is to locate the business problem, and the timestamp of the business problem is known, during the replaying operation, only the business log corresponding to the time interval containing the timestamp needs to be selected to locate the business problem. In order to facilitate the operation of developers, a business management interface can be provided to developers so that developers can select business logs for replaying as needed. In this embodiment, the specific implementation method is as follows:

[0053] A playback request submitted through a business management interface corresponding to a target business is received, and a log filter item is generated according to the playback request; a log database associated with the target business is queried according to the log filter item, and a business log is obtained according to the query result.

[0054] Specifically, the business management interface refers to the management interface provided to developers for use when replaying the target business. The interface is used to provide developers with filtering items for business logs. Different filtering items can extract different types of log records to form business logs that need to be used for playback operations. Correspondingly, the log filtering item is the filtering item selected by the developer for the target business at the current moment. Correspondingly, the log database specifically refers to the database that stores logs related to the target business.

[0055] Based on this, when performing business playback operations on the target business, the playback task can be triggered by the developer. At this time, the playback request submitted by the developer through the business management interface corresponding to the target business can be received first. The log filter item can be determined according to the playback request. The log filter item can define the log range. Therefore, the log database associated with the target business can be queried according to the log filter item, and the business log can be obtained according to the query results, so that the business playback operation can be performed subsequently in combination with the business log.

[0056] In actual applications, developers can also configure the log source and the collected log range, date, specific customer-related logs, whether to collect response-related logs, etc. through the business management interface. This embodiment does not make any limitation here.

[0057] In summary, by providing a business management interface to developers, it is more convenient for developers to select business logs corresponding to the playback requirements when there is a business playback requirement, thereby effectively improving the flexibility of the playback operation.

[0058] Furthermore, when extracting the business request parameters corresponding to each business participant, in order to ensure that the business request parameters can accurately replay the business logic triggered by the business participant during the actual operation, the business request parameters can be constructed by combining the request parameters and the response parameters, and then subsequent playback simulation can be performed. In this embodiment, the specific implementation method is as follows:

[0059] Determine multiple business participants associated with the business log, and extract business request logs and business response logs from the business log; filter the business request logs to obtain request parameters corresponding to each business participant, and filter the business response logs to obtain response parameters corresponding to each business participant; based on the request parameters and the response parameters, compose business request parameters corresponding to each business participant; wherein the business request parameters corresponding to each business participant are sorted according to time information.

[0060] Specifically, the business request log refers to the log record in the business log used to record the request triggered by the business participant; correspondingly, the business response log refers to the log record in the business log used to record the response data of the business system corresponding to the target business in response to the request submitted by the business participant. Correspondingly, the request parameters are the input and output parameters involved when each business participant submits a request; correspondingly, the response parameters refer to the parameters involved in the feedback data of the request submitted by the business system to the business participant, and the response parameters are composed of two parts of parameters, one is the response message parameters fed back when the request parameters are submitted, and the other is the actual response parameters fed back by the simulation node for the request after the request is submitted to the simulation node (simulator); when the playback operation is performed on the target business, the real business processing operation can be simulated by the collected real response parameters, and then the real response parameters (response message parameters and actual response parameters) can be fed back to ensure the authenticity of the playback.

[0061] Based on this, after collecting the business logs associated with the target business, considering that there are many business participants involved in the target business, and only a small number of business participants may be involved in the time period associated with the business logs, in order to avoid complicating the business playback operation, multiple business participants associated with the business logs can be determined first; at the same time, in order to achieve the simulation authenticity of the playback, the business request log and the business response log can be extracted from the business log; at this time, the business request log can be filtered to obtain the request parameters corresponding to each business participant, and the business response log can be filtered to obtain the response parameters corresponding to each business participant; after obtaining the request parameters and response parameters corresponding to each business participant, the two can be combined to form the business request parameters corresponding to each business participant; so that the business playback processing can be performed in combination with the business request parameters corresponding to each business participant in the future.

[0062] During this process, considering that each business participant may trigger multiple requests, and each request actually has a time sequence when being executed, in order to be able to replicate the actual business operations of each business participant in the corresponding time interval of the business log during subsequent playback operations, the business request parameters corresponding to each business participant can be sorted according to the time information, so that the business processing logic of the time interval corresponding to the business log can be correctly simulated in time sequence later.

[0063] In actual applications, when the target business is a transaction business, the logs collected for the transaction business include but are not limited to gateway logs and quotation machine logs. After obtaining the business logs, the request logs in the business logs can be filtered to obtain the input and output parameters of each customer's request. At the same time, the quotation machine logs in the business logs can be filtered to obtain the response parameters corresponding to each customer. After that, the business request parameters corresponding to each customer can be constructed by combining the response parameters and the input and output parameters, so as to perform the subsequent transaction business playback operation.

[0064] In this process, after obtaining the request parameters (input and output parameters), since each customer may trigger multiple requests, the request parameters need to be sequenced in chronological order (sequence1) and stored for subsequent use. At the same time, a correspondence between the request parameters and the response parameters can be established, and the correspondence can be established through the entrustment number in the gateway log, and then stored, so that in the playback stage, the real transaction logic can be simulated through the request parameters and their associated response parameters. In other words, the above parameters can be used to simulate the real transaction return, so as to ensure that in the transaction scenario, the transaction quantity, transaction price, transaction status, etc. are consistent with the real results. On the premise of ensuring business consistency from the business dimension, the system problems existing in the business system can be accurately located.

[0065] For example, after the developer triggers the business playback task for the transaction business, the business log corresponding to the time interval from T1 to T2 can be collected first. And by detecting the business log, the request transactions involving customers 1 to 10 during this period can be determined. Further, the business log is cleaned. In the cleaning stage, the request log and the quotation machine log in the business log are filtered to obtain the request parameter 1 and response parameter 1 of the request triggered by customer 1, the request parameter 2 and response parameter 2 of the request triggered by customer 2...the request parameter 10 and response parameter 10 of the request triggered by customer 10. Then, considering that each customer may trigger multiple requests, the request parameters corresponding to each customer need to be sorted in chronological order so that the subsequent playback operation can be completed in chronological order. At the same time, it is also necessary to establish the association between the request parameter and the response parameter according to the entrustment number, so that in the simulation stage, it can ensure that the transaction quantity, transaction price, transaction status and other information are consistent with the real transaction scenario, so that the problems existing in the transaction business system can be more accurately located.

[0066] In summary, by extracting request parameters and response parameters to form the business request parameters corresponding to each business participant, it can be ensured that in the subsequent playback stage, the business processing logic in the real scenario is more accurately reflected, thereby ensuring more accurate business playback and ensuring the accuracy of business problem location.

[0067] Step S204: construct a business playback object corresponding to each business participant according to the business request parameters, and construct a playback queue for the multiple business participants.

[0068] Specifically, after extracting the business request parameters corresponding to each business participant from the business log as mentioned above, in order to improve the playback efficiency in the business playback stage and ensure that the requests corresponding to each business participant can be played back in chronological order, a business playback object corresponding to each business participant can be constructed according to the business request parameters first, so as to integrate the requests corresponding to each business participant through the business playback object. At the same time, queues can be divided for multiple business participants. By flexibly dividing the playback queues, it is convenient to subsequently call multiple playback threads to execute the business playback requests of the business participants in the queues, thereby improving the playback efficiency.

[0069] Among them, the business playback object specifically refers to a structure obtained by encapsulating multiple request parameters contained in the business request parameters corresponding to the business participant, and in the business playback request, the request parameters corresponding to the business participant are sorted in chronological order, so as to ensure that each request can be executed in sequence during the playback phase to simulate the real business request logic corresponding to the business participant. Correspondingly, the playback queue specifically refers to a queue composed of at least one business participant, and the playback queue can be one or more. The number of business participants contained in each playback queue can be determined according to the number of calling playback threads to ensure that each thread can process a playback queue, thereby ensuring that the business playback objects corresponding to the business participants contained in the playback queue can be executed sequentially and in parallel.

[0070] Furthermore, when constructing a business playback object for a business participant, it is considered that the business playback object is a basic element for replicating the relevant request operations performed by the business participant when participating in the target business. Therefore, it can be constructed in combination with the request parameters in the business request parameters, and the associated response parameters must also be sent to the control node so that the real interaction logic can be simulated during subsequent playback operations. In addition, after obtaining the business playback object corresponding to each business participant, when constructing the playback queue, in order to improve the playback effect, multiple queues can be constructed, thereby selecting multiple threads to execute the business playback objects associated with the queues in parallel. In this embodiment, the construction of the business playback object corresponding to any one of the multiple business participants includes: extracting the target request parameters from the target business request parameters corresponding to the target business participant, and constructing the business playback object corresponding to the target business participant according to the target request parameters;

[0071] After the step of extracting the business request parameters corresponding to the multiple business participants participating in the target business from the business log is executed, the method further includes: storing the response parameters contained in the business request parameters corresponding to each business participant to a control node, wherein the control node is used to be called during the stage of executing the business playback object in the playback thread;

[0072] Among them, building a playback queue for the multiple business participants includes: determining the number of participants corresponding to the multiple business participants, and the number of available threads in the thread pool associated with the target business; calculating the number of playback queues based on the number of participants and the number of threads, and building a playback queue for the multiple business participants according to the number of playback queues.

[0073] Specifically, the target business participant specifically refers to the business participant currently constructing the business playback object among multiple business participants. Correspondingly, the control node specifically refers to the node that executes the business playback object through the playback thread and interacts with the simulation node during the business playback phase. The node stores the response parameters and is used to simulate the real business interaction logic. Correspondingly, the number of participants specifically refers to the number corresponding to multiple business participants, and the number of threads specifically refers to the number of threads that can be called in the thread pool. Correspondingly, the number of playback queues specifically refers to the number of playback queues constructed for multiple business participants.

[0074] Based on this, in order to simulate the real business interaction logic, for any business participant, the target request parameters can be extracted from the target business request parameters corresponding to the target business participant, and the business playback object corresponding to the target business participant can be constructed according to the target request parameters.

[0075] After the business playback object is built for each business participant, in order to be able to match the actual business interaction logic during business playback, the response parameters contained in the business request parameters corresponding to each business participant can be stored in the control node, so that the control node can be called during the business playback object execution phase of the playback thread, thereby providing response parameters that match the business playback object executed at this phase, and completing the request playback operation of any business requester.

[0076] In addition, when building a playback queue, in order to ensure the parallel execution of business playback objects corresponding to multiple playback queues, the number of participants corresponding to multiple business participants and the number of available threads in the thread pool associated with the target business can be determined; at this time, the number of playback queues can be calculated based on the number of participants and the number of threads, and on this basis, playback queues can be built for multiple business participants according to the number of playback queues to meet subsequent execution requirements.

[0077] Following the above example, after obtaining the request parameters corresponding to each customer, all request parameters corresponding to each customer can be encapsulated to obtain business playback object 1 corresponding to customer 1, business playback object 2 corresponding to customer 2...business playback object 10 corresponding to customer 10; further, in order to simulate the real transaction operations corresponding to each customer, the response parameters corresponding to each customer trigger request can be sent to the control node for storage, so that matching response parameters can be provided to simulate the real transaction logic during playback. In addition, it is determined that there are 4 available threads in the thread pool, and there are 10 customers. Therefore, it is determined by calculation that 4 playback queues can be constructed, each queue containing 3 customers, so that when the thread executes the playback object, the playback operation can be performed on the playback objects corresponding to the 3 customers contained in the queue. Among them, playback queue 1 matches thread 1, including customer 1, customer 8 and customer 9; playback queue 2 matches thread 2, including customer 2, customer 7 and customer 10; playback queue 3 matches thread 3, including customer 3 and customer 6; playback queue 4 matches thread 4, including customer 4 and customer 5. You can then replay the data to locate transaction problems.

[0078] In summary, by calculating the number of playback queues based on the number of available threads and the number of participants, it is possible to ensure that a playback queue is allocated to each available thread, so that playback operations can be completed in parallel to improve playback efficiency.

[0079] Step S206, calling the playback thread to sequentially execute the business playback objects corresponding to the business participants in the playback queue, and determining the playback business information associated with the target business according to the execution result.

[0080] Specifically, after constructing the playback queue for each of the multiple business participants and determining the business playback object corresponding to each business participant, the simulator is used to construct the business playback object for each business participant, which can decouple the various business participants to the greatest extent, thereby ensuring that the various business participants are not related to each other. On this basis, the parallel playback of the business participants can be achieved, thereby effectively reducing the playback time. In other words, the playback thread can be called to execute the business playback object corresponding to the business participant in the playback queue, and multiple playback threads execute the business playback objects associated with the assigned playback queue in parallel, thereby improving the playback efficiency. After each playback thread completes the execution of its own matching business playback object, the playback business information associated with the target business can be determined based on the execution result. Subsequently, by comparing the playback business information with the real historical business information, the business problem can be quickly and accurately located.

[0081] The playback thread specifically refers to the available thread extracted from the thread pool for the playback queue. Correspondingly, the playback business information specifically refers to the execution result information obtained after the playback operation is performed on the business log. By comparing the playback result with the real result, the difference can be determined, so that the business problem can be quickly located.

[0082] Furthermore, when the playback thread is used to execute the business playback object, the request interaction logic of the corresponding business participant is actually replicated by cooperating with the simulation node and the control node, so as to achieve the playback purpose. In this embodiment, the process of the playback thread executing the business playback object corresponding to any business participant in the playback queue includes:

[0083] The associated business playback object corresponding to the associated business participant is executed through the playback thread, and the associated request parameters and the managed identification information in the associated business playback object are sent to the business simulation node; the associated request parameters are executed through the business simulation node, and the participant identification information and the managed identification information corresponding to the associated business participant are submitted to the control node according to the execution result; the associated response parameters corresponding to the associated request parameters are loaded through the control node according to the participant identification information and the managed identification information, and are fed back to the business simulation node; the associated response parameters are submitted to the business recording node associated with the target business through the business simulation node as the execution of the associated business playback object.

[0084] Specifically, the associated business participant specifically refers to the business participant corresponding to the business playback object currently executed by the playback thread. Correspondingly, the trustee identification information specifically refers to the new delegation number assigned when the playback thread executes the associated business playback object, which is used to ensure that the response parameters of the corresponding associated business participant can be read at the control node, thereby simulating the real business interaction logic. Correspondingly, the business simulation node specifically refers to a simulator that can execute related business logic in response to the corresponding request of the associated business participant, which is used to simulate the real business operation of the corresponding business log, so as to achieve the playback purpose.

[0085] Based on this, when the playback thread executes the business playback object corresponding to any business participant in the playback queue, the playback thread can first execute the associated business playback object corresponding to the associated business participant, and send the associated request parameters and the managed identification information in the associated business playback object to the business simulation node; at this time, the business simulation node will begin to simulate the real business interaction logic, realize the execution of the associated request parameters through the business simulation node, and submit the participant identification information and managed identification information corresponding to the associated business participant to the control node according to the execution result; because the control node stores the response parameters matched by the business log associated business participant request, the control node can load the associated response parameters corresponding to the associated request parameters according to the participant identification information and the managed identification information, and feedback to the business simulation node; finally, the business simulation node can submit the associated response parameters to the business record node associated with the target business as the execution of the associated business playback object. After each playback thread completes the execution of the business playback object in the playback queue, the subsequent business problem comparison can be carried out.

[0086] In actual applications, after encapsulating the request parameters corresponding to each business participant into a business playback object, you can call the thread to perform the playback operation. In the playback phase, you can create a number of playback queues based on the number of customers (the maximum number is not allowed to exceed the maximum number of threads in the thread pool), and then obtain threads from the thread pool for parallel playback, that is, the playback objects corresponding to the business participants in the queue are executed through the playback thread, and the new entrustment number needs to be stored at the same time. In this process, the number of business participant requests is sequenced (sequence2), and business participants with a large number of requests are processed first. Therefore, the request list data of the business participants is added to the queue in batches according to sequence2 in a loop (where the list data is added according to the sequence number of sequence1).

[0087] For any business participant, the request needs to be transferred to the simulator when executing through the thread. The simulator can request the control module through the participant ID and the new entrustment number corresponding to the business participant. The control module can query the response parameters corresponding to the request according to the participant ID and the new entrustment number and feed it back to the simulator. The simulator then feeds back to the quotation machine in chronological order to complete the request playback operation of the business participant, and so on. After the request playback operations corresponding to all business participants are completed, the business problem can be located and processed.

[0088] That is to say, when replaying the transaction business, considering the uncertainty of the response brought by the transaction matching (information asymmetry, mismatch between the needs and expectations of the two parties to the transaction, fluctuations in the market environment, etc.), which may affect the authenticity of the playback, the controller that interacts with the simulator can be configured to use the response parameters of the interaction between the controller and the simulator, and then the transaction status, price, quantity and other information can be fed back to the quotation to ensure that the real business call sequence and response processing sequence can be simulated during the playback phase. In addition, by simulating the exchange in the form of a simulator, the customer can be decoupled to the greatest extent. By decoupling the customer's transaction request, multi-threaded parallel playback can be supported, thereby improving the playback efficiency. In this process, the interaction between the controller and the simulator can generate the transaction data required in the playback process based on the collected production transaction data, and then feed it back to the quotation through the controller and the simulator, which can solve the problems of diverse financial transaction entrustment status, large price range and wide data range.

[0089] In summary, by cooperating with simulation nodes, control nodes, and business recording nodes to execute the business playback objects corresponding to the business participants, it is possible to implement playback operations with business, thereby truly simulating the real interaction logic, so that the real results and playback results can be compared later to quickly and accurately locate business problems.

[0090] Furthermore, after the business playback objects corresponding to each business participant have been played back, in order to be able to compare with the real business information of the target business and thus accurately locate the business problem, the playback string can be determined according to the execution result for subsequent comparison operations. In this embodiment, the specific implementation method is as follows:

[0091] Extracting playback service data from a service database associated with the target service according to the execution result; converting the playback service data into a playback character string corresponding to the target format, and using the playback character string as playback service information associated with the target service.

[0092] Specifically, the business database refers to the database used when replaying the target business, and the data writing, writing, and modifying operations in the database will be affected by the replay operation. Correspondingly, the replay business data refers to the business data corresponding to the business log after the replay operation. By analyzing this part of the business data, the business problem can be located. Correspondingly, the replay string refers to the string obtained after the format conversion of the replay business data.

[0093] Based on this, after the business playback object corresponding to the business participant in the playback queue is completed through the playback thread, in order to locate the subsequent business problem, the playback business data can be first extracted from the business database associated with the target business according to the execution result; because the playback business data is the business data that changes during the playback operation phase, the playback business data is converted into a playback string corresponding to the target format, and the playback string is used as the playback business information associated with the target business. Subsequently, by comparing the historical business data, the business problem can be located by replaying the operation of the corresponding business log.

[0094] Using the above example, when thread 1 executes the playback object corresponding to customer 1 in playback queue 1, the request corresponding to customer 1 will be sent to the simulator, and the simulator will request the control module through the ID_1 corresponding to customer 1 and the new order number B_1. At this time, the control module can determine the response parameters corresponding to the current execution request according to the ID_1 and the new order number B_1, and feed it back to the simulator. Similarly, when each request corresponding to customer 1 is simulated, the simulator will send the response parameters to the quotation machine in turn, thereby completing the transaction playback operation for customer 1. Similarly, after completing the playback operation for customers 2 to 10, the subsequent problem location operation can be carried out.

[0095] In summary, by performing playback operations in parallel, the playback operations of the corresponding business logs can be completed quickly and accurately, so that in complex business scenarios such as transactions, faster playback efficiency can be achieved, thereby effectively avoiding the impact of business iteration updates.

[0096] Step S208: Compare the playback service information with the historical service information of the target service to obtain the service problem of the target service.

[0097] Specifically, after obtaining the playback business information as described above, in order to quickly locate the business problem, the historical business information corresponding to the target business, that is, the real business information corresponding to the target business, can be loaded first. Then, the playback business information and the historical business information are compared to determine the business problem corresponding to the target business, so that the downstream can investigate and repair the target business. Among them, the historical business information specifically refers to the real business information corresponding to the target business. Correspondingly, the business problem specifically refers to the problem corresponding to the business platform in the system dimension.

[0098] Furthermore, when comparing historical business information with playback business information, a visualization rule can be set to display abnormal business information, thereby facilitating developers to locate and maintain business problems. In this embodiment, the specific implementation method is as follows:

[0099] Acquire historical business information of the target business; compare the historical business information with the playback business information, and determine abnormal business information based on the comparison result, wherein the abnormal business information is displayed according to set visualization rules; locate the business problem of the target business based on the abnormal business information.

[0100] Specifically, abnormal business information refers to business information that is determined to be inconsistent after comparing historical business information with playback business information. Correspondingly, setting visualization rules refers to rules for displaying abnormal business information to developers, such as by setting color highlighting, or bold display, or by pop-up window display, which is not limited in this embodiment.

[0101] Based on this, after obtaining the playback business information, the historical business information of the target business can be obtained; at this time, the historical business information can be compared with the playback business information, and the abnormal business information can be determined according to the comparison results, wherein the abnormal business information can be displayed according to the set visualization rules; and then the problem type is located for the abnormal business information to locate the business problem of the target business.

[0102] In actual applications, when comparing results, you can extract the data corresponding to the playback operation from the database and convert it into a json string, and extract the data corresponding to the actual operation and convert it into a json string. Use the string comparison tool to determine whether the strings are consistent, and you can quickly locate the problem. When comparing using the string comparison tool, you can set the display of inconsistent data rows.

[0103] Using the above example, after obtaining the json string corresponding to the playback operation, you can compare the json string of the playback operation with the json string of the actual operation corresponding to the transaction business. After determining the inconsistent data rows based on the comparison results, you can use Figure 3 The data is displayed in the manner shown, which is convenient for developers to browse. This allows quick identification of transaction problems, such as abnormal commission fees and commissions.

[0104] In summary, by setting visualization rules to display abnormal business information, it is easier for developers to quickly locate business problems, so that they can accurately repair the target business.

[0105] In addition, in order to accurately locate business problems, when collecting business logs, you can locate them according to the playback time interval, and then you can locate the business problem. After the business problem is located, you can also update the business configuration parameters in combination with the business update strategy, so that you can provide stable business services to business participants. In this embodiment, the specific implementation method is as follows:

[0106] Receive a service playback request submitted for a target service, and determine a playback time interval based on the service playback request; collect service logs of the target service according to the playback time interval; wherein, after the step of comparing the playback service information with the historical service information of the target service to obtain the service problem of the target service is performed, it also includes: receiving a service update strategy submitted for the service problem, and updating the service parameters of the target service configuration according to the service update strategy.

[0107] Specifically, the playback time interval specifically refers to the time interval corresponding to the playback operation requirements, and this interval is a reference element for extracting business logs. Correspondingly, the business update strategy specifically refers to the strategy for repairing configuration parameters for the target business, which can ensure that the updated business can provide stable services to business participants.

[0108] Based on this, during the business log extraction phase, a business playback request submitted for the target business can be received, and the playback time interval can be determined according to the business playback request; the business log of the target business can be collected according to the playback time interval. After that, the playback operation is performed based on the business log. After locating the business problem, the business update strategy submitted for the business problem can be received, so as to update the business parameters configured for the target business according to the business update strategy, and provide stable business services to business participants.

[0109] The business playback method provided in this embodiment can collect the business log of the target business and extract the business request parameters corresponding to the multiple business participants participating in the target business from the business log in order to quickly playback the business in complex scenarios and locate business problems efficiently and accurately. At this time, in order to decouple the business requests corresponding to each business participant, the business playback object corresponding to each business participant can be constructed according to the business request parameters corresponding to each business participant. On this basis, in order to improve the playback efficiency, multiple business participants can be sequenced to achieve the construction of playback queues for multiple business participants. Then, the playback thread can be called to execute the business playback objects corresponding to the business participants in the playback queue in turn, so as to determine the playback business information associated with the target business according to the execution result. When performing the playback operation of the associated business log, the business playback objects corresponding to the business participants in each playback queue can be executed in parallel by the thread, so as to quickly obtain the playback business information. Finally, the playback business information is compared with the historical business information of the target business to obtain the business problem of the target business. When performing business playback operations, the parallel playback efficiency can be improved by decoupling the requests of multiple business participants. This allows the playback operation to be completed quickly and accurately in any complex scenario, and business problems to be located, thereby improving business maintenance efficiency.

[0110] See also Figure 4 , Figure 4 A flowchart of another service playback method provided according to an embodiment of the present specification is shown, which specifically includes the following steps.

[0111] Step S402, collecting a transaction business log of the transaction business, and extracting transaction request parameters corresponding to multiple transaction parties participating in the transaction business from the transaction business log;

[0112] Step S404, constructing a transaction playback object corresponding to each transaction party according to the transaction request parameters, and constructing a playback queue for the multiple transaction parties;

[0113] Step S406, calling the playback thread to sequentially execute the transaction playback objects corresponding to the transaction parties in the playback queue, and determining the playback transaction information associated with the transaction business according to the execution result;

[0114] Step S408: Compare the replayed transaction information with the historical transaction information of the transaction business to obtain the transaction business problem of the transaction business.

[0115] The business playback method provided in this embodiment is applied to the transaction business scenario, and is used to play back the historical transaction operations involved in the transaction business, so that the playback transaction information generated by each customer during the transaction process can be accurately and efficiently reproduced, and the transaction business problems of the transaction business can be accurately located by comparison based on this. Among them, the description related to the business playback method provided in this embodiment can refer to the same or corresponding description in the above embodiment, and this embodiment will not be repeated in detail here.

[0116] The following combination Figure 5 , taking the application of the business playback method provided in this specification in the transaction business scenario as an example, the business playback method is further explained. Figure 5 A processing flow chart of a service playback method provided by an embodiment of the present specification is shown, which specifically includes the following steps.

[0117] Step S502: receiving a playback request submitted through a business management interface corresponding to a transaction business, and generating log filter items according to the playback request.

[0118] Step S504: query the log database associated with the transaction business according to the log screening item, and obtain the transaction business log according to the query result.

[0119] Step S506, determining multiple business participants associated with the transaction business log, and extracting a business request log and a business response log from the transaction business log.

[0120] Step S508: Filter the business request log to obtain the request parameters corresponding to each business participant, and filter the business response log to obtain the response parameters corresponding to each business participant.

[0121] Step S510: Based on the request parameters and the response parameters, form the business request parameters corresponding to each business participant; wherein the business request parameters corresponding to each business participant are sorted according to time information.

[0122] Step S512: construct a business playback object corresponding to each business participant according to the business request parameters.

[0123] Step S514, determining the number of participants corresponding to the multiple business participants and the number of thread pools of available thread pools in the thread pool associated with the target business.

[0124] Step S516, calculating the number of playback queues according to the number of participants and the number of thread pools, and constructing playback queues for multiple business participants according to the number of playback queues.

[0125] Step S518: calling the playback thread to sequentially execute the business playback objects corresponding to the business participants in the playback queue.

[0126] Specifically, the process of the playback thread executing the business playback object corresponding to any business participant in the playback queue includes: executing the associated business playback object corresponding to the associated business participant through the playback thread, and sending the associated request parameters and the managed identification information in the associated business playback object to the business simulation node; executing the associated request parameters through the business simulation node, and submitting the participant identification information and the managed identification information corresponding to the associated business participant to the control node according to the execution result; loading the associated response parameters corresponding to the associated request parameters according to the participant identification information and the managed identification information through the control node, and feeding back to the business simulation node; submitting the associated response parameters to the business recording node associated with the target business through the business simulation node as the execution of the associated business playback object.

[0127] Step S520: extracting playback business data from a business database associated with the transaction business according to the execution result.

[0128] Step S522: convert the playback service data into a playback character string corresponding to the target format, and use the playback character string as playback service information associated with the transaction service.

[0129] Step S524, comparing the replayed business information with the historical business information of the transaction business to obtain the transaction business problem of the transaction business.

[0130] Step S526, receiving a business update strategy submitted for a transaction business problem, and updating the transaction business parameters of the transaction business configuration according to the business update strategy.

[0131] In summary, in order to be able to quickly replay the business in complex scenarios and locate business problems efficiently and accurately, the business log of the target business can be collected, and the business request parameters corresponding to the multiple business participants participating in the target business can be extracted from the business log; at this time, in order to decouple the business requests corresponding to each business participant, the business playback object corresponding to each business participant can be constructed according to the business request parameters corresponding to each business participant. On this basis, in order to improve the playback efficiency, multiple business participants can be sequenced to achieve the construction of playback queues for multiple business participants; then the playback thread can be called to execute the business playback objects corresponding to the business participants in the playback queue in turn, so as to determine the playback business information associated with the target business according to the execution results; when performing the playback operation of the associated business log, the business playback objects corresponding to the business participants in each playback queue can be executed in parallel by threads, so as to quickly obtain the playback business information. Finally, the playback business information is compared with the historical business information of the target business to obtain the business problems of the target business. When performing business playback operations, the parallel playback efficiency can be improved by decoupling the requests of multiple business participants. This allows the playback operation to be completed quickly and accurately in any complex scenario, and business problems to be located, thereby improving business maintenance efficiency.

[0132] Corresponding to the above method embodiment, this specification also provides a service playback device embodiment. Figure 6 FIG. 1 is a schematic diagram showing the structure of a service playback device provided by an embodiment of the present specification. Figure 6 As shown, the device comprises:

[0133] The collection module 602 is configured to collect the service log of the target service and extract service request parameters corresponding to the multiple service participants participating in the target service from the service log;

[0134] A construction module 604 is configured to construct a business playback object corresponding to each business participant according to the business request parameters, and to construct a playback queue for the multiple business participants;

[0135] The determination module 606 is configured to call the playback thread to sequentially execute the business playback objects corresponding to the business participants in the playback queue, and determine the playback business information associated with the target business according to the execution result;

[0136] The comparison module 608 is configured to compare the playback service information with the historical service information of the target service to obtain the service problem of the target service.

[0137] In an optional embodiment, the acquisition module 602 is further configured to:

[0138] Determine multiple business participants associated with the business log, and extract business request logs and business response logs from the business log; filter the business request logs to obtain request parameters corresponding to each business participant, and filter the business response logs to obtain response parameters corresponding to each business participant; based on the request parameters and the response parameters, compose business request parameters corresponding to each business participant; wherein the business request parameters corresponding to each business participant are sorted according to time information.

[0139] In an optional embodiment, the construction of a business playback object corresponding to any one of the multiple business participants includes:

[0140] Extract target request parameters from the target business request parameters corresponding to the target business participant, and construct a business playback object corresponding to the target business participant according to the target request parameters; wherein, after the step of extracting the business request parameters corresponding to the multiple business participants participating in the target business in the business log is executed, it also includes: storing the response parameters contained in the business request parameters corresponding to each business participant to the control node, wherein the control node is used to be called when the playback thread executes the business playback object phase; wherein, constructing a playback queue for the multiple business participants includes: determining the number of participants corresponding to the multiple business participants, and the number of available threads in the thread pool associated with the target business; calculating the number of playback queues according to the number of participants and the number of threads, and constructing playback queues for the multiple business participants according to the number of playback queues.

[0141] In an optional embodiment, the playback thread executes a process of a business playback object corresponding to any business participant in the playback queue, including:

[0142] The associated business playback object corresponding to the associated business participant is executed through the playback thread, and the associated request parameters and the managed identification information in the associated business playback object are sent to the business simulation node; the associated request parameters are executed through the business simulation node, and the participant identification information and the managed identification information corresponding to the associated business participant are submitted to the control node according to the execution result; the associated response parameters corresponding to the associated request parameters are loaded through the control node according to the participant identification information and the managed identification information, and are fed back to the business simulation node; the associated response parameters are submitted to the business recording node associated with the target business through the business simulation node as the execution of the associated business playback object.

[0143] In an optional embodiment, the determining module 606 is further configured to:

[0144] Extracting playback service data from a service database associated with the target service according to the execution result; converting the playback service data into a playback character string corresponding to the target format, and using the playback character string as playback service information associated with the target service.

[0145] In an optional embodiment, the comparison module 608 is further configured to:

[0146] Acquire historical business information of the target business; compare the historical business information with the playback business information, and determine abnormal business information based on the comparison result, wherein the abnormal business information is displayed according to set visualization rules; locate the business problem of the target business based on the abnormal business information.

[0147] In an optional embodiment, the acquisition module 602 is further configured to:

[0148] Receive a service playback request submitted for a target service, and determine a playback time interval based on the service playback request; collect service logs of the target service according to the playback time interval; wherein, after the step of comparing the playback service information with the historical service information of the target service to obtain the service problem of the target service is performed, it also includes: receiving a service update strategy submitted for the service problem, and updating the service parameters of the target service configuration according to the service update strategy.

[0149] In an optional embodiment, the acquisition module 602 is further configured to:

[0150] A playback request submitted through a business management interface corresponding to a target business is received, and a log filter item is generated according to the playback request; a log database associated with the target business is queried according to the log filter item, and a business log is obtained according to the query result.

[0151] The business playback device provided in this embodiment can collect the business log of the target business and extract the business request parameters corresponding to the multiple business participants participating in the target business from the business log in order to quickly playback the business in complex scenarios and locate business problems efficiently and accurately. At this time, in order to decouple the business requests corresponding to each business participant, the business playback object corresponding to each business participant can be constructed according to the business request parameters corresponding to each business participant. On this basis, in order to improve the playback efficiency, multiple business participants can be sequenced to achieve the construction of playback queues for multiple business participants. Then, the playback thread can be called to execute the business playback objects corresponding to the business participants in the playback queue in turn, so as to determine the playback business information associated with the target business according to the execution result. When performing the playback operation of the associated business log, the business playback objects corresponding to the business participants in each playback queue can be executed in parallel by the thread, so as to quickly obtain the playback business information. Finally, the playback business information is compared with the historical business information of the target business to obtain the business problem of the target business. When performing business playback operations, the parallel playback efficiency can be improved by decoupling the requests of multiple business participants. This allows the playback operation to be completed quickly and accurately in any complex scenario, and business problems to be located, thereby improving business maintenance efficiency.

[0152] The above is a schematic scheme of a service playback device of this embodiment. It should be noted that the technical scheme of the service playback device and the technical scheme of the service playback method described above are of the same concept, and the details not described in detail in the technical scheme of the service playback device can be found in the description of the technical scheme of the service playback method described above.

[0153] Corresponding to the above method embodiment, this specification also provides another service playback device embodiment, Figure 7 FIG. 2 shows a schematic diagram of the structure of another service playback device provided by an embodiment of the present specification. Figure 7 As shown, the device comprises:

[0154] The log collection module 702 is configured to collect transaction business logs of transaction business, and extract transaction request parameters corresponding to multiple transaction parties participating in the transaction business from the transaction business logs;

[0155] The object building module 704 is configured to build a transaction playback object corresponding to each transaction party according to the transaction request parameters, and to build a playback queue for the multiple transaction parties;

[0156] The information determination module 706 is configured to call the playback thread to sequentially execute the transaction playback objects corresponding to the transaction parties in the playback queue, and determine the playback transaction information associated with the transaction business according to the execution result;

[0157] The information comparison module 708 is configured to compare the replayed transaction information with the historical transaction information of the transaction business to obtain the transaction business problem of the transaction business.

[0158] The above is a schematic scheme of another service playback device of this embodiment. It should be noted that the technical scheme of the service playback device and the technical scheme of the service playback method described above are of the same concept, and the details not described in detail in the technical scheme of the service playback device can be found in the description of the technical scheme of the service playback method described above.

[0159] Figure 8 The block diagram of a computing device 800 according to an embodiment of the present specification is shown. The components of the computing device 800 include but are not limited to a memory 810 and a processor 820. The processor 820 is connected to the memory 810 via a bus 830, and a database 850 is used to store data.

[0160] The computing device 800 also includes an access device 840 that enables the computing device 800 to communicate via one or more networks 860. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 840 may include one or more of any type of network interface (e.g., a network interface card (NIC)) of wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a world-wide interoperability for microwave access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, and a near field communication (NFC).

[0161] In one embodiment of the present specification, the above components of the computing device 800 and Figure 8 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Figure 8 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.

[0162] The computing device 800 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or a personal computer (PC). The computing device 800 may also be a mobile or stationary server.

[0163] The processor 820 is used to execute the following computer executable instructions, which, when executed by the processor, implement the steps of the above-mentioned business playback method.

[0164] The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the above-mentioned service playback method belong to the same concept, and the details not described in detail in the technical scheme of the computing device can be referred to the description of the technical scheme of the above-mentioned service playback method.

[0165] An embodiment of the present specification further provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the steps of the above-mentioned service playback method.

[0166] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the above-mentioned service playback method belong to the same concept, and the details not described in detail in the technical scheme of the storage medium can be referred to the description of the technical scheme of the above-mentioned service playback method.

[0167] An embodiment of the present specification also provides a computer program product, including a computer program or instructions, which implement the steps of the above-mentioned service playback method when executed by a processor.

[0168] The above is a schematic solution of a computer program product of this embodiment. It should be noted that the technical solution of the computer program product and the technical solution of the above-mentioned service playback method belong to the same concept, and the details not described in detail in the technical solution of the computer program product can be referred to the description of the technical solution of the above-mentioned service playback method.

[0169] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0170] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of patent practice. For example, in some regions, according to patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0171] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of this specification.

[0172] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0173] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that technicians in the relevant technical field can understand and use this specification well.

Claims

1. A service playback method, It is characterized in that include: Collecting the business log of the target business, determining multiple business participants associated with the business log, and extracting the business request log and the business response log from the business log; filtering the business request log to obtain the request parameters corresponding to each business participant, and filtering the business response log to obtain the response parameters corresponding to each business participant; based on the request parameters and the response parameters, forming the business request parameters corresponding to each business participant; wherein the business request parameters corresponding to each business participant are sorted according to time information; Extracting a target request parameter from the business request parameter, constructing a business playback object corresponding to each business participant according to the target request parameter, and constructing a playback queue for the multiple business participants; Calling the playback thread to sequentially execute the business playback objects corresponding to the business participants in the playback queue, and determining the playback business information associated with the target business according to the execution result; The playback service information is compared with the historical service information of the target service to obtain the service problem of the target service.

2. The service playback method according to claim 1, It is characterized in that Also includes: storing the response parameters contained in the business request parameters corresponding to each business participant in a control node, wherein the control node is used to be called when the playback thread executes the business playback object phase; The step of constructing a playback queue for the multiple business participants includes: Determine the number of participants corresponding to the multiple business participants and the number of threads available in the thread pool associated with the target business; The number of playback queues is calculated according to the number of participants and the number of threads, and playback queues are constructed for the multiple business participants according to the number of playback queues.

3. The service playback method according to claim 2, It is characterized in that The process of the playback thread executing the business playback object corresponding to any business participant in the playback queue includes: Execute the associated business playback object corresponding to the associated business participant through the playback thread, and send the associated request parameters and the trusteeship identification information in the associated business playback object to the business simulation node; Executing the association request parameters through the business simulation node, and submitting the participant identification information corresponding to the association business participant and the trusteeship identification information to the control node according to the execution result; Loading the association response parameters corresponding to the association request parameters according to the participant identification information and the trustee identification information through the control node, and feeding back to the business simulation node; The associated response parameters are submitted to the service recording node associated with the target service through the service simulation node as the execution of the associated service playback object.

4. The service playback method according to any one of claims 1 to 3, It is characterized in that The determining, according to the execution result, the playback service information associated with the target service includes: Extracting playback service data from a service database associated with the target service according to the execution result; The playback service data is converted into a playback character string corresponding to a target format, and the playback character string is used as playback service information associated with the target service.

5. The service playback method according to any one of claims 1 to 3, It is characterized in that The comparing the playback service information with the historical service information of the target service to obtain the service problem of the target service includes: Acquire historical business information of the target business; Comparing the historical service information with the replayed service information, and determining abnormal service information according to the comparison result, wherein the abnormal service information is displayed according to a set visualization rule; The business problem of the target business is located based on the abnormal business information.

6. The service playback method according to claim 1, It is characterized in that The business log of the target business is collected, including: Receiving a service playback request submitted for a target service, and determining a playback time interval according to the service playback request; Collecting the service log of the target service according to the playback time interval; Wherein, after the step of comparing the playback service information with the historical service information of the target service to obtain the service problem of the target service is performed, the step further includes: A service update strategy submitted for the service problem is received, and service parameters of the target service configuration are updated according to the service update strategy.

7. The service playback method according to any one of claims 1 to 3, It is characterized in that The business log of the target business is collected, including: Receiving a playback request submitted through a business management interface corresponding to a target business, and generating a log filter item according to the playback request; The log database associated with the target business is queried according to the log screening item, and the business log is obtained according to the query result.

8. A business playback method, It is characterized in that include: Collecting transaction business logs of transaction business, determining multiple transaction parties associated with the transaction business logs, and extracting transaction business request logs and transaction business response logs from the transaction business logs; filtering the transaction business request logs to obtain transaction request parameters corresponding to each transaction party, and filtering the transaction business response logs to obtain transaction response parameters corresponding to each transaction party; based on the transaction request parameters and the transaction response parameters, composing transaction request parameters corresponding to each transaction party; wherein the transaction request parameters corresponding to each transaction party are sorted according to time information; Extracting a target transaction request parameter from the transaction request parameter, constructing a transaction playback object corresponding to each transaction party according to the target transaction request parameter, and constructing a playback queue for the multiple transaction parties; Calling the playback thread to sequentially execute the transaction playback objects corresponding to the transaction parties in the playback queue, and determining the playback transaction information associated with the transaction business according to the execution results; The replayed transaction information is compared with the historical transaction information of the transaction business to obtain the transaction business problem of the transaction business.

9. A service playback device, It is characterized in that include: The collection module is configured to collect the business log of the target business, determine multiple business participants associated with the business log, and extract the business request log and the business response log from the business log; filter the business request log to obtain the request parameter corresponding to each business participant, and filter the business response log to obtain the response parameter corresponding to each business participant; based on the request parameter and the response parameter, form the business request parameter corresponding to each business participant; wherein the business request parameter corresponding to each business participant is sorted according to time information; A construction module is configured to extract a target request parameter from the business request parameter, construct a business playback object corresponding to each business participant according to the target request parameter, and construct a playback queue for the multiple business participants; A determination module is configured to call a playback thread to sequentially execute the business playback objects corresponding to the business participants in the playback queue, and determine the playback business information associated with the target business according to the execution result; The comparison module is configured to compare the playback service information with the historical service information of the target service to obtain the service problem of the target service.

10. A service playback device, It is characterized in that include: The log collection module is configured to collect transaction business logs of transaction business, determine multiple transaction parties associated with the transaction business logs, and extract transaction business request logs and transaction business response logs from the transaction business logs; filter the transaction business request logs to obtain transaction request parameters corresponding to each transaction party, and filter the transaction business response logs to obtain transaction response parameters corresponding to each transaction party; based on the transaction request parameters and the transaction response parameters, compose transaction request parameters corresponding to each transaction party; wherein the transaction request parameters corresponding to each transaction party are sorted according to time information; an object construction module configured to extract a target transaction request parameter from the transaction request parameter, construct a transaction playback object corresponding to each transaction party according to the target transaction request parameter, and construct a playback queue for the multiple transaction parties; The information determination module is configured to call the playback thread to sequentially execute the transaction playback objects corresponding to the transaction parties in the playback queue, and determine the playback transaction information associated with the transaction business according to the execution results; The information comparison module is configured to compare the replayed transaction information with the historical transaction information of the transaction business to obtain the transaction business problem of the transaction business.

11. A computing device, It is characterized in that include: Memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions. When the computer-executable instructions are executed by the processor, the steps of the method described in any one of claims 1 to 8 are implemented.

12. A computer-readable storage medium, It is characterized in that It stores computer executable instructions, which, when executed by a processor, implement the steps of the method described in any one of claims 1 to 8.

13. A computer program product, It is characterized in that The method comprises a computer program or an instruction, which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 8.