Method, device and equipment for determining service flow dependency relationship

By automatically acquiring and analyzing business flow data and determining dependencies between business entities, the problem of low efficiency in determining business flow dependencies in the existing technology is solved, and the real-time performance of fault identification and traffic playback is improved.

CN118740596AActive Publication Date: 2024-10-01ALIPAY (HANGZHOU) INFORMATION TECH CO LTD

Patent Information

Application Number
CN202410994409.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-23
Publication Date
2024-10-01
Estimated Expiration
2044-07-23

AI Technical Summary

Technical Problem

It is difficult for the existing technology to automatically and efficiently determine the business flow dependencies between business entities during the business processing process, resulting in low failure prevention and control efficiency.

Method used

By obtaining the traffic-related data of the business traffic processed by the service provider server within a preset time period, sorting according to the generation time, establishing correlation relationships, determining the core correlation fields, and automatically determining the dependencies between business flows based on the correlation relationships.

Benefits of technology

No manual identification is required, which significantly improves the efficiency of identification and establishment of business traffic dependencies, improves the real-time nature of fault identification and the accuracy of traffic playback.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740596A_ABST
    Figure CN118740596A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a service flow dependency relationship determination method, device and equipment. According to the scheme, the method comprises the following steps: sorting each service flow of a target service entity according to service flow generation time to obtain a first association relationship between the service flows; a second association relationship is established between target fields with the same field value in request flow data and response flow data aiming at different service flows; and further determining core associated fields which can be used for identifying a plurality of business flows involved in the process of handling the same business by the target business entity from the target fields, so that a second association relationship between the core associated fields and the first association relationship can be combined to identify the business flows related to the target business entity in the process of handling the same business. And the dependency relationship between the service flows of the target service entity is automatically and efficiently determined.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of traffic orchestration, and in particular to a method, device and equipment for determining business traffic dependencies. Background Art

[0002] With the continuous development of Internet technology, people have gradually begun to use the Internet platform to handle business. In the process of business handling, users often use terminal devices to interact with the service provider's server multiple times, so that the various business flows generated during the interaction often have a sequence and dependency relationship. At present, in order to timely identify and prevent possible faults and problems in the business handling process, staff at the service provider usually need to manually analyze the dependency relationship between the various business flows of the business entities involved in the business handling process, so as to replay the business flow according to the dependency relationship between the various business flows, thereby meeting the needs for fault prevention and control.

[0003] Based on this, how to automatically and efficiently determine the dependency between various business flows of business entities involved in the business handling process has become a technical problem that needs to be solved urgently. Summary of the invention

[0004] The embodiments of this specification provide a method, device and equipment for determining business flow dependencies, which can automatically and efficiently determine the dependencies between various business flows of business entities involved in the business handling process.

[0005] To solve the above technical problems, the embodiments of this specification are implemented as follows:

[0006] A method for determining a service flow dependency relationship provided by an embodiment of this specification includes:

[0007] Acquire flow-related data of each business flow of the target business entity processed by the server of the service provider within a preset time period; wherein the flow-related data includes: request flow data and response flow data;

[0008] Sort the service flows according to the service flow generation time to obtain a first correlation relationship between the service flows;

[0009] Establishing a second association relationship between the target fields having the same field value in the request flow data and the response flow data for different business flows;

[0010] Determining a core association field between different business flows from the target field; wherein the core association field is a field that can be used to identify multiple business flows involved in the process of handling the same business by the target business entity;

[0011] The dependency relationship between the service flows is determined based on the second association relationship and the first association relationship between the core association fields.

[0012] An embodiment of the present specification provides a device for determining a service flow dependency, including:

[0013] The first acquisition module is used to acquire flow-related data of each business flow of the target business entity processed by the server of the service provider within a preset time period; wherein the flow-related data includes: request flow data and response flow data;

[0014] A sorting module, used to sort each of the service flows according to the service flow generation time, and obtain a first correlation relationship between the service flows;

[0015] A relationship establishing module, used for establishing a second association relationship between the target fields having the same field value in the request flow data and the response flow data of different business flows;

[0016] A first determination module is used to determine a core association field between different business flows from the target field; wherein the core association field is a field that can be used to identify multiple business flows involved in the process of handling the same business by the target business entity;

[0017] The second determination module is used to determine the dependency relationship between the business flows according to the second association relationship and the first association relationship between the core association fields.

[0018] An embodiment of the present specification provides a device for determining a service flow dependency, including:

[0019] at least one processor; and,

[0020] a memory communicatively connected to the at least one processor; wherein,

[0021] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:

[0022] Acquire flow-related data of each business flow of the target business entity processed by the server of the service provider within a preset time period; wherein the flow-related data includes: request flow data and response flow data;

[0023] Sort the service flows according to the service flow generation time to obtain a first correlation relationship between the service flows;

[0024] Establishing a second association relationship between the target fields having the same field value in the request flow data and the response flow data for different business flows;

[0025] Determining a core association field between different business flows from the target field; wherein the core association field is a field that can be used to identify multiple business flows involved in the process of handling the same business by the target business entity;

[0026] The dependency relationship between the service flows is determined based on the second association relationship and the first association relationship between the core association fields.

[0027] At least one embodiment provided in this specification can achieve the following beneficial effects:

[0028] By sorting the various business flows of the target business entity according to the business flow generation time, the first correlation relationship between the business flows can be obtained; by establishing a second correlation relationship between the target fields with the same field value in the request flow data and response flow data of different business flows, and further determining from the target field a core correlation field that can be used to identify multiple business flows involved in the process of handling the same business by the target business entity, the dependency relationship between the various business flows of the target business entity can be automatically and efficiently determined by combining the second correlation relationship between the core correlation fields and the first correlation relationship. This solution is conducive to improving the efficiency of identifying and building the dependency relationship between the various business flows of the target business entity, because it does not require manual identification and building of the dependency relationship between the various business flows of the target business entity, thereby improving the real-time performance of flow playback of each business flow based on the dependency relationship between the various business flows of the target business entity, and further improving the real-time performance of identifying faults existing in the business handling process. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0030] Figure 1 A schematic diagram of an application scenario of a method for determining a service flow dependency relationship provided in an embodiment of this specification;

[0031] Figure 2A flowchart of a method for determining a service flow dependency relationship provided in an embodiment of this specification;

[0032] Figure 3 A schematic diagram of a dependency relationship between service flows provided in an embodiment of this specification;

[0033] Figure 4 The embodiments of this specification provide corresponding to Figure 2 A swimlane flow diagram of a method for determining business flow dependency in;

[0034] Figure 5 The embodiments of this specification provide corresponding to Figure 2 A schematic diagram of the structure of a device for determining a service flow dependency relationship;

[0035] Figure 6 The embodiments of this specification provide corresponding to Figure 2 A schematic diagram of a structure of a device for determining a business flow dependency. DETAILED DESCRIPTION

[0036] In order to make the purpose, technical solutions and advantages of one or more embodiments of this specification clearer, the technical solutions of one or more embodiments of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of one or more embodiments of this specification.

[0037] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.

[0038] In the existing technology, the Internet platform has complex business and a large user scale. It is difficult to prevent and control online faults, and the business impact caused by the faults is large. Therefore, the demand for fault prevention and control is even stronger. Among the many prevention and control capabilities, replaying the business traffic after traffic orchestration in a simulation environment is one of the effective means. Among them, the essence of business traffic can refer to the repeated visits to the objects of Internet business services. There are usually dependencies between these visits in terms of sequence and information transmission. If you simply randomly copy and replay each business traffic separately, it is usually impossible to "simulate" the production business scenario. Based on this, how to automatically and efficiently determine the dependency relationship between the various business traffic of the business entities involved in the business handling process has become a technical problem that needs to be solved urgently.

[0039] In order to solve the defects in the prior art, this solution provides the following embodiments:

[0040] Figure 1 A schematic diagram of an application scenario of a method for determining business traffic dependency provided in an embodiment of this specification.

[0041] like Figure 1 As shown, the service demander can use the terminal device 101 to interact with the server 102 of the service provider to handle the business and obtain the required service. Based on this, when the service provider needs to perform traffic orchestration and traffic playback on the business traffic generated during the business handling process, the target device 103 can be used to obtain the traffic-related data of each business traffic of the target business entity processed by the server 102 within a preset time period from the server 102 of the service provider; wherein the traffic-related data may include: request traffic data and response traffic data. The target device 103 can also sort each of the business traffic according to the business traffic generation time to obtain a first association relationship between the business traffic; and establish a second association relationship between the target fields with the same field value in the request traffic data and the response traffic data of different business traffic; and determine the core association field between different business traffic from the target field; wherein the core association field is a field that can be used to identify multiple business traffic involved in the process of handling the same business by the target business entity; so as to automatically determine the dependency relationship between the business traffic according to the second association relationship and the first association relationship between the core association fields.

[0042] Next, a method for determining a service flow dependency relationship provided in an embodiment of the specification will be specifically described with reference to the accompanying drawings:

[0043] Figure 2 The flowchart of a method for determining a service flow dependency relationship provided in an embodiment of the present specification is shown below. From a program perspective, the execution subject of the process can be a device of a service provider, or an application installed on the device of a service provider. Figure 2 As shown, the process may include the following steps:

[0044] Step 202: Obtaining traffic-related data of each service traffic of the target service entity processed by the server of the service provider within a preset time period; wherein the traffic-related data includes: request traffic data and response traffic data.

[0045] In the embodiments of this specification, the business flow of the target business entity may refer to the business request initiated by the business entity involved in the business handling process. The type of the target business entity may be set according to actual needs. For example, the target business entity may be a service provider or a service demander, or a business order between the two parties, or a specified process or step in the business order processing process, etc., and no specific limitation is made to this.

[0046] In practical applications, the business traffic may generally include HTTP messages (Hypertext TransferProtocol messages). Since HTTP messages may include: HTTP request messages and HTTP response messages, the traffic-related data of the business traffic may include: request traffic data and response traffic data. Among them, the request traffic data may refer to the http request data sent by the user end to the server end for requesting to obtain specified resources or services, and the response traffic data may refer to the response data generated by the server end after processing the user's http request data. Since the types of business requests involved in the handling of different businesses often differ, the specific contents of the traffic-related data of each business traffic of different target business entities often differ, and no specific limitation is made on this.

[0047] In the present embodiment, due to Figure 2 The method in the implementation should not interfere with the normal operation of the business. Therefore, the acquisition of the flow-related data of each business flow mentioned in step 202 does not mean to move or transfer the flow-related data of each business flow at the server, but means to obtain data consistent with the flow-related data of each business flow at the server while keeping the flow-related data of each business flow at the server unchanged, which is equivalent to generating backup data of the flow-related data of each business flow at the server. Similarly, Figure 2 The process of processing the traffic-related data of each business flow mentioned in the subsequent steps of the solution is not to directly process the traffic-related data of each business flow at the server, but to process the backup data obtained in step 202, which will not be elaborated here.

[0048] Step 204: Sort the service flows according to the service flow generation time to obtain a first correlation relationship between the service flows.

[0049] In the embodiments of this specification, since the dependency relationship between different business flows is related to the generation time sequence of each business flow, for example, under normal circumstances, business flows with a later generation time need to be generated by relying on the data of business flows with an earlier generation time, but business flows with an earlier generation time do not need to be generated by relying on the data of business flows with a later generation time, therefore, it is necessary to sort each business flow according to the corresponding business flow generation time to obtain the first correlation relationship between the business flows. Specifically, the first correlation relationship can be used to reflect whether any business flow is earlier or later than other business flows.

[0050] Step 206: Establish a second association relationship between the target fields having the same field value in the request flow data and the response flow data of different business flows.

[0051] In the embodiments of this specification, since the dependency relationship between different business flows is also related to the data that needs to be transmitted between different business flows, if there is a field with the same field value in any two business flows, then the field may belong to the target field used to characterize the dependency relationship between the above two business flows. Based on this, in order to ensure the comprehensiveness of the dependency relationship between different business flows found, a second association relationship can be established in advance between the target fields with the same field value in the request flow data and response flow data of different business flows. Among them, the second association relationship can be specifically used to reflect the target field that needs to be transmitted between any two business flows.

[0052] Step 208: Determine a core association field between different business flows from the target field; wherein the core association field is a field that can be used to identify multiple business flows involved in the process of handling the same business by the target business entity.

[0053] In the embodiments of the present specification, since the field values ​​of some fields in the traffic-related data of the business traffic are highly universal values, such as enumeration values ​​such as true / false, 0 / 1, or unique identification information of the product / service that the user needs to obtain, etc.; and the traffic-related data of the business traffic also includes some fields that do not need to be transmitted, such as timestamp information, etc., it is necessary to further identify from the target field the core-related fields that can be used to identify multiple business traffic involved in the process of handling the same business by the target business entity, so as to ensure the accuracy and simplicity of the established dependency relationship when establishing the dependency relationship between different business traffic based on the core-related fields, which is conducive to improving the operating efficiency of subsequent traffic playback based on the dependency relationship.

[0054] Step 210: Determine the dependency relationship between the business flows based on the second association relationship and the first association relationship between the core association fields.

[0055] In the embodiments of the present specification, since the dependency relationship between business flows is generated in combination with the second correlation relationship between core correlation fields and the first correlation relationship between different business flows, and the first correlation relationship can be used to reflect the generation time sequence between each business flow, and the second correlation relationship can be used to reflect the core correlation fields that need to be transmitted between each business flow involved in the process of handling the same business, based on the dependency relationship between the business flows, accurate flow orchestration can be achieved for each business flow involved in the process of handling the same business, thereby facilitating flow playback of the handling process of the business and timely identifying possible faults and problems in the handling process of such business.

[0056] Figure 2 The method in the invention does not require manual identification and establishment of dependency relationships among various business flows of the target business entity, which is conducive to improving the efficiency of identifying and establishing dependency relationships among various business flows of the target business entity, thereby improving the real-time performance of flow playback for various business flows based on the dependency relationships among various business flows of the target business entity, and further improving the real-time performance of identifying faults existing in the business handling process.

[0057] based on Figure 2 The method in this specification also provides some specific implementation plans of the method, which are described below.

[0058] Since under normal circumstances, the request traffic data of a business traffic with a later generation time will contain some fields in the response traffic data of a business traffic with an earlier generation time, based on this, the business traffic may include: a first business traffic and a second business traffic, and the business traffic generation time of the first business traffic is earlier than the traffic generation time of the second business traffic.

[0059] Correspondingly, step 206: establishing a second association relationship between the request flow data for different service flows and the target field having the same field value in the response flow data may specifically include:

[0060] A second association relationship is established between the target field having the same field value in the response traffic data of the first business traffic and the request traffic data of the second business traffic.

[0061] In addition, since the request traffic data of some business traffic generated later will also contain some fields in the request traffic data of business traffic generated earlier, step 206 may also include: establishing a second association relationship between the target field with the same field value in the request traffic data of the first business traffic and the request traffic data of the second business traffic.

[0062] In addition, there may be a situation where the response traffic data of some business traffic generated later needs to include some fields in the request traffic data and response traffic data of the business traffic generated earlier. Based on this, step 206 may also include: establishing a second association relationship between the target fields with the same field values ​​in the request traffic data of the first business traffic and the response traffic data of the second business traffic, and / or establishing a second association relationship between the target fields with the same field values ​​in the response traffic data of the first business traffic and the response traffic data of the second business traffic. This will not be elaborated.

[0063] In the embodiments of this specification, brute force enumeration is a simple and naive algorithm idea, also known as an exhaustive algorithm. The basic idea is to try all possible situations of the problem one by one and find a solution that meets the conditions. Since it can simply and directly consider all possible situations, it is usually suitable for problem-solving scenarios with smaller data scales. Based on this, when it is necessary to initially establish a correlation relationship between business flows with better comprehensiveness, a brute force enumeration algorithm can be used to implement it.

[0064] Specifically, establishing a second association relationship between a target field having the same field value in the response flow data of the first service flow and the request flow data of the second service flow may include:

[0065] For each first field in the response traffic data of the first business traffic, each first key-value pair is generated; wherein the first field corresponds one-to-one to the first key-value pair, the key data in the first key-value pair is the field name of the first field, and the value data in the first key-value pair is the field value of the first field.

[0066] For each second field in the request traffic data of the second business traffic, generate each second key-value pair; wherein the second field corresponds one-to-one to the second key-value pair, the key data in the second key-value pair is the field name of the second field, and the value data in the second key-value pair is the field value of the second field.

[0067] A brute force enumeration algorithm is used to perform consistency matching on the value data in each of the first key-value pairs and each of the second key-value pairs to obtain a matching result.

[0068] If the matching result indicates that the value data in any of the first key-value pairs is consistent with the value data in any of the second key-value pairs, a second association relationship is established between the key data in any of the first key-value pairs and the key data in any of the second key-value pairs.

[0069] In the embodiments of this specification, the response traffic data and the request traffic data usually include paired field names and field values, wherein the field name is used to reflect the type and meaning of the data, and the field value is used to reflect the specific value of a certain type of data. Since the key data (key) in the key-value pair can be used as an index of an element, and the value data (value) represents the value of the element stored and read, it has the advantages of being simple and easy to use, small in size, highly versatile, and good in scalability, and is suitable for scenarios where data needs to be quickly found and updated. Based on this, in order to improve the operating efficiency of the solution, the first field in the response traffic data of the first business traffic can be converted into a first key-value pair, and the second field in the request traffic data of the second business traffic can be converted into a second key-value pair, thereby violently enumerating multiple key data with the same value data in the first key-value pair and the second key-value pair.

[0070] Among them, when converting the first field into the first key-value pair, the field name of the first field needs to be used as the key data (key1) of the first key-value pair, and the field value of the first field needs to be used as the value data (value1) of the first key-value pair. Similarly, the field name of the second field can be used as the key data (key2) of the second key-value pair, and the field value of the second field can be used as the value data (value2) of the second key-value pair; this is not described in detail. If a brute force enumeration algorithm is used to identify that the value data of a first key-value pair is the same as that of a second key-value pair, that is, value1=value2, then a second association relationship can be established between key1 corresponding to value1 and key2 corresponding to value2.

[0071] It can be understood that although the value data of the first key-value pair and the second key-value pair are consistent, there may be differences between the key data of the two. For example, assume that there is a first key-value pair indicating "whether the user has paid successfully", and its corresponding value data uses 1 / 0 to indicate success / failure, and there is a second key-value pair indicating "whether the user is purchasing for the first time", and its corresponding field value uses 1 / 0 to indicate yes / no. At this time, although the value data of the first key-value pair and the second key-value pair may be the same (for example, both are 0, or both are 1), the meanings of the key data of the first key-value pair and the second key-value pair are not consistent (one indicates whether the user has paid successfully, and the other indicates whether the user is purchasing for the first time). At this time, the second association relationship established for the key data of the first key-value pair and the second key-value pair should generally not be used to establish a dependency relationship between the traffic data. Therefore, other methods need to be used to filter out this second association relationship with interfering properties in the future.

[0072] In addition, in other scenarios, even if the value data of the first key-value pair and the second key-value pair are consistent, and the meaning of the key data is consistent, there may be differences in the key data of the two, for example, one key data is "name" and the other key data is "name"; or one key data is "session object identifier" and the other is "session", etc., and then the second association relationship can be established based on the key data of the first key-value pair and the second key-value pair respectively, so as to improve the detailed procedures of the second association relationship. Alternatively, the key data of the first key-value pair corresponding to the response traffic data of the first business traffic can be preferentially selected to establish the second association relationship to reduce the amount of data, and there is no specific limitation on this.

[0073] Similarly, when it is necessary to establish a second association relationship between the response traffic data of the first business traffic and the response traffic data of the second business traffic, or when it is necessary to establish a second association relationship between the request traffic data of the first business traffic and the request / response traffic data of the second business traffic, the same principle can be used to implement it, and this will not be elaborated herein.

[0074] In the embodiments of this specification, since the handling of a single business transaction often involves multiple business entities, in actual applications, there may be a need to individually replay each business flow involved in a single business entity, and there may also be a need to collaboratively replay each business flow of multiple business entities involved in a single business transaction.

[0075] Based on this, the number of target business entities can be equal to 1, in which case the first business flow and the second business flow can belong to the same business entity; or, the number of target business entities can be greater than 1, in which case the first business flow and the second business flow can belong to the same business entity, and / or the first business flow and the second business flow can belong to different business entities.

[0076] In the embodiments of the present specification, when only the dependency relationship between the business flows of a single target business entity needs to be determined, it is obvious that regardless of whether the business flow generation time is early or late, the first business flow and the second business flow can belong to the same business entity. At this time, the second association relationship represents the data that may need to be transmitted between the business flows of the single target business entity.

[0077] When it is necessary to determine the dependency between the various business flows of multiple target business entities, at this time, in addition to identifying the dependency between the various business flows of the same target business entity, it is often necessary to identify the dependency between the business flows of different target business entities. Based on this, in addition to belonging to the same business entity, the first business flow and the second business flow can also belong to different business entities, so that the second association relationship can also represent the data that may need to be transmitted between the business flows of multiple target business entities, which will not be elaborated here.

[0078] Since the service provider's server often takes different amounts of time to respond to different business requests, there is a situation where the request traffic data of a certain business flow is generated earlier than the request traffic data of another business flow, but the response traffic data of the business flow is generated later than the response traffic data of another business flow. However, since each stage / step of the business process itself has a fixed execution order, and each request traffic data generated during the business process corresponds to each stage / step of the business process, the generation time of each request traffic data can more accurately reflect the dependency between each corresponding business flow.

[0079] Based on this, step 204: sorting the service flows according to the service flow generation time to obtain the first association relationship between the service flows may specifically include:

[0080] Obtain the timestamp information carried in the request flow data of each of the business flows.

[0081] The business flows are sorted according to the order of the timestamp information of the business flows from early to late, so as to obtain a first association relationship between the business flows.

[0082] In the embodiments of this specification, the timestamp information carried in the request traffic data is usually used to reflect the initiation time or generation time of the corresponding service request. Since in actual applications, it is usually necessary to replay the traffic of each service traffic in the order of initiation / generation time from early to late, therefore, each of the service traffic can be sorted in the order of the timestamp information in the request traffic data of each of the service traffic from early to late, so as to obtain the first correlation relationship between the service traffic. Of course, it is also possible to sort each of the service traffic in the order of the timestamp information in the request traffic data of each of the service traffic from late to early, so as to obtain the first correlation relationship between the service traffic, which will not be elaborated on.

[0083] In practical applications, in order to make the process of determining the dependency relationship between business flows simpler and clearer, the first association relationship is often established preferentially between the business flows of a single target business entity.

[0084] Based on this, if the number of the target business entities is greater than or equal to 1; then sorting the business flows in order from early to late according to the timestamp information of the business flows to obtain the first association relationship between the business flows may specifically include:

[0085] For any of the target business entities, the business flows initiated by any of the target business entities are sorted in order from early to late according to the timestamp information of the business flows initiated by any of the target business entities, so as to obtain a first association relationship between the business flows initiated by any of the target business entities.

[0086] In addition, the sorting of the service flows according to the time stamp information of the service flows from early to late to obtain the first association relationship between the service flows may also include:

[0087] For any two of the target service entities, it is determined whether the timestamp information of each of the service flows initiated by one of the target service entities is earlier than the timestamp information of each of the service flows initiated by the other target service entity.

[0088] If so, a first association relationship is established between the service flow initiated latest by the one target service entity and the service flow initiated earliest by the other target service entity.

[0089] In this embodiment, since there is no need to establish a first association relationship between any two business flows of different target business entities, the generation order of each business flow of different target business entities can be determined, which is convenient and efficient. Of course, when the number of the target business entities is greater than 1, a corresponding first association relationship can also be established between each of the business flows of different target business entities, which will not be described in detail.

[0090] In the embodiments of this specification, in order to simplify the dependency relationship between business flows, it is necessary to screen out the most core fields that must be transmitted between business flows from the target field as core association fields, so as to establish the dependency relationship between business flows based on the second association relationship between the core association fields. For ease of understanding, an implementation method for obtaining the core association field is provided herein.

[0091] Specifically, step 208: determining the core correlation fields between different service flows from the target fields may include:

[0092] For any of the target fields, judging whether the target field belongs to the core associated field according to the consistency between the historical field values ​​of the target field; and / or,

[0093] For any of the target fields, whether the target field belongs to the core associated field is determined based on the consistency between the actual field value of the target field in the business traffic and the simulated field value of the target field.

[0094] In the embodiment of this specification, since the core association field can be used to identify multiple business flows involved in the process of handling a certain business by the target business entity, the field value of the core association field corresponding to each business is usually not the same, that is, the field value of the core association field is usually unique.

[0095] Based on this, if the consistency of each historical field value of the target field in each historical business flow is good, it can be said that the field value of the target field in multiple historical business flows is the same, that is, the field value of the target field is not unique, so it can be determined that the target field does not belong to the core associated field. If the field values ​​of the target field in multiple historical business flows are different, it can be said that the target field may belong to the core associated field.

[0096] Alternatively, since the field value of the core-associated field is usually unique, this is often due to the fact that the field value of the core-associated field has a certain degree of randomness. Therefore, even if the same business traffic is replayed in a simulation environment, or the same server is used to process the same business traffic multiple times, the field value of the core-associated field in the obtained business traffic data is usually not the same. Therefore, the actual field value and the simulated field value of the target field can be obtained. If the two are consistent, that is, the field value of the target field is not random and unique, it can be determined that the target field does not belong to the core-associated field. If the two are inconsistent, it can be said that the target field may belong to the core-associated field.

[0097] In practical applications, judging whether the target field belongs to the core associated field according to the consistency between the historical field values ​​of the target field may specifically include:

[0098] Acquire historical traffic-related data of historical business traffic belonging to the same category as the business traffic to which the target field belongs.

[0099] Determine whether the field value compression ratio of the target field in the historical traffic related data is greater than a first threshold; wherein the field value compression ratio is the quotient of the number of types and the total number of field values ​​of the target field in the historical traffic related data; or,

[0100] It is determined whether the distribution difference of the field value of the target field in the historical traffic-related data in different time periods is greater than a second threshold.

[0101] In the embodiment of the present specification, since the meaning and value-taking principle of the same field of the same type of business traffic are consistent, when it is necessary to determine whether the target field obtained in step 202 belongs to a unique core associated field, it is necessary to obtain historical traffic-related data of historical business traffic of the same type as the business traffic to which the target field belongs.

[0102] If the field value of the target field is unique, the number of types of field values ​​of the target field in the historical traffic-related data of N historical business flows should be N. In this case, the quotient of the number of types of field values ​​of the target field in the historical business flows and the total number is N / N. If the field value of the target field is not unique, there are often cases where the field value of the target field in multiple historical business flows is the same. In this case, the number M of types of field values ​​of the target field in the historical traffic-related data of N historical business flows is usually less than N. In this case, the quotient of the number of types of field values ​​of the target field in the historical business flows and the total number is M / N. By comparison, it can be seen that if the quotient of the number of types of field values ​​of the target field in the historical business flows is large, it can usually be said that the field value of the target field is unique. In this case, the target field may be a core-related field.

[0103] Therefore, the quotient of the number of types and the total number of field values ​​of the target field in the historical business traffic can be used as the field value compression ratio of the target field, and when the field value compression ratio of the target field is greater than the first threshold, the target field is allowed to be used as a core-related field, and when the field value compression ratio of the target field is less than the first threshold, the target field is prohibited from being used as a core-related field. In addition, when the field value compression ratio of the target field is equal to the first threshold, it can be decided whether to allow the target field to be used as a core-related field based on actual needs, and there is no specific limitation on this.

[0104] In the embodiments of the present specification, if the field value of the target field is unique, the distribution of the field value of the target field carried by the historical business traffic generated in different time periods is usually quite different, and if the field value of the target field is not unique, the distribution of the field value of the target field carried by the historical business traffic generated in different time periods is usually quite different. Therefore, if the degree of difference in the distribution of the field value of the target field in different time periods is greater than the second threshold, the target field may be allowed to be used as a core associated field; and if the degree of difference in the distribution of the field value of the target field in different time periods is less than the second threshold, the target field may be prohibited from being used as a core associated field. In addition, when the degree of difference in the distribution of the field value of the target field in different time periods is equal to the second threshold, it may be decided whether to allow the target field to be used as a core associated field based on actual needs, and no specific limitation is made to this.

[0105] In practical applications, judging whether the target field belongs to the core associated field according to the consistency between the actual field value of the target field in the service traffic and the simulated field value of the target field may specifically include:

[0106] Obtain a simulation field value of the target field from a business simulation test platform; wherein the simulation field value is the field value of the target field contained in the synchronization data obtained by the business simulation test platform from the server of the service provider, and / or the simulation field value is the field value of the target field obtained by using the business simulation test platform to perform traffic playback processing on the business traffic to which the target field belongs.

[0107] The actual field value of the target field is obtained from the traffic-related data of the business traffic.

[0108] It is determined whether there is a difference between the actual field value of the target field and the simulated field value of the target field.

[0109] In an embodiment of the present specification, a business simulation test platform for traffic playback can be established. The business simulation test platform usually synchronizes the basic business data at the server of the service provider, thereby ensuring the consistency of the business simulation test platform and the server when processing the same business traffic, so that the traffic playback results generated by the business simulation test platform can be aligned with the traffic processing results generated by the real production environment.

[0110] Since the traffic-related data of business traffic may contain some basic business data, such as user basic information, product / service basic information, etc., these information are highly general and usually cannot be used to identify multiple business traffic involved in the process of handling the same business by the target business entity. Therefore, such fields are usually not used as core-related fields. Based on this, when the business traffic is played back using a business simulation test platform, if the simulation field value of the target field is obtained from the synchronization data at the business simulation test platform, and the simulation field value of the target field is consistent with the actual field value of the target field, it can be prohibited to use the target field as a core-related field.

[0111] In addition, when using the business simulation test platform to perform traffic playback processing on the business traffic, if the simulation field value of the target field is data generated by the business simulation test platform based on the request traffic data, and there is a difference between the simulation field value of the target field and the actual field value of the target field, the target field can be allowed to be used as the core-associated field; when the two are consistent, it can be prohibited to use the target field as the core-associated field.

[0112] In the embodiments of this specification, in addition to using the above embodiments to establish a second association relationship for reflecting the data that needs to be transmitted between different business flows, it is also possible to allow manual configuration of preset field information that needs to be transmitted between business flows of different target business entities as a third association relationship between business flows, which has good flexibility.

[0113] Specifically, if the number of the target business entities is greater than 1, before determining the dependency relationship between the business flows according to the second association relationship between the core association fields and the first association relationship, the method may further include:

[0114] Relationship configuration information of a third association relationship between at least part of the business flows of different target business entities is obtained; the relationship configuration information is used to configure preset field information required to be transmitted between the business flows of different target business entities.

[0115] Correspondingly, determining the dependency relationship between the service flows according to the second association relationship and the first association relationship between the core association fields may specifically include:

[0116] The dependency relationship between the business flows is determined based on the second association relationship, the first association relationship, and the third association relationship between the core association fields.

[0117] In the embodiments of this specification, the relationship configuration information can usually be set based on experience, and the preset field information can also be determined based on actual needs, and there is no specific limitation on this. In actual applications, the field information contained in the business traffic with an earlier generation time that needs to be passed to the business traffic with a later generation time can be used as the preset field information, or the above-mentioned field information that needs to be passed and the specified field information that needs to be filled in the above-mentioned field information in the business traffic with a later generation time can be combined as the preset field information, and there is no specific limitation on this. By determining the dependency relationship between the business traffic based on the second association relationship, the first association relationship and the third association relationship between the core association fields, it is beneficial to ensure the accuracy and comprehensiveness of the determined dependency relationship between the business traffic.

[0118] For ease of understanding, Figure 3 This is a schematic diagram of the dependency relationship between service flows provided in the embodiment of this specification. Figure 3As shown, assuming that a buyer generates a business order at a merchant, and the buyer needs a payee to pay for the business order, the business may involve three target business entities, namely, the merchant, the buyer and the payee. If the merchant has the business flow of "placing an order", the buyer has the two business flows of "page rendering" and "payment application", and the payee has the three business flows of "page rendering", "payment" and "view payment results", then the first association relationship may indicate that the generation time of the above six business flows is sequentially increased, and the second association relationship and the third association relationship may indicate that the order number field in the business flow of "placing an order" needs to be passed to the business flow of "page rendering" of the buyer, the first session object identifier (session) field in the business flow of "page rendering" of the buyer needs to be passed to the business flow of "payment application", the payment order number field in the business flow of "payment application" of the buyer needs to be passed to the business flow of "page rendering" of the payee, and the second session object identifier (session) field in the business flow of "page rendering" of the payee needs to be passed to the business flows of "payment" and "view payment results". Understandably, Figure 3 Only the dependency between some business flows involved in the payment scenario is illustrated, and should not be used as a specific limitation on the claims. In addition, the fields required to be transmitted between different business flows can be either one or multiple, and there is no specific limitation on this.

[0119] Traffic mirroring (Mirroring / traffic-shadow), also known as request mirroring, is based on the principle of capturing a copy of the incoming traffic on the data plane and forwarding the copy to the mirroring service without interference, so as to obtain mirrored traffic data that is consistent with the original traffic data without affecting the normal flow of the original traffic. Based on this, traffic mirroring technology can be used to obtain traffic-related data of the target business entity's business traffic from the service provider's server.

[0120] Specifically, step 202: obtaining flow-related data of each service flow of the target service entity processed by the server of the service provider within a preset time period may include:

[0121] By using the traffic mirroring technology, traffic-related data of the mirrored traffic corresponding to each service traffic processed by the server of the service provider within a preset time period is obtained.

[0122] According to the service traffic playback requirement information, the type information of the target service entity is determined.

[0123] The flow-related data of the mirrored traffic is divided according to the type information of the target service entity to obtain the flow-related data of each service flow of each target service entity.

[0124] In the embodiments of this specification, the business traffic playback demand information can generally be determined by the service provider based on the actual business traffic playback scenario and the actual business operation status, and the business traffic playback demand information can at least be used to reflect the type information of each target business entity to which the business traffic to be played back belongs. For example, the business traffic playback demand information can reflect the existence of target business entities such as merchants, buyers and payers for transaction services, or can include target business entities such as product orders, payment orders, and payment orders. Alternatively, the business traffic playback demand information can also reflect the existence of target business entities such as message publishers and message readers for social services. There is no specific limitation on this.

[0125] The dividing of the traffic-related data of the mirrored traffic according to the type information of the target service entity to obtain the traffic-related data of each service traffic of each target service entity may specifically include:

[0126] According to the type information of the target business entity, a designated field to which the entity unique identifier of the target business entity belongs is determined.

[0127] According to the field value of the specified field in the traffic-related data of the mirrored traffic, the traffic-related data of the mirrored traffic is divided to obtain the traffic-related data of each business traffic of each target business entity; wherein the field value of the specified field in the traffic-related data of any target business entity is consistent.

[0128] In the embodiments of this specification, since the flow-related data of each business flow usually includes a field for uniquely identifying each target business entity, in order to better manage the business flow of each target business entity, after the type of the target business entity is clarified, the designated field for uniquely identifying each type of target business entity can be further determined from the flow-related data. If the field value of the designated field in the flow-related data of multiple business flows is consistent, it can be indicated that these business flows belong to the same target business entity. Therefore, the various business flows obtained in step 202 can be divided based on the field value of the designated field, which will not be described in detail.

[0129] In the embodiment of the present specification, after step 210: determining the dependency relationship between the service flows, the following may also be included:

[0130] The dependencies between the business flows are sent to a business simulation test platform; the business simulation test platform is used to perform flow orchestration on each of the business flows according to the dependencies between the business flows, and to replay the business flows according to the flow orchestration results.

[0131] The time difference between the time when the server processes the service traffic and the time when the service simulation test platform replays the service traffic is less than a threshold.

[0132] In the embodiments of this specification, when performing traffic playback, it is usually necessary to ensure that each business traffic is played back step by step in the correct business order, and necessary field data must be passed between different steps. This process of ensuring the correct business order and passing necessary field data can be called traffic orchestration.

[0133] Since traffic mirroring technology can be used to obtain traffic-related data of each service flow at the service provider's server in real time, it can be used Figure 2 The scheme in the embodiment thereof determines the dependency relationship between each business flow in real time, so as to complete the flow scheduling and flow playback of each business flow in real time based on the dependency relationship between each business flow, which is convenient and fast.

[0134] In the embodiments of the present specification, since the interval between the generation time of the business traffic and the playback time is relatively short, it is possible to achieve the effect of making the business simulation test platform's playback processing of each business traffic "real-time" align with the actual generation environment under the premise of ultra-large-scale business volume. In addition to improving the real-time performance of fault identification, it also has the technical effect of improving the accuracy of fault identification due to the good matching between the traffic-related data of the business traffic and the synchronization data at the business simulation test platform.

[0135] Figure 4 The embodiments of this specification provide corresponding to Figure 2 A swimlane flow diagram of the method for determining the business traffic dependency in FIG. Figure 4 As shown, the service flow dependency determination process may involve execution entities such as a service provider's server, a target device, and a service simulation test platform.

[0136] In the dependency determination phase, the service provider's server can process the acquired request traffic data to obtain response traffic data. The service provider's target device can use traffic mirroring technology to obtain traffic-related data of the mirrored traffic corresponding to each service traffic processed by the server within a preset time period, wherein the traffic-related data may include request traffic data and response traffic data.

[0137] Subsequently, on the one hand, the business flows can be sorted according to the time stamp information in the request flow data of each business flow from early to late, so as to obtain the first association relationship between the business flows. On the other hand, a second association relationship can be established between the target field with the same field value in the response flow data of the first business flow and the request flow data of the second business flow; wherein the first business flow is a business flow in the business flow whose business flow generation time is earlier than that of the second business flow.

[0138] In addition, the target device can also obtain historical traffic-related data of historical business traffic belonging to the same category as the business traffic to which the target field belongs, as well as the simulated field value of the target field. If the field value compression ratio of the target field in the historical traffic-related data is greater than the first threshold, and the distribution difference degree of the field value of the target field in the historical traffic-related data in different time periods is greater than the second threshold, and there is a difference between the actual field value of the target field and the simulated field value of the target field, then the target field can be determined as a core-related field. So as to determine the dependency relationship between the business traffic based on the second association relationship and the first association relationship between the core-related fields.

[0139] During the traffic playback stage, the target device can send the dependencies between the business flows to the business simulation test platform, so that the business simulation test platform can orchestrate the traffic for each business flow according to the dependencies between the business flows, and replay the business traffic according to the traffic orchestration results.

[0140] Based on the same idea, the embodiments of this specification also provide a device corresponding to the above method. Figure 5 The embodiments of this specification provide corresponding to Figure 2 A schematic diagram of a structure of a device for determining a service flow dependency relationship. Figure 5 As shown, the device may include:

[0141] The first acquisition module 502 is used to acquire traffic-related data of each business traffic of the target business entity processed by the server of the service provider within a preset time period; wherein the traffic-related data includes: request traffic data and response traffic data.

[0142] The sorting module 504 is used to sort each of the service flows according to the service flow generation time to obtain a first correlation relationship between the service flows.

[0143] The relationship establishing module 506 is used to establish a second association relationship between the target fields having the same field value in the request flow data and the response flow data of different business flows.

[0144] The first determination module 508 is used to determine the core association field between different business flows from the target field; wherein the core association field is a field that can be used to identify multiple business flows involved in the process of handling the same business by the target business entity.

[0145] The second determination module 510 is used to determine the dependency relationship between the business flows according to the second association relationship and the first association relationship between the core association fields.

[0146] based on Figure 5 The present specification also provides some specific implementation schemes of the device, which are described below.

[0147] Optionally, the service traffic may include a first service traffic and a second service traffic, and a service traffic generation time of the first service traffic is earlier than a traffic generation time of the second service traffic.

[0148] Correspondingly, the relationship establishing module 506 may include:

[0149] A relationship establishing unit is used to establish a second association relationship between the target field having the same field value in the response flow data of the first business flow and the request flow data of the second business flow.

[0150] Optionally, the relationship establishing unit may be specifically used for:

[0151] For each first field in the response traffic data of the first business traffic, each first key-value pair is generated; wherein the first field corresponds one-to-one to the first key-value pair, the key data in the first key-value pair is the field name of the first field, and the value data in the first key-value pair is the field value of the first field.

[0152] For each second field in the request traffic data of the second business traffic, generate each second key-value pair; wherein the second field corresponds one-to-one to the second key-value pair, the key data in the second key-value pair is the field name of the second field, and the value data in the second key-value pair is the field value of the second field.

[0153] A brute force enumeration algorithm is used to perform consistency matching on the value data in each of the first key-value pairs and each of the second key-value pairs to obtain a matching result.

[0154] If the matching result indicates that the value data in any of the first key-value pairs is consistent with the value data in any of the second key-value pairs, a second association relationship is established between the key data in any of the first key-value pairs and the key data in any of the second key-value pairs.

[0155] Optionally, the sorting module 504 may include:

[0156] A first acquisition unit, used to acquire the timestamp information carried in the request flow data of each of the service flows;

[0157] The sorting unit is used to sort the business flows according to the time stamp information of the business flows from early to late, so as to obtain the first association relationship between the business flows.

[0158] Optionally, the number of the target business entities is greater than or equal to 1; and the sorting unit may be specifically configured to:

[0159] For any of the target business entities, the business flows initiated by any of the target business entities are sorted in order from early to late according to the timestamp information of the business flows initiated by any of the target business entities, so as to obtain a first association relationship between the business flows initiated by any of the target business entities.

[0160] Optionally, the first determining module 508 may include:

[0161] A first judgment unit is configured to judge, for any of the target fields, whether the target field belongs to the core associated field according to the consistency between the historical field values ​​of the target field; and / or,

[0162] The second judgment unit is used to judge, for any of the target fields, whether the target field belongs to the core associated field according to the consistency between the actual field value of the target field in the business traffic and the simulated field value of the target field.

[0163] Optionally, the first determining unit may be specifically configured to:

[0164] Acquire historical traffic-related data of historical business traffic belonging to the same category as the business traffic to which the target field belongs.

[0165] Determine whether the field value compression ratio of the target field in the historical traffic related data is greater than a first threshold; wherein the field value compression ratio is the quotient of the number of types and the total number of field values ​​of the target field in the historical traffic related data; or,

[0166] It is determined whether the distribution difference of the field value of the target field in the historical traffic-related data in different time periods is greater than a second threshold.

[0167] The second judgment unit may be specifically used for:

[0168] Obtain a simulation field value of the target field from a business simulation test platform; wherein the simulation field value is the field value of the target field contained in the synchronization data obtained by the business simulation test platform from the server of the service provider, and / or the simulation field value is the field value of the target field obtained by using the business simulation test platform to perform traffic playback processing on the business traffic to which the target field belongs.

[0169] The actual field value of the target field is obtained from the traffic-related data of the business traffic.

[0170] It is determined whether there is a difference between the actual field value of the target field and the simulated field value of the target field.

[0171] Optionally, the number of the target business entities may be greater than 1; Figure 5 The device may also include:

[0172] The second acquisition module is used to obtain relationship configuration information of the third association relationship between at least part of the business traffic of different target business entities; the relationship configuration information is used to configure preset field information required to be transmitted between the business traffic of different target business entities.

[0173] The second determination module 510 may be specifically configured to determine the dependency relationship between the service flows according to the second association relationship, the first association relationship, and the third association relationship between the core association fields.

[0174] Optionally, the first acquisition module 502 may include:

[0175] The second acquisition unit is used to acquire the flow-related data of the mirrored flow corresponding to each business flow processed by the server of the service provider within a preset time period by using the flow mirroring technology.

[0176] The determination unit is used to determine the type information of the target business entity according to the business flow playback demand information.

[0177] The dividing unit is used to divide the flow-related data of the mirrored flow according to the type information of the target business entity to obtain the flow-related data of each business flow of each target business entity.

[0178] Optionally, the division unit may be specifically used for:

[0179] According to the type information of the target business entity, a designated field to which the entity unique identifier of the target business entity belongs is determined.

[0180] According to the field value of the specified field in the traffic-related data of the mirrored traffic, the traffic-related data of the mirrored traffic is divided to obtain the traffic-related data of each business traffic of each target business entity; wherein the field value of the specified field in the traffic-related data of any target business entity is consistent.

[0181] Optional, Figure 5 The device described in the above method may further include:

[0182] A sending module is used to send the dependencies between the business flows to a business simulation test platform; the business simulation test platform is used to perform flow orchestration on each of the business flows according to the dependencies between the business flows, and to replay the business flows according to the flow orchestration results.

[0183] The time difference between the time when the server processes the service traffic and the time when the service simulation test platform replays the service traffic is less than a threshold.

[0184] Based on the same idea, the embodiments of this specification also provide a device corresponding to the above method.

[0185] Figure 6 The embodiments of this specification provide corresponding to Figure 2 A schematic diagram of a device for determining a service flow dependency relationship. Figure 6 As shown, the device 600 may include:

[0186] at least one processor 610; and,

[0187] A memory 630 is communicatively connected to the at least one processor; wherein,

[0188] The memory 630 stores instructions 620 executable by the at least one processor 610. The instructions are executed by the at least one processor 610 to enable the at least one processor 610 to:

[0189] Obtain flow-related data of each business flow of a target business entity processed by a server of a service provider within a preset time period; wherein the flow-related data includes: request flow data and response flow data.

[0190] The business flows are sorted according to the business flow generation time to obtain a first correlation relationship between the business flows.

[0191] A second association relationship is established between the target fields having the same field value in the request flow data and the response flow data for different business flows.

[0192] A core association field between different business flows is determined from the target field; wherein the core association field is a field that can be used to identify multiple business flows involved in the process of handling the same business by the target business entity.

[0193] The dependency relationship between the service flows is determined based on the second association relationship and the first association relationship between the core association fields.

[0194] Each embodiment in this specification is described in a progressive manner. The same or similar parts between the embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments. Figure 6 As for the device shown, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0195] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0196] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.

[0197] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0198] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0199] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0200] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0201] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0202] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0203] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0204] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0205] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0206] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0207] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0208] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0209] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A method for determining a service flow dependency, comprising: Acquire traffic-related data of each service flow of the target service entity processed by the server of the service provider within a preset time period; wherein the traffic-related data includes: request traffic data and response traffic data; Sort the service flows according to the service flow generation time to obtain a first correlation relationship between the service flows; Establishing a second association relationship between the target fields having the same field value in the request flow data and the response flow data for different business flows; Determining a core association field between different business flows from the target field; wherein the core association field is a field that can be used to identify multiple business flows involved in the process of handling the same business by the target business entity; The dependency relationship between the service flows is determined based on the second association relationship and the first association relationship between the core association fields.

2. The method according to claim 1, wherein the service flow comprises a first service flow and a second service flow, and a service flow generation time of the first service flow is earlier than a flow generation time of the second service flow; The establishing of a second association relationship between the request flow data for different business flows and the target field having the same field value in the response flow data specifically includes: A second association relationship is established between the target field having the same field value in the response traffic data of the first business traffic and the request traffic data of the second business traffic.

3. The method according to claim 2, wherein the second association relationship is established between the target field having the same field value in the response flow data of the first service flow and the request flow data of the second service flow, specifically comprising: For each first field in the response traffic data of the first service traffic, generate each first key-value pair; wherein the first field corresponds to the first key-value pair one by one, the key data in the first key-value pair is the field name of the first field, and the value data in the first key-value pair is the field value of the first field; For each second field in the request traffic data of the second service traffic, generate each second key-value pair; wherein the second field corresponds to the second key-value pair one-to-one, the key data in the second key-value pair is the field name of the second field, and the value data in the second key-value pair is the field value of the second field; Using a brute force enumeration algorithm, performing consistency matching on the value data in each of the first key-value pairs and each of the second key-value pairs to obtain a matching result; If the matching result indicates that the value data in any of the first key-value pairs is consistent with the value data in any of the second key-value pairs, a second association relationship is established between the key data in any of the first key-value pairs and the key data in any of the second key-value pairs.

4. The method according to claim 2, wherein the number of the target service entities is equal to 1, and the first service flow and the second service flow belong to the same service entity; or The number of the target business entities is greater than 1, the first business flow and the second business flow belong to the same business entity, and / or the first business flow and the second business flow belong to different business entities.

5. The method according to claim 1, wherein the sorting of each of the service flows according to the service flow generation time to obtain the first association relationship between the service flows specifically comprises: Obtaining timestamp information carried in the request flow data of each of the service flows; The business flows are sorted according to the order of the timestamp information of the business flows from early to late, so as to obtain a first association relationship between the business flows.

6. The method according to claim 5, wherein the number of the target business entities is greater than or equal to 1; The step of sorting the service flows according to the time stamp information of the service flows from early to late to obtain the first association relationship between the service flows specifically includes: For any of the target business entities, the business flows initiated by any of the target business entities are sorted in order from early to late according to the timestamp information of the business flows initiated by any of the target business entities, so as to obtain a first association relationship between the business flows initiated by any of the target business entities.

7. The method according to claim 1, wherein determining the core association fields between different service flows from the target fields specifically comprises: For any of the target fields, judging whether the target field belongs to the core associated field according to the consistency between the historical field values ​​of the target field; and / or, For any of the target fields, whether the target field belongs to the core associated field is determined based on the consistency between the actual field value of the target field in the business traffic and the simulated field value of the target field.

8. The method according to claim 7, wherein judging whether the target field belongs to the core associated field according to the consistency between the historical field values ​​of the target field specifically comprises: Acquire historical traffic related data of historical traffic belonging to the same category as the traffic to which the target field belongs; Determine whether the field value compression ratio of the target field in the historical traffic related data is greater than a first threshold; wherein the field value compression ratio is the quotient of the number of types and the total number of field values ​​of the target field in the historical traffic related data; or, It is determined whether the distribution difference of the field value of the target field in the historical traffic-related data in different time periods is greater than a second threshold.

9. The method according to claim 7, wherein judging whether the target field belongs to the core associated field according to the consistency between the actual field value of the target field in the service traffic and the simulated field value of the target field, specifically comprises: Obtaining a simulation field value of the target field from a business simulation test platform; wherein the simulation field value is a field value of the target field in synchronization data obtained by the business simulation test platform from a server of the service provider, and / or the simulation field value is a field value of the target field obtained by replaying the business traffic to which the target field belongs using the business simulation test platform; Acquire an actual field value of the target field from the traffic-related data of the service traffic; It is determined whether there is a difference between the actual field value of the target field and the simulated field value of the target field.

10. The method according to claim 1, wherein the number of the target business entities is greater than 1; Before determining the dependency relationship between the service flows according to the second association relationship and the first association relationship between the core association fields, the method further includes: Acquire relationship configuration information of a third association relationship between at least part of the business flows of different target business entities; the relationship configuration information is used to configure preset field information required to be transmitted between the business flows of different target business entities; The determining the dependency relationship between the service flows according to the second association relationship and the first association relationship between the core association fields specifically includes: The dependency relationship between the business flows is determined based on the second association relationship, the first association relationship, and the third association relationship between the core association fields.

11. The method according to claim 1, wherein the step of obtaining the flow-related data of each service flow of the target service entity processed by the server of the service provider within a preset time period specifically comprises: Using traffic mirroring technology, obtaining traffic-related data of mirrored traffic corresponding to each service traffic processed by the server of the service provider within a preset time period; Determine the type information of the target business entity according to the business traffic playback demand information; The flow-related data of the mirrored traffic is divided according to the type information of the target service entity to obtain the flow-related data of each service flow of each target service entity.

12. The method according to claim 11, wherein the flow-related data of the mirrored traffic is divided according to the type information of the target service entity to obtain the flow-related data of each service flow of each target service entity, specifically comprising: Determining, according to the type information of the target business entity, a designated field to which the entity unique identifier of the target business entity belongs; According to the field value of the specified field in the traffic-related data of the mirrored traffic, the traffic-related data of the mirrored traffic is divided to obtain the traffic-related data of each business traffic of each target business entity; wherein the field value of the specified field in the traffic-related data of any target business entity is consistent.

13. The method according to any one of claims 1 to 12, further comprising, after determining the dependency relationship between the service flows: Sending the dependency relationship between the business flows to a business simulation test platform; The business simulation test platform is used to perform traffic arrangement on each of the business flows according to the dependency relationship between the business flows, and to replay the business flows according to the traffic arrangement result; The time difference between the time when the server processes the service traffic and the time when the service simulation test platform replays the service traffic is less than a threshold.

14. A device for determining a service flow dependency, comprising: The first acquisition module is used to acquire flow-related data of each business flow of the target business entity processed by the server of the service provider within a preset time period; wherein the flow-related data includes: request flow data and response flow data; A sorting module, used to sort each of the service flows according to the service flow generation time, and obtain a first correlation relationship between the service flows; A relationship establishing module, used for establishing a second association relationship between the target fields having the same field value in the request flow data and the response flow data of different business flows; A first determination module is used to determine a core association field between different business flows from the target field; wherein the core association field is a field that can be used to identify multiple business flows involved in the process of handling the same business by the target business entity; The second determination module is used to determine the dependency relationship between the business flows according to the second association relationship and the first association relationship between the core association fields.

15. The device according to claim 14, wherein the service traffic comprises a first service traffic and a second service traffic, and a service traffic generation time of the first service traffic is earlier than a traffic generation time of the second service traffic; The relationship establishment module comprises: A relationship establishing unit is used to establish a second association relationship between the target field having the same field value in the response flow data of the first business flow and the request flow data of the second business flow.

16. The device according to claim 15, wherein the relationship establishing unit is specifically configured to: For each first field in the response flow data of the first service flow, each first key-value pair is generated; wherein, The first field corresponds to the first key-value pair in one-to-one correspondence, the key data in the first key-value pair is the field name of the first field, and the value data in the first key-value pair is the field value of the first field; For each second field in the request traffic data of the second service traffic, generate each second key-value pair; wherein the second field corresponds to the second key-value pair one-to-one, the key data in the second key-value pair is the field name of the second field, and the value data in the second key-value pair is the field value of the second field; Using a brute force enumeration algorithm, performing consistency matching on the value data in each of the first key-value pairs and each of the second key-value pairs to obtain a matching result; If the matching result indicates that the value data in any of the first key-value pairs is consistent with the value data in any of the second key-value pairs, a second association relationship is established between the key data in any of the first key-value pairs and the key data in any of the second key-value pairs.

17. The apparatus according to claim 14, wherein the sorting module comprises: A first acquisition unit, used to acquire the timestamp information carried in the request flow data of each of the service flows; The sorting unit is used to sort the business flows according to the time stamp information of the business flows from early to late, so as to obtain the first association relationship between the business flows.

18. The apparatus according to claim 17, wherein the number of the target business entities is greater than or equal to 1; The sorting unit is specifically used for: For any of the target business entities, the business flows initiated by any of the target business entities are sorted in order from early to late according to the timestamp information of the business flows initiated by any of the target business entities, so as to obtain a first association relationship between the business flows initiated by any of the target business entities.

19. The apparatus according to claim 14, wherein the first determining module comprises: A first judgment unit, configured to judge, for any of the target fields, whether the target field belongs to the core associated field according to the consistency between the historical field values ​​of the target field; and / or, The second judgment unit is used to judge, for any of the target fields, whether the target field belongs to the core associated field according to the consistency between the actual field value of the target field in the business traffic and the simulated field value of the target field.

20. The device according to claim 19, wherein the first determining unit is specifically configured to: Acquire historical traffic related data of historical traffic belonging to the same category as the traffic to which the target field belongs; Determine whether the field value compression ratio of the target field in the historical traffic related data is greater than a first threshold; wherein, The field value compression ratio is the quotient of the number of types and the total number of field values ​​of the target field in the historical traffic related data; or, Determine whether the distribution difference of the field value of the target field in the historical traffic-related data in different time periods is greater than a second threshold; The second judgment unit is specifically used to: Obtaining a simulation field value of the target field from a business simulation test platform; wherein the simulation field value is a field value of the target field in synchronization data obtained by the business simulation test platform from a server of the service provider, and / or the simulation field value is a field value of the target field obtained by replaying the business traffic to which the target field belongs using the business simulation test platform; Acquire an actual field value of the target field from the traffic-related data of the service traffic; It is determined whether there is a difference between the actual field value of the target field and the simulated field value of the target field.

21. The apparatus according to claim 14, wherein the number of the target business entities is greater than 1; The device also includes: A second acquisition module is used to acquire relationship configuration information of a third association relationship between at least part of the service flows of different target service entities; The relationship configuration information is used to configure the preset field information required to be transmitted between the service flows of different target service entities; The second determining module is specifically used to: The dependency relationship between the business flows is determined based on the second association relationship, the first association relationship, and the third association relationship between the core association fields.

22. The device according to claim 14, wherein the first acquisition module comprises: A second acquisition unit, configured to acquire, by using traffic mirroring technology, traffic-related data of mirrored traffic corresponding to each service traffic processed by the server of the service provider within a preset time period; A determination unit, used to determine type information of a target business entity according to business flow playback demand information; The dividing unit is used to divide the flow-related data of the mirrored flow according to the type information of the target business entity to obtain the flow-related data of each business flow of each target business entity.

23. The device according to claim 22, wherein the dividing unit is specifically configured to: Determining, according to the type information of the target business entity, a designated field to which the entity unique identifier of the target business entity belongs; According to the field value of the specified field in the traffic-related data of the mirrored traffic, the traffic-related data of the mirrored traffic is divided to obtain the traffic-related data of each service traffic of each target service entity; wherein, The field value of the designated field in the traffic-related data of any of the target business entities is consistent.

24. The apparatus of any one of claims 14 to 23, further comprising: A sending module, used for sending the dependency relationship between the business flows to a business simulation test platform; The business simulation test platform is used to perform traffic arrangement on each of the business flows according to the dependency relationship between the business flows, and to replay the business flows according to the traffic arrangement result; The time difference between the time when the server processes the service traffic and the time when the service simulation test platform replays the service traffic is less than a threshold.

25. A device for determining a service flow dependency, comprising: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: Acquire traffic-related data of each service flow of the target service entity processed by the server of the service provider within a preset time period; wherein the traffic-related data includes: request traffic data and response traffic data; Sort the service flows according to the service flow generation time to obtain a first correlation relationship between the service flows; Establishing a second association relationship between the target fields having the same field value in the request flow data and the response flow data for different business flows; Determining a core association field between different business flows from the target field; wherein the core association field is a field that can be used to identify multiple business flows involved in the process of handling the same business by the target business entity; The dependency relationship between the service flows is determined based on the second association relationship and the first association relationship between the core association fields.

Citation Information

Patent Citations

  • Service flow control method and apparatus

    CN105580376A

  • Business receipt processing method and device, computer equipment and storage medium

    CN111177302A

  • Bank data processing method and device, electronic equipment and storage medium

    CN112905645A

  • Traffic playback method and device, electronic equipment and storage medium

    CN115883687A

  • Traffic playback method and device, and computer readable storage medium

    CN118093375A

Cited By

  • Method and system for automatically discovering incidence relation between data tables

    CN121092638A