Service directory migration method and device, computer device, readable storage medium and program product
By constructing a service dependency graph and calculating risk values, the service catalog migration order is optimized, which solves the problem that service calls and dependencies are not fully considered in traditional methods, and achieves higher migration reliability and accuracy.
Patent Information
- Application Number
- CN202611444332.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-17
- Publication Date
- 2026-11-20
AI Technical Summary
Traditional service catalog migration methods fail to adequately consider the calling and dependency relationships between different services, leading to reduced reliability of the migration process.
By acquiring the service catalog to be migrated and its multi-source data, a service dependency graph is constructed, the risk value of the service nodes is determined, and the service catalog is reconstructed based on the risk value to optimize the migration order and improve reliability.
This improved the accuracy and reliability of service catalog migration and reduced the impact on business system operations.
Smart Images

Figure CN123145302A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of big data technology, and in particular to a service catalog migration method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Technology
[0002] With the development of information technology service management technology, more and more organizations are using service catalogs to manage their business systems, application services, and related infrastructure in a unified manner. These catalogs record information such as service level, responsible person, approval process, and associated resources for each service. When upgrading an information technology service management platform or migrating a service catalog, it is usually necessary to migrate service information from the old catalog to the new one to achieve unified management of service information.
[0003] Traditional methods typically involve exporting service data from the old service catalog, converting the service information in the old catalog to the corresponding data format in the new service catalog using methods such as field mapping, and then migrating each service to the new service catalog according to pre-determined migration batches. For example, different migration batches can be divided according to the department or business type to which the service belongs, and after the migration is completed, information such as service level and service associations can be manually configured.
[0004] However, traditional service catalog migration methods typically determine the migration order based on the service's own attributes or category, making it difficult to fully consider the calling relationships and dependencies between different services. When a service with seemingly low importance is depended upon by a business service with high importance, classifying it as a low-priority service and migrating it first based on its own attributes may affect other services that depend on it, thereby reducing the reliability of the service catalog migration process. Summary of the Invention
[0005] Therefore, it is necessary to provide a service directory migration method, apparatus, computer equipment, computer-readable storage medium, and computer program product that can improve the reliability of service directory migration in response to the above-mentioned technical problems.
[0006] Firstly, this application provides a service catalog migration method, including:
[0007] Obtain the service directory to be migrated and the multi-source data related to the service directory to be migrated; the multi-source data is generated during the configuration management process and operation of each service.
[0008] Based on the service directory to be migrated and the multi-source data, the association relationship between each service in the service directory to be migrated is determined, and a service dependency graph is constructed according to each service and the association relationship; the service dependency graph includes at least one service node and association edges connecting each service node, and each service node corresponds to a service in the service directory to be migrated.
[0009] Based on the service dependency graph, a first risk value for each service node and a second risk value corresponding to the upstream node of each service node are determined, and a target risk value corresponding to each service node is obtained based on the first risk value and the second risk value.
[0010] Based on the target risk value corresponding to each service node, the service directory to be migrated is reconstructed to obtain the target service directory.
[0011] Based on the target service catalog and the target risk value, the service functions in the business system will be migrated.
[0012] In one embodiment, the multi-source data includes configuration association data, runtime call data, and business link data corresponding to each service; the step of determining the association relationships between services in the service to be migrated based on the service directory to be migrated and the multi-source data, and constructing a service dependency graph based on each service and the association relationships, includes:
[0013] Based on the configuration association data, the configuration topology relationship between the application, database and host corresponding to each service is determined;
[0014] The runtime call data is parsed to determine the call relationships between the services.
[0015] The business link data is parsed to determine the occurrence of the same business identifier in the business link data corresponding to each service, and the business link corresponding to the business identifier is determined based on the occurrence.
[0016] Based on the configuration topology, the invocation relationship, and the business link, the association relationship between each service is determined;
[0017] Using each of the services as service nodes, and determining the call edges between each service node based on the association between the services, the service dependency graph is constructed.
[0018] In one embodiment, determining a first risk value for each service node and a second risk value corresponding to the upstream node of each service node based on the service dependency graph, and obtaining a target risk value for each service node based on the first risk value and the second risk value, includes:
[0019] Obtain the business value parameters and time-sensitive parameters corresponding to each of the service nodes;
[0020] Based on the business value parameters and the time-sensitive parameters, calculate the first risk value corresponding to each of the service nodes;
[0021] Based on the service dependency graph, determine the upstream node corresponding to each service node, and calculate the second risk value of the upstream node;
[0022] Based on the first risk value and the second risk value, calculate the target risk value corresponding to each of the service nodes.
[0023] In one embodiment, determining the upstream node corresponding to each service node based on the service dependency graph, and calculating the second risk value of the upstream node, includes:
[0024] Determine the dependency strength between each upstream node and its corresponding service node;
[0025] Obtain the risk transmission attenuation parameters and the target risk value corresponding to each upstream node;
[0026] The second risk value corresponding to each upstream node is calculated based on the target risk value, the risk transmission attenuation parameter, and the corresponding dependence strength.
[0027] In one embodiment, the step of reconstructing the service directory to be migrated based on the target risk value corresponding to each service node to obtain the target service directory includes:
[0028] Obtain the functional description information corresponding to each of the services, and determine the semantic features corresponding to each of the services based on the functional description information;
[0029] Based on the target risk value corresponding to each service node and the semantic features corresponding to each service, the services are grouped to obtain multiple service groups.
[0030] Based on each of the service groups, the service directory to be migrated is hierarchically restructured to obtain the target service directory.
[0031] In one embodiment, the migration of service functions in the business system based on the target service catalog and the target risk value further includes:
[0032] Construct a shadow service directory based on the target service directory;
[0033] Historical business data is acquired, and a simulated flow is performed in the shadow service directory based on the historical business data to obtain the simulated flow result;
[0034] When the simulation results meet the preset verification conditions, the migration batches corresponding to each service in the business system are determined based on the target service directory, and the service functions in the business system are migrated according to the migration batches and the target service directory.
[0035] Secondly, this application also provides a service directory migration apparatus, the apparatus comprising:
[0036] The acquisition module is used to acquire the service directory to be migrated and multi-source data related to the service directory to be migrated; the multi-source data is generated during the configuration management process and operation of each service.
[0037] The graph construction module is used to determine the association relationship between services in the service directory to be migrated based on the service directory to be migrated and the multi-source data, and to construct a service dependency graph based on each service and the association relationship; the service dependency graph includes at least one service node and association edges connecting each service node, and each service node corresponds to a service in the service directory to be migrated.
[0038] The risk calculation module is used to determine a first risk value for each service node and a second risk value corresponding to the upstream node of each service node based on the service dependency graph, and to obtain a target risk value for each service node based on the first risk value and the second risk value.
[0039] The service reconstruction module is used to reconstruct the service directory to be migrated based on the target risk value corresponding to each service node, so as to obtain the target service directory;
[0040] The migration module is used to migrate services in the business system based on the target service catalog and the target risk value.
[0041] In one embodiment, the multi-source data includes configuration association data, runtime call data, and business link data corresponding to each service; the graph construction module includes:
[0042] The first relationship determination unit is used to determine the configuration topology relationship between the application, database and host corresponding to each service based on the configuration association data.
[0043] The first parsing unit is used to parse the runtime call data and determine the call relationship between the services.
[0044] The second parsing module is used to parse the business link data, determine the occurrence of the same business identifier in the business link data corresponding to each service, and determine the business link corresponding to the business identifier based on the occurrence.
[0045] The first relationship determination unit is used to determine the association relationship between each of the services based on the configuration topology relationship, the call relationship, and the business link;
[0046] The relationship graph is constructed by using each of the services as service nodes and determining the call edges between the service nodes according to the association between the services, thereby constructing the service dependency relationship graph.
[0047] In one embodiment, the risk calculation module includes:
[0048] The parameter acquisition unit is used to acquire the business value parameters and time-sensitive parameters corresponding to each of the service nodes.
[0049] The first risk calculation unit is used to calculate the first risk value corresponding to each of the service nodes based on the business value parameter and the time-sensitive parameter.
[0050] The second risk calculation unit is used to determine the upstream node corresponding to each service node according to the service dependency graph, and to calculate the second risk value of the upstream node;
[0051] The target risk calculation unit is used to calculate the target risk value corresponding to each of the service nodes based on the first risk value and the second risk value.
[0052] In one embodiment, the second risk calculation unit includes:
[0053] The strength determination subunit is used to determine the dependency strength between each upstream node and its corresponding service node.
[0054] The upstream parameter acquisition subunit is used to acquire the risk transmission attenuation parameter and the target risk value corresponding to each upstream node;
[0055] The risk value calculation subunit is used to calculate the second risk value corresponding to each of the upstream nodes based on the target risk value corresponding to each upstream node, the risk transmission attenuation parameter, and the corresponding dependence strength.
[0056] In one embodiment, the service reconstruction module includes:
[0057] An information acquisition unit is used to acquire functional description information corresponding to each of the services, and to determine the semantic features corresponding to each of the services based on the functional description information;
[0058] The analysis unit is used to group the services based on the target risk value corresponding to each service node and the semantic features corresponding to each service, thereby obtaining multiple service groups.
[0059] A hierarchical construction unit is used to perform hierarchical reconstruction of the service directory to be migrated based on each of the service groups, so as to obtain the target service directory.
[0060] In one embodiment, the migration module further includes:
[0061] A shadow directory construction unit is used to construct a shadow service directory based on the target service directory;
[0062] The simulation flow unit is used to acquire historical business data and perform simulated flow based on the historical business data in the shadow service directory to obtain the simulated flow result;
[0063] The business processing unit is used to determine the migration batch corresponding to each service in the business system based on the target service directory when the simulated flow result meets the preset verification conditions, and to migrate the services in the business system according to the migration batch and the target service directory.
[0064] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the method in any of the above embodiments.
[0065] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method in any of the above embodiments.
[0066] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the methods in any of the above embodiments.
[0067] The aforementioned service catalog migration method, apparatus, computer equipment, computer-readable storage medium, and computer program product acquire the service catalog to be migrated and multi-source data related to it. Based on this data, they determine the relationships between services and construct a service dependency graph, enabling processing of each service based on these relationships. Furthermore, when calculating the target risk value, the method further determines the second risk value corresponding to the upstream node of each service node based on the service dependency graph, ensuring the target risk value reflects both the impact of each service node itself and the influence of upstream nodes. This avoids inaccurate risk assessments based solely on the risk value determined for each service node. Additionally, the service catalog to be migrated is reconstructed based on the target risk values for each service node, resulting in a target service catalog, thus improving the accuracy and reliability of the service catalog migration. Finally, the migration of service functions in the business system is performed based on the target service catalog and target risk values. The migration order can be determined by considering the risk level of each service, reducing the impact of service migration on the business system's operation and improving migration reliability. Attached Figure Description
[0068] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0069] Figure 1 This is a flowchart illustrating a service directory migration method in one embodiment;
[0070] Figure 2 This is a flowchart illustrating a method for constructing a service dependency graph in one embodiment;
[0071] Figure 3 This is a flowchart illustrating the target risk value calculation method in one embodiment;
[0072] Figure 4 This is a flowchart illustrating the second risk value method in one embodiment;
[0073] Figure 5 This is a flowchart illustrating a service directory reconstruction method in one embodiment;
[0074] Figure 6 This is a flowchart illustrating a service migration method in one embodiment;
[0075] Figure 7 This is a structural block diagram of a service directory migration device in one embodiment;
[0076] Figure 8 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0077] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application. It should be noted that existing industry solutions such as software, components, and models may be mentioned in the embodiments of this application. These should be considered exemplary and are intended only to illustrate the feasibility of implementing the technical solutions of this application, but do not imply that the applicant has already used or necessarily used such solutions.
[0078] The terms "first," "second," etc., used in this application may be used to describe various elements, but these elements are not limited by these terms. These terms are used only to distinguish the first element from the second element. The terms "comprising" and "having," and any variations thereof, used in this application, are intended to cover non-exclusive inclusion. The term "multiple" used in this application refers to two or more. The term "and / or" used in this application refers to one of the embodiments, or any combination of multiple embodiments.
[0079] In one embodiment, such as Figure 1 As shown, a service directory migration method is provided. This embodiment illustrates the method applied to a terminal, but it is understood that the method can also be applied to a server, and to a system including both a terminal and a server, and is implemented through interaction between the terminal and the server. In this embodiment, the method includes the following steps:
[0080] Step 102: Obtain the service directory to be migrated and the multi-source data related to the service directory to be migrated; the multi-source data is generated during the configuration management process and operation of each service.
[0081] The service directory to be migrated refers to a collection of services organized and managed according to a preset directory structure. This directory includes multiple service directory items, each corresponding to a service and recording service information such as the service name, service identifier, service level, responsible person, approval process, and associated resources. Different service directory items can also form a hierarchical relationship based on their category, service type, or management level.
[0082] For example, the service directory to be migrated may include an application service directory and a basic resource service directory. The application service directory includes service items such as account query service and order processing service, while the basic resource service directory includes service items such as database service and hosting service. Through the service directory to be migrated, each service can be found and managed according to a preset directory structure, and the corresponding service information can be obtained.
[0083] After obtaining the service catalog to be migrated, multi-source data related to each service in the catalog can also be obtained. Specifically, based on the services recorded in the service catalog, relevant data generated by each service during the configuration management and operation processes can be obtained to reflect the relationships between services through data from different sources. This multi-source data includes one or more of the following: configuration association data, runtime call data, and business link data.
[0084] Furthermore, configuration association data is used to characterize the configuration topology relationships corresponding to each service. For example, the association relationships between hosts, databases, and applications can be obtained from the data generated during configuration management to determine the configuration associations corresponding to each service. Runtime call data is used to characterize the call behavior of each service during operation. For example, the call relationships between different services can be determined from the call chain data generated during service operation. Business link data is used to characterize the association relationships of each service during business processing. For example, based on the business processing logs generated during business processing, it can be determined which services the data corresponding to the same business passes through, thereby determining the business links corresponding to each service.
[0085] Step 104: Based on the service directory to be migrated and multi-source data, determine the relationship between the services in the service directory to be migrated, and construct a service dependency graph according to each service and the relationship. The service dependency graph includes at least one service node and the associated edges connecting each service node, and each service node corresponds to a service in the service directory to be migrated.
[0086] The services are not independent of each other during operation; different services can form relationships due to configuration dependencies, runtime calls, or joint participation in business processes. For example, one service can call another service during operation, or multiple services can jointly participate in the same business process. The service directory to be migrated mainly records each service and its corresponding service information, which is insufficient to fully reflect the relationships formed between services during actual configuration management and operation. Therefore, multi-source data related to the service directory to be migrated can be used to determine the relationships between services.
[0087] After determining the relationships between services, each service in the service directory to be migrated can be used as a service node, and the relationships between services can be represented as edges between corresponding service nodes, thus constructing a service dependency graph. These edges can represent the calls or dependencies between corresponding service nodes. The service dependency graph represents the services in the service directory to be migrated and their relationships, providing a foundation for subsequently determining the upstream nodes and risk values for each service node.
[0088] Step 106: Based on the service dependency graph, determine the first risk value of each service node and the second risk value corresponding to the upstream node of each service node, and obtain the target risk value corresponding to each service node based on the first risk value and the second risk value.
[0089] The risk value characterizes the risk level of a service node in the service dependency graph. The first risk value characterizes the risk level of the service node itself, and the second risk value characterizes the impact of upstream nodes that are related to the service node on its risk level. An upstream node is a service node in the service dependency graph that is connected to the current service node via an edge and is located upstream of the current service node. For example, when the first service node calls the second service node, the first service node can be identified as the upstream node corresponding to the second service node. A service node can correspond to one upstream node or multiple upstream nodes.
[0090] Because different services have calling or dependency relationships during actual operation, the risk level of the current service node is not only related to the current service node itself, but may also be affected by upstream nodes that are related to the current service node. For example, a service node may have a low risk level, but if it is called by an upstream node with a higher risk level, an anomaly in the service node may further affect the corresponding upstream node. Therefore, determining the risk level solely based on the risk of the current service node itself may not fully reflect the risk situation of the service node in the service dependency graph. Based on this, when determining the target risk value of the current service node, in addition to considering the first risk value corresponding to the current service node itself, a second risk value corresponding to the upstream node is also considered, so that the obtained target risk value can simultaneously represent the risk impact of both the current service node itself and the upstream nodes.
[0091] Optionally, after obtaining the first risk value and the second risk value corresponding to the current service node, the first risk value and the second risk value can be summed to obtain the target risk value corresponding to the current service node. That is, the target risk value can include the risk portion corresponding to the current service node itself and the risk impact portion corresponding to one or more upstream nodes of the current service node, so that the target risk value can reflect the comprehensive risk level of the current service node in the service dependency graph.
[0092] Step 108: Based on the target risk value corresponding to each service node, reconstruct the service directory to be migrated to obtain the target service directory.
[0093] The service catalog to be migrated is typically formed based on the original service categories, organizational structure, or historical management methods. As the calling relationships, dependencies, and business chains between services change, the original grouping methods or directory hierarchy in the service catalog to be migrated may not accurately reflect the actual risk level of each service in the current service dependencies. For example, a service may be classified as a normal service in the original service catalog, but because this service is called by an upstream node with a higher risk level, its corresponding target risk value may be higher. If the service is still organized according to the original grouping method of the service catalog to be migrated, it will not reflect the actual risk situation of the service in the current service dependencies.
[0094] Therefore, after determining the target risk value for each service node, the service grouping method and directory hierarchy in the service directory to be migrated can be further adjusted based on the target risk value for each service node, so that the target service directory can reorganize each service in combination with the risk level of each service in the current service dependency relationship.
[0095] In this embodiment, reconstructing the service directory to be migrated refers to redetermining the grouping method and directory hierarchy of each service in the service directory to be migrated. Optionally, services can be grouped according to the target risk value corresponding to each service node and the functional semantics corresponding to each service. Services with similar target risk values and similar functional semantics are grouped into the same service group, and the directory structure of the service directory to be migrated is adjusted based on each service group to obtain the target service directory.
[0096] For example, suppose the service directory to be migrated includes payment service A, payment service B, and payment service C, which exist as independent service directory entries in the original service directory. If the target risk values of payment service A and payment service B are similar, and their functional semantics are similar, then payment service A and payment service B can be grouped into the same service group, and organized into the same parent directory in the target service directory. If the target risk value of payment service C differs significantly from that of payment service A and payment service B, then payment service C can be grouped into other service groups.
[0097] Step 110: Based on the target service catalog and target risk value, migrate the service functions in the business system.
[0098] After determining the target service catalog and the target risk value corresponding to each service node, the migration of each service in the business system can be further performed based on the target service catalog and the target risk value.
[0099] Optionally, based on the service organization relationship determined by the target service catalog, the migration order or migration batch of each service is determined in combination with the target risk value corresponding to each service, and the services in the business system are migrated in accordance with the corresponding migration order or migration batch.
[0100] For example, services with lower target risk values can be migrated first, and then services with higher target risk values can be migrated after the previous batch of services has been migrated and met the preset conditions, thus gradually completing the migration of all services in the business system. This approach allows the service migration process to consider both the service organization relationships corresponding to the target service catalog and the risk level of each service, avoiding the use of the same migration method for services with different risk levels.
[0101] In the aforementioned service catalog migration method, the service catalog to be migrated and related multi-source data are obtained. Based on these data, the relationships between services are determined, and a service dependency graph is constructed. This allows for processing of each service based on these relationships. Furthermore, when calculating the target risk value, the first risk value for each service node is determined, and then the second risk value for the upstream node is determined using the service dependency graph. This ensures the target risk value reflects both the impact of each service node itself and the upstream node's influence, avoiding inaccurate risk assessments based solely on the service node's own risk value. Further, the service catalog to be migrated is reconstructed based on the target risk values for each service node, resulting in the target service catalog, thus improving the accuracy and reliability of the migration. Finally, services in the business system are migrated based on the target service catalog and target risk values. The migration order can be determined by considering the risk level of each service, reducing the impact of service migration on the business system's operation and improving migration reliability.
[0102] Combination Figure 2 In one embodiment, the aforementioned multi-source data includes configuration association data, runtime call data, and business link data corresponding to each service; based on the service catalog to be migrated and the multi-source data, the association relationships between the services in the service to be migrated are determined, and a service dependency graph is constructed according to each service and its association relationships, including:
[0103] Step 202: Based on the configuration association data, determine the configuration topology relationship between the application, database and host corresponding to each service.
[0104] Optionally, the configuration association data can be data generated during the configuration management process of each service, used to record the configuration objects such as the application, database and host corresponding to the service, as well as the association between different configuration objects.
[0105] After obtaining the configuration association data, the configuration topology relationship corresponding to each service can be determined based on the configuration objects recorded in the configuration association data and the relationships between them. For example, the configuration association data may record the application corresponding to a service, the database used by the application, and the host where the application resides. Based on these records, the configuration topology relationship between the application, database, and host corresponding to the service can be determined. The configuration topology relationship reflects the resource association situation of each service at the configuration management level.
[0106] Step 204: Parse the runtime call data to determine the call relationships between various services.
[0107] During service operation, when one service calls another, a corresponding call record is generated in the call log. Therefore, the call records in the call log can be parsed to identify the calling and called services, and the corresponding call relationship can be determined based on these services. For example, if the call log records that the first service calls the second service, a call relationship between the two services can be established. By parsing the call log, the call relationships formed by different services during actual operation can be obtained. The documentation details the process of extracting call information between services by parsing the call chain log.
[0108] Step 206: Parse the business link data to determine the occurrence of the same business identifier in the business link data corresponding to each service, and determine the business link corresponding to the business identifier based on the occurrence.
[0109] Optionally, the business link data may include business processing logs generated by each service during business processing. These logs may record the business identifier for the corresponding business. When the same business is processed by different services, the business processing logs of each service may record the same business identifier. Therefore, the business link data for each service can be parsed to determine which services' business link data the same business identifier appears in. Based on the occurrence of the same business identifier in different services, multiple services participating in the same business processing can be associated to determine the business link corresponding to that business identifier.
[0110] For example, when the same business identifier appears sequentially in the business processing logs of the first service, the second service, and the third service, it can be determined that the first service, the second service, and the third service are all located in the business chain corresponding to that business identifier. The disclosure materials identify which services the same transaction serial number appears in, thus linking multiple services together to form a business chain.
[0111] Step 208: Determine the relationships between services based on the configuration topology, call relationships, and business links.
[0112] Optionally, configuration topology relationships, call relationships, and business links can be combined to determine whether there are any relationships between the services in the service catalog to be migrated. It should be noted that configuration topology relationships, call relationships, and business links can each characterize the relationships between services from different perspectives. When determining the relationships between services, one or more of these relationships can be used as the basis for determination.
[0113] Step 210: Using each service as a service node, and determining the call edges between each service node based on the association between the services, construct a service dependency graph.
[0114] Each service in the service directory to be migrated can be converted into a corresponding service node, and based on the association relationships between the services determined in step 208, an association edge can be established between two service nodes that have an association relationship. As the service nodes and the association edges between them are established, a service dependency graph consisting of multiple service nodes and association edges can be obtained.
[0115] In the above embodiments, the configuration topology relationship of each service is determined by configuring association data, the call relationship between each service is determined by running call data, and the business link corresponding to each service is determined by business link data. This enables the determination of the association relationship between each service from different aspects such as service configuration, actual operation, and business processing. Furthermore, each service is used as a service node, and association edges are established according to the association relationship between each service to construct a service dependency graph. This allows the association relationship between each service to be represented by a graph structure, which facilitates the subsequent determination of the upstream node of each service node and the corresponding risk value based on the service dependency graph.
[0116] Combination Figure 3 In one embodiment, the above-mentioned determination of a first risk value for each service node and a second risk value corresponding to the upstream node of each service node based on the service dependency graph, and the obtaining of a target risk value for each service node based on the first risk value and the second risk value, includes:
[0117] Step 302: Obtain the business value parameters and time-sensitive parameters corresponding to each service node.
[0118] The business value parameter characterizes the business value of a service node. Service nodes of different business categories or importance can correspond to different business value parameters. For example, service nodes belonging to core systems can correspond to higher business value parameters, while service nodes belonging to support systems can correspond to relatively lower business value parameters. In one example, the business value parameter for a service node belonging to a core system (Category A) can be 100, while the business value parameter for a support system (Category B) can be 70.
[0119] The time-sensitive parameter characterizes the degree to which the risk corresponding to a service node changes with time conditions. Since some services only perform their business processing within specific time periods, the level of risk associated with that service may differ under different time conditions. Therefore, the time-sensitive parameter can be determined based on whether the service corresponding to the service node involves preset time conditions. For example, in a financial scenario, when a service involves time conditions such as day-to-day switching, after-hours trading, or market opening, the time-sensitive parameter can be set to 1.5; for ordinary continuously running services, the time-sensitive parameter can be set to 1.0.
[0120] Optionally, business value parameters can be determined based on the service category corresponding to each service node, and time-sensitive parameters can be determined based on whether the service corresponding to each service node involves preset time conditions.
[0121] Step 304: Calculate the first risk value for each service node based on business value parameters and time-sensitive parameters.
[0122] Optionally, the business value parameter corresponding to the current service node can be multiplied by the time-sensitive parameter to obtain the first risk value corresponding to the current service node. Specifically, it can be expressed as: First risk value = Business value parameter × Time-sensitive parameter.
[0123] For example, when the business value parameter of a certain service node is 100 and the time sensitivity parameter is 1.5, the first risk value corresponding to that service node can be determined to be 150. By combining the business value parameter and the time sensitivity parameter, the first risk value can simultaneously reflect the service's own business value and the impact of time conditions on the corresponding risk of that service.
[0124] Step 306: Based on the service dependency graph, determine the upstream node corresponding to each service node and calculate the second risk value of the upstream node.
[0125] Optionally, the associated edge pointing to the current service node can be determined based on the direction of each associated edge in the service dependency graph, and the other service node corresponding to that associated edge can be determined as the upstream node corresponding to the current service node. For example, when the first service node calls the second service node, the first service node can be determined as the upstream node corresponding to the second service node.
[0126] After determining the upstream node corresponding to the current service node, a second risk value can be determined by combining the target risk value of the upstream node, the risk transmission attenuation parameter, and the dependence strength between the upstream node and the current service node.
[0127] Optionally, for any upstream node, the target risk value, risk transmission attenuation parameter, and the dependency strength between the upstream node and the current service node can be multiplied to obtain the risk impact value of the upstream node.
[0128] Optionally, when the current service node corresponds to multiple upstream nodes, the risk impact value corresponding to each upstream node can be calculated separately, and the risk impact values can be summed to obtain the second risk value corresponding to the current service node.
[0129] Step 308: Calculate the target risk value corresponding to each service node based on the first risk value and the second risk value.
[0130] Optionally, the first risk value and the second risk value corresponding to the current service node can be summed to obtain the target risk value corresponding to the current service node. That is, the target risk value includes the risk portion determined by the business value parameters and time-sensitive parameters of the current service node itself, as well as the risk portion determined by the upstream node of the current service node.
[0131] In the above embodiments, the first risk value corresponding to each service node is determined by business value parameters and time-sensitive parameters, and the second risk value is determined by combining the target risk value of the upstream node corresponding to each service node, the risk transmission attenuation parameter, and the dependence strength. Then, the target risk value is obtained based on the first risk value and the second risk value, so that the target risk value can simultaneously reflect the risk impact of the service node itself and the upstream node, thereby improving the accuracy of determining the risk value of each service node.
[0132] Combination Figure 4 In one embodiment, the process of determining the upstream node corresponding to each service node based on the service dependency graph and calculating the second risk value of the upstream node includes:
[0133] Step 402: Determine the dependency strength between each upstream node and its corresponding service node.
[0134] Dependency strength characterizes the degree of dependency between an upstream node and its corresponding service node. Different invocation methods between the upstream node and its corresponding service node can result in different dependency strengths. A higher dependency degree allows for a larger dependency strength, enabling the target risk value of the upstream node to have a greater impact on the second risk value of the current service node.
[0135] Optionally, the dependency strength can be determined based on the calling method between the upstream node and the corresponding service node. For example, when the upstream node and the corresponding service node make synchronous blocking calls, it can be determined that there is a high dependency strength between them; when the upstream node and the corresponding service node make asynchronous message calls, it can be determined that there is a relatively low dependency strength between them.
[0136] For example, when the upstream node and the corresponding service node make a synchronous blocking call, the dependency strength between them can be set to 1.0; when the upstream node and the corresponding service node make an asynchronous message call, the dependency strength between them can be set to 0.5. Thus, different dependency strengths can be used to distinguish the degree of service dependency under different calling methods.
[0137] Step 404: Obtain the risk transmission attenuation parameters and the target risk corresponding to each upstream node.
[0138] The risk impact attenuation parameter characterizes the degree to which the impact of the target risk value corresponding to an upstream node is retained when it is applied to the current service node through service dependencies. Since multi-level dependencies may exist between service nodes, the risk of an upstream node farther from the current service node typically has a weaker impact on the current service node than that of a directly upstream node. Therefore, the risk impact attenuation parameter can be used to adjust the target risk value corresponding to the upstream node to prevent the risks of upstream nodes at different levels from being proportionally included in the second risk value corresponding to the current service node.
[0139] For example, if a first service node depends on a second service node, and the second service node further depends on a third service node, then the risk corresponding to the first service node has a direct impact on the second service node, while its impact on the third service node is an indirect impact formed through the second service node. The indirect impact can be reduced using a risk impact attenuation parameter, so that the risk corresponding to an upstream node farther from the current service node has a smaller impact on the current service node.
[0140] Step 406: Calculate the second risk value corresponding to each upstream node based on the target risk value, risk transmission attenuation parameter, and corresponding dependence strength of each upstream node.
[0141] Optionally, for any upstream node, the target risk value, risk transmission attenuation parameter, and dependency strength between the upstream node and the current service node can be multiplied to obtain the second risk value for that upstream node. That is, the higher the target risk value, the larger the risk transmission attenuation parameter, or the higher the dependency strength of the upstream node, the larger the second risk value for that upstream node.
[0142] Furthermore, the target risk value can be calculated by combining formula (1).
[0143] Formula (1)
[0144] in, Indicates business value parameters, Indicates a time-sensitive parameter. This represents the set of all upstream nodes of the calling node i. This represents the risk transmission attenuation parameter. Indicates the strength of dependency. This represents the first risk value. This indicates the second risk value.
[0145] In the above embodiments, by combining the target risk value corresponding to the upstream node, the risk transmission attenuation parameter, and the dependence strength between the upstream node and the current service node to calculate the second risk value, the second risk value can simultaneously reflect the risk level of the upstream node itself and the dependence between the upstream node and the current service node, thereby improving the accuracy of the determination of the second risk value.
[0146] Combination Figure 5 In one embodiment, the above-mentioned reconstruction of the service catalog to be migrated based on the target risk value corresponding to each service node yields the target service catalog, including:
[0147] Step 502: Obtain the functional description information corresponding to each service, and determine the semantic features corresponding to each service based on the functional description information.
[0148] The functional description information describes the functions or purposes implemented by the corresponding service. For example, the functional description information may include information that characterizes the service function, such as the service name and service description recorded in the service catalog. Different services may have different functional description information, which can be used to determine the similarity in functionality among the services.
[0149] Optionally, semantic analysis can be performed on the functional description information corresponding to each service to extract keywords that characterize the corresponding service functions, and these extracted keywords can be used as or used to determine the semantic features of the corresponding service. For example, for services whose functional description information includes payment processing, payment status query, etc., keywords such as payment can be extracted from the corresponding functional description information.
[0150] Step 504: Based on the target risk value corresponding to each service node and the semantic features corresponding to each service, the services are grouped to obtain multiple service groups.
[0151] Since grouping services solely based on target risk values can lead to services with similar target risk values but different functions being grouped into the same service group, payment services and query services might have similar target risk values but perform different functions. Therefore, while grouping services based on target risk values, it's possible to further incorporate the semantic features of each service to ensure that services grouped into the same service group not only have similar risk levels but also similar functional semantics.
[0152] Optionally, the target risk value corresponding to each service node and the semantic features corresponding to each service can be compared separately, and multiple services with similar target risk values and similar semantic features can be grouped into the same service group to obtain multiple service groups.
[0153] For example, if the functional descriptions of the first, second, and third services are all related to payment processing, and the target risk values of the first and second services are similar, while the target risk value of the third service differs significantly from that of the first and second services, then the first and second services can be grouped into the same service group. As another example, if the target risk values of the first and fourth services are similar, but the functional description of the fourth service is related to data querying, then based on the differences in their semantic features, the first and fourth services cannot be grouped into the same service group.
[0154] Step 506: Based on each service group, the service catalog to be migrated is hierarchically restructured to obtain the target service catalog.
[0155] The hierarchical restructuring refers to redetermining the organization method and directory hierarchy of each service in the service directory to be migrated based on the service groups obtained in step 504, so as to adjust the original directory structure corresponding to the service directory to be migrated to the directory structure corresponding to the target service directory.
[0156] Optionally, when restructuring the service directory to be migrated based on each service group, the directory level corresponding to each service can be determined by combining the association relationships between service nodes in the service dependency graph. Specifically, the hierarchical relationship between corresponding services can be determined based on the upstream and downstream relationships between service nodes in the service dependency graph, and the directory location of each service in the target service directory can be determined by combining the service group to which each service belongs.
[0157] For example, when the first service node is upstream of the second service node and the first service and the second service belong to the same service group, the relative levels of the first service and the second service in the target service directory can be determined according to their upstream and downstream relationship in the service dependency graph; when multiple service nodes belong to the same service group, the multiple services in the service group can be hierarchically organized according to the association between the service nodes, thereby forming a corresponding tree-like directory structure.
[0158] In the above embodiments, by determining the semantic features corresponding to each service based on the functional description information, and grouping each service according to the target risk value and semantic features corresponding to each service node, services in the same service group can have similar functional semantics while having similar risk levels. Furthermore, by hierarchically reconstructing the service catalog to be migrated based on each service group, the target service catalog can organize each service according to the risk level and functional semantics corresponding to each service, thereby improving the rationality of the service catalog reconstruction.
[0159] Combination Figure 6 In one embodiment, the above-mentioned migration of services in the business system based on the target service catalog and target risk value includes:
[0160] Step 602: Construct a shadow service directory based on the target service directory.
[0161] The shadow service directory refers to a service directory built according to the directory structure corresponding to the target service directory and not yet open to actual users in the business system. It is used to simulate and verify the target service directory before the formal service migration is carried out.
[0162] Optionally, the directory structure, directory location of each service, and related service configuration corresponding to the target service directory can be copied to create a shadow service directory corresponding to the target service directory. This shadow service directory will have a service organization structure corresponding to the target service directory, but it will not be directly used for actual business processing in the business system.
[0163] By constructing a shadow service directory, the directory structure and business processing procedures corresponding to the target service directory can be pre-verified without affecting the normal operation of the current business system.
[0164] Step 604: Obtain historical business data and perform simulated flow in the shadow service directory based on the historical business data to obtain the simulated flow result;
[0165] Historical business data refers to data generated by the business system during its historical operation that can be used to reconstruct the business processing flow. Optionally, historical business data may include historical work order data and historical interface request data. For example, real work order data and interface request data from a preset time period in the past can be obtained.
[0166] Historical business data reflects the business requests and processing procedures that occurred during the actual operation of the business system. By inputting historical business data into the shadow service directory, the business processing procedures after the target service directory is put into use can be simulated without affecting the current business system, thereby verifying whether the directory structure and related business processes corresponding to the target service directory can operate normally.
[0167] Optionally, the corresponding service lookup, business request processing, and process flow can be performed in the shadow service directory according to the business processing order corresponding to the historical business data, and the processing results of each business request during the simulation can be recorded to obtain the simulation flow results.
[0168] Step 606: When the simulation results meet the preset verification conditions, determine the migration batches corresponding to each service in the business system based on the target service directory, and migrate the services in the business system according to the migration batches and the target service directory.
[0169] In this context, "the simulated workflow result meets the preset verification conditions" can mean that the simulated business processing in the shadow service catalog meets the pre-set normal workflow requirements. For example, if there are no interruptions in the approval path and no missing required fields during the simulated workflow, it can be determined that the simulated workflow result meets the preset verification conditions.
[0170] Optionally, after the simulation results meet the preset verification conditions, the services in the business system can be classified according to the target risk value corresponding to each service node, and the migration batch corresponding to each service can be determined based on the classification results. Among them, services with lower target risk values can be assigned to earlier migration batches, and services with higher target risk values can be assigned to later migration batches.
[0171] For example, the services with the lowest target risk value can be designated as the first migration batch, general business services as the second migration batch, and the services with the highest target risk value as the third migration batch. For instance, the first migration batch could include the 20% of services with the lowest target risk value, and the third migration batch could include the 10% of services with the highest target risk value.
[0172] Optionally, after determining the migration batches for each service, the corresponding services can be migrated according to the service organization relationship determined by the target service catalog, following the order of the migration batches. The next migration batch can be executed only after the previous migration batch is completed and a preset verification time has elapsed, thus completing the migration of services in the business system in a step-by-step manner from low-risk services to high-risk services.
[0173] In the above embodiments, by simulating the flow of historical business data using a shadow service catalog before the formal migration, the business processing process corresponding to the target service catalog can be verified in advance. After the verification is successful, each service is migrated in batches according to the target risk value. Services with lower risk can be migrated first, and services with higher risk can be gradually moved forward, thereby reducing the risk of service migration affecting the operation of the business system and improving the reliability of the service migration process.
[0174] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps. It is understood that the steps in different embodiments can be freely combined as needed, and all non-contradictory solutions formed by such combinations are within the scope of protection of this application.
[0175] Based on the same inventive concept, this application also provides a service directory migration apparatus for implementing the service directory migration method described above. The solution provided by this apparatus is similar to the implementation described in the above method; therefore, the specific limitations in one or more service directory migration apparatus embodiments provided below can be found in the limitations of the service directory migration method described above, and will not be repeated here.
[0176] In one exemplary embodiment, such as Figure 7 As shown, a service catalog migration device is provided, including: an acquisition module, a graph construction module, a risk calculation module, a service reconstruction module, and a migration module, wherein:
[0177] The acquisition module is used to acquire the service directory to be migrated and the multi-source data related to the service directory to be migrated; the multi-source data is generated during the configuration management process and operation of each service.
[0178] The graph construction module is used to determine the relationships between services in the service directory to be migrated based on the service directory to be migrated and multi-source data, and to construct a service dependency graph based on each service and its relationships. The service dependency graph includes at least one service node and the associated edges connecting each service node, with each service node corresponding to a service in the service directory to be migrated.
[0179] The risk calculation module is used to determine the first risk value of each service node and the second risk value corresponding to the upstream node of each service node based on the service dependency graph, and to obtain the target risk value corresponding to each service node based on the first risk value and the second risk value.
[0180] The service reconstruction module is used to reconstruct the service catalog to be migrated based on the target risk value corresponding to each service node, so as to obtain the target service catalog.
[0181] The migration module is used to migrate service functions in the business system based on the target service catalog and target risk value.
[0182] In one embodiment, the aforementioned multi-source data includes configuration association data, runtime call data, and business link data corresponding to each service; the aforementioned graph construction module includes:
[0183] The first relationship determination unit is used to determine the configuration topology relationship between the application, database and host corresponding to each service based on the configuration association data.
[0184] The first parsing unit is used to parse the runtime call data and determine the call relationships between various services.
[0185] The second parsing module is used to parse the business link data, determine the occurrence of the same business identifier in the business link data corresponding to each service, and determine the business link corresponding to the business identifier based on the occurrence.
[0186] The first relationship determination unit is used to determine the association between services based on the configuration topology, call relationship and business link.
[0187] Relationship graph construction is used to construct a service dependency graph by taking each service as a service node and determining the call edges between each service node based on the association between the services.
[0188] In one embodiment, the risk calculation module described above includes:
[0189] The parameter acquisition unit is used to acquire the business value parameters and time-sensitive parameters corresponding to each service node.
[0190] The first risk calculation unit is used to calculate the first risk value corresponding to each service node based on business value parameters and time-sensitive parameters.
[0191] The second risk calculation unit is used to determine the upstream node corresponding to each service node based on the service dependency graph, and to calculate the second risk value of the upstream node.
[0192] The target risk calculation unit is used to calculate the target risk value corresponding to each service node based on the first risk value and the second risk value.
[0193] In one embodiment, the second risk calculation unit includes:
[0194] The strength determination subunit is used to determine the dependency strength between each upstream node and its corresponding service node.
[0195] The upstream parameter acquisition subunit is used to obtain the risk transmission attenuation parameters and the target risk value corresponding to each upstream node.
[0196] The risk value calculation subunit is used to calculate the second risk value corresponding to each upstream node based on the target risk value, risk transmission attenuation parameter and corresponding dependence strength of each upstream node.
[0197] In one embodiment, the above-mentioned service reconstruction module includes:
[0198] The information acquisition unit is used to acquire the functional description information corresponding to each service and determine the semantic features corresponding to each service based on the functional description information.
[0199] The analysis unit is used to group services based on the target risk value of each service node and the semantic features of each service, resulting in multiple service groups.
[0200] The hierarchical building unit is used to perform hierarchical reconstruction of the service catalog to be migrated based on each service group, so as to obtain the target service catalog.
[0201] In one embodiment, the migration module includes:
[0202] The shadow directory building unit is used to build a shadow service directory based on the target service directory.
[0203] The simulated workflow unit is used to acquire historical business data and perform simulated workflow in the shadow service directory based on the historical business data to obtain the simulated workflow result.
[0204] The business processing unit is used to determine the migration batch corresponding to each service in the business system based on the target service directory when the simulation flow result meets the preset verification conditions, and to migrate the service functions in the business system according to the migration batch and the target service directory.
[0205] Each module in the aforementioned service catalog migration device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can invoke and execute the operations corresponding to each module.
[0206] In one exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 8 As shown, this computer device includes a processor, memory, input / output interfaces (I / O), and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores multi-source data. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communicating with external terminals via a network connection. When executed by the processor, the computer program implements a service directory migration method.
[0207] Those skilled in the art will understand that Figure 8 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0208] In one exemplary embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the method in any of the above embodiments.
[0209] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the method in any of the above embodiments.
[0210] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps of the method in any of the above embodiments.
[0211] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, graphics processors, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0212] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0213] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A service directory migration method, characterized in that, The method includes: Obtain the service directory to be migrated and the multi-source data related to the service directory to be migrated; the multi-source data is generated during the configuration management process and operation of each service. Based on the service directory to be migrated and the multi-source data, the association relationship between each service in the service directory to be migrated is determined, and a service dependency graph is constructed according to each service and the association relationship; the service dependency graph includes at least one service node and association edges connecting each service node, and each service node corresponds to a service in the service directory to be migrated. Based on the service dependency graph, a first risk value for each service node and a second risk value corresponding to the upstream node of each service node are determined, and a target risk value corresponding to each service node is obtained based on the first risk value and the second risk value. Based on the target risk value corresponding to each service node, the service directory to be migrated is reconstructed to obtain the target service directory. Based on the target service catalog and the target risk value, the service functions in the business system will be migrated.
2. The method according to claim 1, characterized in that, The multi-source data includes configuration association data, runtime call data, and business link data corresponding to each service; the step of determining the association relationships between services in the service to be migrated based on the service directory to be migrated and the multi-source data, and constructing a service dependency graph based on each service and the association relationships, includes: Based on the configuration association data, the configuration topology relationship between the application, database and host corresponding to each service is determined; The runtime call data is parsed to determine the call relationships between the services. The business link data is parsed to determine the occurrence of the same business identifier in the business link data corresponding to each service, and the business link corresponding to the business identifier is determined based on the occurrence. Based on the configuration topology, the invocation relationship, and the business link, the association relationship between each service is determined; The service dependency graph is constructed by using each service as a service node and determining the call edges between each service node according to the association between each service.
3. The method according to claim 1, characterized in that, The step of determining a first risk value for each service node and a second risk value corresponding to the upstream node of each service node based on the service dependency graph, and obtaining a target risk value for each service node based on the first risk value and the second risk value, includes: Obtain the business value parameters and time-sensitive parameters corresponding to each of the service nodes; Based on the business value parameters and the time-sensitive parameters, calculate the first risk value corresponding to each of the service nodes; Based on the service dependency graph, determine the upstream node corresponding to each service node, and calculate the second risk value of the upstream node; Based on the first risk value and the second risk value, calculate the target risk value corresponding to each of the service nodes.
4. The method according to claim 3, characterized in that, The step of determining the upstream node corresponding to each service node based on the service dependency graph, and calculating the second risk value of the upstream node, includes: Determine the dependency strength between each upstream node and its corresponding service node; Obtain the risk transmission attenuation parameters and the target risk value corresponding to each upstream node; The second risk value corresponding to each upstream node is calculated based on the target risk value, the risk transmission attenuation parameter, and the corresponding dependence strength.
5. The method according to claim 1, characterized in that, The process involves reconstructing the service directory to be migrated based on the target risk value corresponding to each service node, resulting in a target service directory, including: Obtain the functional description information corresponding to each of the services, and determine the semantic features corresponding to each of the services based on the functional description information; Based on the target risk value corresponding to each service node and the semantic features corresponding to each service, the services are grouped to obtain multiple service groups. Based on each of the service groups, the service directory to be migrated is hierarchically restructured to obtain the target service directory.
6. The method according to claim 1, characterized in that, The migration of service functions in the business system based on the target service catalog and the target risk value also includes: Construct a shadow service directory based on the target service directory; Historical business data is acquired, and a simulated flow is performed in the shadow service directory based on the historical business data to obtain the simulated flow result; When the simulation results meet the preset verification conditions, the migration batches corresponding to each service in the business system are determined based on the target service directory, and the service functions in the business system are migrated according to the migration batches and the target service directory.
7. A service directory migration device, characterized in that, The device includes: The acquisition module is used to acquire the service directory to be migrated and multi-source data related to the service directory to be migrated; the multi-source data is generated during the configuration management process and operation of each service. The graph construction module is used to determine the association relationship between services in the service directory to be migrated based on the service directory to be migrated and the multi-source data, and to construct a service dependency graph based on each service and the association relationship; the service dependency graph includes at least one service node and association edges connecting each service node, and each service node corresponds to a service in the service directory to be migrated. The risk calculation module is used to determine a first risk value for each service node and a second risk value corresponding to the upstream node of each service node based on the service dependency graph, and to obtain a target risk value for each service node based on the first risk value and the second risk value. The service reconstruction module is used to reconstruct the service directory to be migrated based on the target risk value corresponding to each service node, so as to obtain the target service directory; The migration module is used to migrate service functions in the business system based on the target service catalog and the target risk value.
8. The apparatus according to claim 7, characterized in that, The multi-source data includes configuration association data, runtime call data, and business link data corresponding to each service; the graph construction module includes: The first relationship determination unit is used to determine the configuration topology relationship between the application, database and host corresponding to each service based on the configuration association data. The first parsing unit is used to parse the runtime call data and determine the call relationship between the services. The second parsing module is used to parse the business link data, determine the occurrence of the same business identifier in the business link data corresponding to each service, and determine the business link corresponding to the business identifier based on the occurrence. The first relationship determination unit is used to determine the association relationship between each of the services based on the configuration topology relationship, the call relationship, and the business link; The relationship graph is constructed by using each of the services as service nodes and determining the call edges between the service nodes according to the association between the services, thereby constructing the service dependency relationship graph.
9. The apparatus according to claim 7, characterized in that, The risk calculation module includes: The parameter acquisition unit is used to acquire the business value parameters and time-sensitive parameters corresponding to each of the service nodes. The first risk calculation unit is used to calculate the first risk value corresponding to each of the service nodes based on the business value parameter and the time-sensitive parameter. The second risk calculation unit is used to determine the upstream node corresponding to each service node according to the service dependency graph, and to calculate the second risk value of the upstream node; The target risk calculation unit is used to calculate the target risk value corresponding to each of the service nodes based on the first risk value and the second risk value.
10. The apparatus according to claim 9, characterized in that, The second risk calculation unit includes: The strength determination subunit is used to determine the dependency strength between each upstream node and its corresponding service node. The upstream parameter acquisition subunit is used to acquire the risk transmission attenuation parameter and the target risk value corresponding to each upstream node; The risk value calculation subunit is used to calculate the second risk value corresponding to each of the upstream nodes based on the target risk value corresponding to each upstream node, the risk transmission attenuation parameter, and the corresponding dependence strength.
11. The apparatus according to claim 7, characterized in that, The service reconstruction module includes: An information acquisition unit is used to acquire functional description information corresponding to each of the services, and to determine the semantic features corresponding to each of the services based on the functional description information; The analysis unit is used to group the services based on the target risk value corresponding to each service node and the semantic features corresponding to each service, thereby obtaining multiple service groups. A hierarchical construction unit is used to perform hierarchical reconstruction of the service directory to be migrated based on each of the service groups, so as to obtain the target service directory.
12. The apparatus according to claim 7, characterized in that, The migration module includes: A shadow directory construction unit is used to construct a shadow service directory based on the target service directory; The simulation flow unit is used to acquire historical business data and perform simulated flow based on the historical business data in the shadow service directory to obtain the simulated flow result; The business processing unit is used to determine the migration batch corresponding to each service in the business system based on the target service directory when the simulation flow result meets the preset verification conditions, and to migrate the service functions in the business system according to the migration batch and the target service directory.
13. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.
14. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.
15. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.
