Dependency visualization method, device, equipment and storage medium
By obtaining and merging dependency configuration files between service instances, and displaying target dependencies based on user operations, the optimization problem of complexity and rationality of service instance dependencies is solved, and clear visualization and dependency relationships between service instances are achieved. Simplification of adjustments.
Patent Information
- Application Number
- CN202110118744.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-28
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-01-28
AI Technical Summary
During the development, upgrade or maintenance process of APP, it is necessary to optimize the complexity and rationality of dependencies between different service instances in the server. However, it is difficult to visualize the dependencies between service instances with existing technology.
By obtaining configuration files containing dependencies between different service instances, merging them, determining target dependencies in response to user operations, and displaying them according to the preset display style of each service instance, the dependencies between service instances are visualized.
This enables users to clearly understand the dependencies between service instances, reduces the difficulty of dependency adjustment, and improves the rationality and visualization of dependencies.
Smart Images

Figure CN112819577B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet technology, and in particular to a dependency visualization method, device, equipment and storage medium. Background Art
[0002] With the continuous development of the Internet and terminal devices, people can use different applications (Application, referred to as APP) to put forward various demands, such as take-out demands, cleaning demands, cargo transportation demands, etc. The APP will generate an order based on the user's needs.
[0003] Taking the housekeeping cleaning scenario as an example, a variety of service instances will be set up in the server that interacts with the cleaning APP, such as order service instances, transaction service instances, log service instances, cache service instances, etc. Through calls or references between these service instances, the normal use of the cleaning APP can be guaranteed, that is, users place orders through the cleaning APP and ultimately enjoy the cleaning service.
[0004] In the actual development, upgrade or regular maintenance of the cleaning app, it is necessary to optimize the complexity and rationality of the dependencies between different service instances in the server. In order to facilitate optimization, how to visualize the dependencies between different service instances has become an urgent problem to be solved. Summary of the invention
[0005] In view of this, an embodiment of the present invention provides a dependency visualization method, apparatus, device and storage medium to realize visualization of dependency relationships between service instances.
[0006] In a first aspect, an embodiment of the present invention provides a dependency visualization method, including:
[0007] Obtaining a configuration file containing dependency relationships between different service instances, wherein the dependency relationships include call relationships or reference relationships between the different service entities;
[0008] Merging the dependencies in the configuration file to obtain a processing result;
[0009] In response to a selection operation triggered by a user, determining a target dependency relationship in the processing result;
[0010] The target dependency relationship is displayed according to the preset display styles of different service instances.
[0011] In a second aspect, an embodiment of the present invention provides a dependency visualization device, including:
[0012] An acquisition module, used to acquire a configuration file containing dependency relationships between different service instances, wherein the dependency relationships include call relationships or reference relationships between the different service entities;
[0013] A merging module, used for merging the dependencies in the configuration files to obtain a processing result;
[0014] a determination module, configured to determine a target dependency relationship in the processing result in response to an operation triggered by a user;
[0015] The display module is used to display the target dependency relationship according to the preset display styles of different service instances.
[0016] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: a memory, and a processor connected to the memory;
[0017] The memory is used to store one or more computer instructions, wherein the one or more computer instructions are called and executed by the processor;
[0018] The processor is used to execute the one or more computer instructions to implement the dependency visualization method in the first aspect.
[0019] In a fourth aspect, an embodiment of the present invention provides a computer storage medium for storing a computer program, wherein the computer program enables a computer to implement the dependency visualization method in the first aspect when executed.
[0020] The dependency visualization method, apparatus, device and storage medium provided by the embodiment of the present invention include: a processing device obtains a configuration file, wherein the file includes dependencies between different service instances, and the dependencies include call relationships and reference relationships between service entities. Then, the dependencies recorded in the configuration file are merged to obtain a processing result. Next, in response to a selection operation triggered by a user on the processing result, a target dependency is determined from the above-mentioned processing result, and the target dependency may include dependencies between service instances of the same or different levels. Finally, the service instances in the target dependency are displayed according to the preset display styles of different service instances.
[0021] It can be seen that the above method is a method for visualizing dependency relationships. The dependency relationships in the configuration file include both the call relationship and the reference relationship between service instances, and the obtained dependency relationships are more comprehensive. At the same time, the service instances included in the target dependency relationship obtained in response to the selection operation will be displayed according to their respective corresponding preset display styles, so that users can clearly understand the dependency relationships between service instances. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0023] Figure 1 A flowchart of a dependency visualization method provided by an embodiment of the present invention;
[0024] Figure 2 A schematic diagram of a dependency visualization result provided by an embodiment of the present invention;
[0025] Figure 3 A flowchart of another dependency visualization method provided by an embodiment of the present invention;
[0026] Figure 4 A schematic diagram of another dependency visualization result provided by an embodiment of the present invention;
[0027] Figure 5 A schematic diagram of the structure of a dependency visualization device provided by an embodiment of the present invention;
[0028] Figure 6 For Figure 5 A schematic structural diagram of an electronic device corresponding to the dependency visualization device provided in the illustrated embodiment. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0030] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings, and "multiple" generally includes at least two, but does not exclude the inclusion of at least one.
[0031] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0032] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to a determination" or "in response to a test," depending on the context. Similarly, the phrases "if it is determined" or "if testing (stated condition or event)" may be interpreted as "when it is determined" or "in response to a determination" or "when testing (stated condition or event)" or "in response to testing (stated condition or event)," depending on the context.
[0033] 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 product or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such a product or system. 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 product or system including the elements.
[0034] Following the description in the above background technology, there are already many APPs in daily life that provide different types of services to users. Different APPs can generate different types of orders, such as takeaway orders, cargo transportation orders, housekeeping cleaning orders, etc., and then allocate the orders to service merchants, so as to provide corresponding services to users.
[0035] In practice, the interaction between the APP and the server can realize the payment, receipt, and distribution of orders, and ultimately provide certain services to users. The above-mentioned different processing of orders requires the use of multiple service instances configured in the server and the dependencies between multiple service instances. Among them, the dependencies between service instances are usually manifested as call relationships or reference relationships between service instances. And the dependencies between service instances are usually complex and may be unreasonable.
[0036] During the upgrade or development phase of the APP, the server also needs to cooperate in optimization, that is, the dependencies between different service instances in the server need to be optimized to reduce the complexity of the dependencies and improve the rationality of the dependencies. Before the dependency is adjusted, if the dependencies between the service instances can be clearly displayed and processed so that the user can clearly understand the problems in the current dependencies, the difficulty of adjusting the dependencies can be greatly reduced. For the visualization process of the dependencies, the methods provided in the following embodiments of the present invention can be used.
[0037] It should be noted that the use scenarios of the dependency visualization methods provided by the embodiments of the present invention are not limited to the above scenarios, and any scenario where there is a need for dependency visualization can use the visualization methods provided by the embodiments of the present invention.
[0038] Figure 1 A flowchart of a dependency visualization method provided by an embodiment of the present invention. The execution subject of the dependency visualization method provided by this embodiment may be a processing device, and the processing device may specifically be a plug-in in a server that interacts with an APP. Figure 1 As shown, the method comprises the following steps:
[0039] S101, obtaining a configuration file containing dependency relationships between different service instances, where the dependency relationships include call relationships or reference relationships between different service entities.
[0040] The processing device may obtain a configuration file containing dependencies between different service instances. The service instances and dependencies between different service instances are understood as follows:
[0041] The dependency relationships between different service instances may specifically include reference relationships or call relationships, which have been pre-written in the configuration file.
[0042] For service instances, each service instance provides certain functions. When multiple service instances are used in combination, a complete service can be provided to users. According to different functions, common service instances may include order service instances, transaction service instances, log service instances, cache service instances, etc.
[0043] Specifically, the order service instance is used to provide the order receiving and distribution functions, and the order can be generated by the user through the APP. The transaction service instance is used to provide the payment function of the order. The log service instance is used to provide the function of recording the operation status of different service instances. The recorded content may include, for example, the interface usage of the service instance, the call status between service instances, etc. The cache service instance is used to provide a cache mechanism for other service instances such as the order service instance and the transaction service instance.
[0044] S102, merging the dependencies in the configuration files to obtain a processing result.
[0045] In practice, there may be multiple configuration files, and the dependencies contained in the configuration files may be repeated. Therefore, the dependencies in text form need to be merged, which can also be considered as deduplication. The processing results can also be saved in text form locally on the processing device.
[0046] S103, in response to the operation triggered by the user, determining the target dependency in the processing result.
[0047] S104, displaying target dependencies according to respective preset display styles of different service instances.
[0048] After obtaining the processing results, the user can also trigger operations on the service instance on the interface provided by the processing device, such as selecting or inputting operations on the service instance to obtain the service instance that the user wants to focus on. The focused service instance can be at least one of all service instances.
[0049] If the user triggers an input operation, the processing device can query all dependencies related to the service instance selected by the user, that is, the target dependency, in the processing result according to the identity of the service instance input by the user. Finally, the processing device can display the target dependency containing the service instance according to the preset display styles corresponding to different service instances.
[0050] Optionally, the preset display styles may include: different service instances may be displayed in different shapes and colors, and the directionality of the dependency relationship between service instances may also be represented by directed line segments. This content may be combined with Figure 2 Understand. In this way, users can intuitively understand the complexity and rationality of the dependencies between different service instances.
[0051] exist Figure 2 In the example, the order service instance has a dependency relationship with the log service instance and the cache service instance. Each service instance can be represented in a different shape, and the order service instance can reference the log service instance and the cache service instance respectively.
[0052] In this embodiment, the processing device obtains a configuration file, which includes dependencies between different service instances. Then, the dependencies recorded in the configuration file are merged to obtain a processing result. Then, in response to a selection operation triggered by a user on the processing result, a target dependency is determined from the above processing result. The target dependency may include dependencies between service instances of the same or different levels. Finally, the service instances in the target dependency are displayed according to the preset display styles of different service instances.
[0053] It can be seen that the above method is a visualization method of dependency relationships. The dependency relationships in the configuration file include both the call relationship and the reference relationship between service instances, and the obtained dependency relationships are more comprehensive. At the same time, the service instances included in the target dependency relationship obtained in response to the selection operation will be displayed according to their respective corresponding preset display styles, so that users can clearly understand the dependency relationships between service instances.
[0054] According to the above description, the dependency relationship can specifically include the reference relationship or call relationship between service instances. However, the log service instance can also record the call relationship between service instances. If the call relationship recorded in the log is directly visualized, the following problems may occur:
[0055] Assuming a preset time period, the log service instance only records the call relationship between service instances that are actually generated within this preset time period. It does not record the reference relationship between service instances, nor does it record the reference relationship or call relationship between service instances that have not actually been called within the preset time period. Therefore, the dependency relationship obtained through the log is incomplete, and visualization obviously cannot show the complete dependency relationship.
[0056] and Figure 1 The dependencies included in the configuration file in the illustrated embodiment are pre-set, complete dependencies. The dependencies included in the configuration file do not depend on whether calls or references actually occur between service instances within a preset time period, and the above-mentioned problem will not occur.
[0057] Optionally, in practice, service instances may also have levels. Based on the levels of different service instances, Figure 3 A flowchart of another dependency visualization method provided by an embodiment of the present invention. Figure 3 As shown, the method comprises the following steps:
[0058] S201, obtaining first configuration files corresponding to each of a plurality of highest-level service instances.
[0059] S202: Obtain a second configuration file, where the second configuration file includes reference relationships between service instances of other levels.
[0060] We can first explain the level of service instances: among multiple service instances, the service instances required to ensure that users can enjoy the service normally have the highest level. In order to optimize the order processing flow of the server and APP respectively and further improve the user experience, the required service instances can have the second highest level or even a lower level. In other words, service instances of other levels can provide auxiliary support for the highest level service instances. Continuing with the above example, the order service instance and the transaction service instance have the highest level, and the log service instance and the cache service instance have the second highest level.
[0061] Optionally, based on the respective levels of different service instances, the dependency relationships between different service instances are specifically: the calling relationship between multiple service instances at the highest level; the reference relationship between the service instance at the highest level and service instances at other levels; and the reference relationship between multiple service instances at other levels. Among them, the reference relationship and calling relationship related to the service instance at the highest level can be saved in the first configuration file, and the reference relationship between service instances at other levels can be saved in the second configuration file.
[0062] Optionally, the number of first configuration files may be equal to the number of service instances at the highest level. For any service instance in the highest level service instance, i.e., the target service instance, the direct calling relationship between the target service instance and other service instances at the highest level, and the direct reference relationship between the target service instance and service instances at other levels will be stored in a separate first configuration file.
[0063] S203: Merge the dependencies between the first configuration file and the second configuration file to obtain a processing result.
[0064] A dependency relationship can be expressed as "service instance A-service instance B" in the configuration file. If this dependency relationship is saved in the first configuration file, it indicates that there is a call or reference relationship between service instance A and service instance B. If this dependency relationship is saved in the second configuration file, it indicates that there is a reference relationship between service instance A and service instance B, and service instance A and service instance B are not the highest-level service instances.
[0065] Based on the above description, after obtaining the first configuration file, optionally, the merging process of the dependency relationship by the processing device may include:
[0066] If the callee included in the first calling relationship is the same as the caller included in the second calling relationship, the first calling relationship and the second calling relationship are merged, wherein the first calling relationship and the second calling relationship are included in different first configuration files, that is, the callers of the two calling relationships are two different highest-level service instances.
[0067] For example, if the first calling relationship is "service instance A—service instance B", it indicates that service instance A calls service instance B, service instance A is the caller, and service instance B is the called party. The second calling relationship is "service instance B—service instance C", and the specific explanation is similar to the first calling relationship mentioned above, so it will not be repeated here. If both of these two relationships contain the same service instance B, the two can be merged into a dependency relationship "service instance A—service instance B—service instance C". Among them, service instance A and service instance B are the highest-level service instances, and the above two calling relationships can be stored in the first configuration files corresponding to service instance A and service instance B, respectively.
[0068] Similarly, the calling relationship and the reference relationship in the same first configuration file can also be merged in the above manner. That is, if the called party contained in the calling relationship is the same as the reference party contained in the reference relationship, the calling relationship and the reference relationship will be merged. For example, the calling relationship is "service instance a—service instance b", which indicates that service instance a calls service instance b, service instance a is the caller, and service instance b is the called party. The reference relationship is "service instance b—service instance c", which indicates that service instance b references service instance c, service instance b is the reference party, and service instance c is the referenced party. The dependency relationship after the merge result is "service instance a—service instance b--service instance c".
[0069] After obtaining the second configuration file, optionally, the merging process of the dependency relationship may include:
[0070] If the referenced party included in the first reference relationship is the same as the referenced party included in the second reference relationship, the first reference relationship and the second reference relationship are merged, wherein the first reference relationship and the second reference relationship are included in the second configuration file.
[0071] The merged result after the above merging process describes the dependency relationship between at least two service instances. After merging, multiple shallower dependency relationships can be integrated into a deeper dependency relationship. The more service instances a dependency relationship contains, the deeper the dependency relationship is. It can be seen that the above dependency merging process is actually the process of deduplication and integration of dependency relationships in multiple configuration files.
[0072] S204, in response to the operation triggered by the user, determining the target dependency in the processing result.
[0073] S205, displaying the target dependency relationship according to the preset display styles of different service instances.
[0074] Optionally, the user can further trigger a selection operation for the target level on the interface provided by the processing device. In response to the selection operation, the processing device determines the dependency relationship of the service instance including the target level as the target dependency relationship in the processing result. Afterwards, the target dependency relationship is visualized, that is, the visualization of the dependency relationship in the level dimension is realized.
[0075] Optionally, after selecting the target level, the user can further input the target identity of the service instance. The service device will determine the dependency of the service instance including the target level and the target identity from the processing result as the target dependency and visualize it. At this point, the visualization of the dependency in the service instance dimension is realized.
[0076] And for the visualization of dependencies, in practice, service instances at the same level are usually displayed using the same shape and color.
[0077] In this embodiment, the user can trigger operations of different granularities, such as a target-level selection operation to obtain an input operation of an identity identifier. In response to this operation, the processing device can visualize dependencies of different dimensions, making the visualization of service instances more flexible.
[0078] In practice, after merging service instances, circular dependencies or deep dependencies may appear in the processing results. Both of these dependencies need to be paid special attention to and optimized.
[0079] Therefore, optionally, in response to the user's operation, if the target dependency selected by the processing device includes a circular dependency, the circular dependency is highlighted. For example, if the circular dependency is "service instance A—service instance B—service instance C—service instance A", the highlighting of the circular dependency can be to set the background of the circular dependency in the target dependency to a preset color, such as Figure 4 As shown in (a) in .
[0080] Optionally, in response to the user's operation, the processing device can filter out the target dependency. Afterwards, the processing device can further obtain the number of service instances in the target dependency. When the number of target dependencies is one, the number of service instances contained in this target dependency is determined. If the number is greater than a preset value, it indicates that this target dependency is a deep dependency, and it will be highlighted. When there are multiple target dependencies, the processing device can count the number of service instances contained in each dependency separately, and determine whether each dependency is a deep dependency, so as to determine whether it needs to be highlighted.
[0081] For example, a deep dependency relationship may be "service instance A - service instance B - service instance C - service instance D - service instance E", and the result of highlighting it may be as follows: Figure 4 As shown in (b) in .
[0082] Figure 4 The display forms shown include both prominent display of dependency relationships and display of different service instances according to preset display styles corresponding to the service instances. In practice, these two display forms can also be used separately.
[0083] The dependency visualization apparatus of one or more embodiments of the present invention will be described in detail below. Those skilled in the art will appreciate that these dependency visualization apparatuses can be configured using commercially available hardware components through the steps taught in this solution.
[0084] Figure 5 A schematic diagram of a dependency visualization device provided by an embodiment of the present invention is shown in FIG. Figure 5 As shown, the order distribution device includes:
[0085] The acquisition module 11 is used to acquire a configuration file containing dependency relationships between different service instances, wherein the dependency relationships include call relationships or reference relationships between the different service entities.
[0086] The merging module 12 is used to merge the dependencies in the configuration files to obtain a processing result.
[0087] The determination module 13 is used to determine the target dependency relationship in the processing result in response to the operation triggered by the user.
[0088] The display module 14 is used to display the target dependency relationship according to the preset display styles of different service instances.
[0089] Optionally, the acquisition module 11 is used to obtain a first configuration file corresponding to each of multiple highest-level service instances, wherein the target service instance is any one of the highest-level service instances, and the first configuration file corresponding to the target service instance contains a calling relationship between the target service instance and other highest-level service instances, and a reference relationship between the target service instance and service instances of other levels; and to obtain a second configuration file, wherein the second configuration file includes reference relationships between service instances of other levels.
[0090] Optionally, the merging module 12 is used to merge the first calling relationship with the second calling relationship if the called party included in the first calling relationship is the same as the caller included in the second calling relationship, and the first calling relationship and the second calling relationship are included in different first configuration files.
[0091] Optionally, the merging module 12 is used to merge the first reference relationship with the second reference relationship if the referenced party included in the first reference relationship is the same as the referenced party included in the second reference relationship, and the first reference relationship and the second reference relationship are included in the second configuration file.
[0092] Optionally, the determination module 13 is configured to determine the dependency relationship of the service instances including the target level as the target dependency relationship in response to the user's selection operation on the target level.
[0093] Optionally, the determination module 13 is further configured to determine, in response to the target identity input by the user, a dependency relationship of a service instance including the target level identifier and the target identity identifier as the target dependency relationship.
[0094] Optionally, the display module 14 is further configured to highlight and display a circular dependency if the target dependency includes a circular dependency.
[0095] Optionally, the display module 14 is further configured to obtain the number of service entities included in the target dependency relationship; and if the number is greater than a preset value, highlight the target dependency relationship.
[0096] Figure 5 The device shown can perform Figure 1 to Figure 4 For the method of the embodiment shown in the figure, the part not described in detail in this embodiment can be referred to Figure 1 to Figure 4 The implementation process and technical effects of this technical solution refer to Figure 1 to Figure 4 The description in the illustrated embodiment will not be repeated here.
[0097] The internal functions and structure of the dependency visualization device are described above. In a possible design, the structure of the dependency visualization device can be implemented as an electronic device, such as a computer. Figure 6 A schematic diagram of the structure of an electronic device embodiment 1 provided by an embodiment of the present invention, such as Figure 6 As shown, the electronic device includes: a memory 21, and a processor 22 connected to the memory, the memory 21 is used to store a program for the electronic device to execute the dependency visualization method provided in any of the above embodiments, and the processor 22 is configured to execute the program stored in the memory 21.
[0098] The program includes one or more computer instructions, wherein when the one or more computer instructions are executed by the processor 22, the following steps can be implemented:
[0099] Obtaining a configuration file containing dependency relationships between different service instances, wherein the dependency relationships include call relationships or reference relationships between the different service entities;
[0100] Merging the dependencies in the configuration file to obtain a processing result;
[0101] In response to a selection operation triggered by a user, determining a target dependency relationship in the processing result;
[0102] The target dependency relationship is displayed according to the preset display styles of different service instances.
[0103] Optionally, the processor 22 is also used to execute all or part of the steps in the aforementioned methods.
[0104] The structure of the electronic device may further include a communication interface 23 for the electronic device to communicate with other devices or a communication network.
[0105] In addition, an embodiment of the present invention provides a computer storage medium for storing computer software instructions used by the above electronic device, which includes instructions for executing the above Figure 1 to Figure 4 The procedures involved in the dependency visualization method in the method embodiment are shown.
[0106] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A dependency visualization method, characterized in that: include: Obtain a configuration file containing dependencies between different service instances, based on the respective levels of different service instances, the dependencies between different service instances include: a calling relationship between multiple service instances at the highest level, a reference relationship between the service instance at the highest level and service instances at other levels, and a reference relationship between multiple service instances at other levels; wherein: the reference relationship and calling relationship related to the service instance at the highest level are stored in a first configuration file, and the reference relationship between service instances at other levels are stored in a second configuration file; After obtaining the first configuration file, if the callee included in the first calling relationship is the same as the caller included in the second calling relationship, the first calling relationship and the second calling relationship are merged to obtain a processing result; wherein the first calling relationship and the second calling relationship are included in different first configuration files, that is, the callers of the two calling relationships are two different highest-level service instances; After obtaining the second configuration file, if the referenced party included in the first reference relationship is the same as the referenced party included in the second reference relationship, the first reference relationship and the second reference relationship are merged to obtain a processing result; wherein the first reference relationship and the second reference relationship are included in the second configuration file; In response to a user-triggered operation, determining a target dependency in the processing result; The target dependency relationship is displayed according to the preset display styles of different service instances.
2. The method according to claim 1, characterized in that The step of determining the target dependency in the processing result in response to the operation triggered by the user includes: In response to the user's selection operation on the target level, the dependency relationship of the service instance including the target level is determined as the target dependency relationship.
3. The method according to claim 2, characterized in that The step of determining the dependency relationship including the service instance at the target level as the target dependency relationship includes: In response to the target identity input by the user, the dependency relationship of the service instance including the target level identifier and the target identity is determined as the target dependency relationship.
4. The method according to claim 1, characterized in that: The method further comprises: If the target dependency includes a circular dependency, the circular dependency is highlighted.
5. The method according to claim 1, characterized in that The method further comprises: Obtain the number of service entities included in the target dependency relationship; If the number is greater than a preset value, the target dependency relationship is highlighted.
6. A dependency visualization device, characterized in that: include: An acquisition module is used to acquire a configuration file containing dependency relationships between different service instances. Based on the respective levels of different service instances, the dependency relationships between different service instances include: a calling relationship between multiple service instances at the highest level, a reference relationship between the service instance at the highest level and service instances at other levels, and a reference relationship between multiple service instances at other levels; wherein: the reference relationship and calling relationship related to the service instance at the highest level are stored in a first configuration file, and the reference relationship between service instances at other levels are stored in a second configuration file; A merging module, for merging the first calling relationship with the second calling relationship to obtain a processing result after obtaining the first configuration file, if the called party included in the first calling relationship is the same as the calling party included in the second calling relationship; wherein the first calling relationship and the second calling relationship are included in different first configuration files, that is, the calling parties of the two calling relationships are two different highest-level service instances; after obtaining the second configuration file, if the referenced party included in the first reference relationship is the same as the referenced party included in the second reference relationship, merging the first reference relationship with the second reference relationship to obtain a processing result; wherein the first reference relationship and the second reference relationship are included in the second configuration file; a determination module, configured to determine a target dependency relationship in the processing result in response to an operation triggered by a user; The display module is used to display the target dependency relationship according to the preset display styles of different service instances.
7. An electronic device, characterized in that: include: A memory, and a processor connected to the memory; The memory is used to store one or more computer instructions, wherein the one or more computer instructions are called and executed by the processor; The processor is used to execute the one or more computer instructions to implement the dependency visualization method according to any one of claims 1 to 5.
8. A non-transitory machine-readable storage medium, characterized in that: The non-transitory machine-readable storage medium stores executable code, and when the executable code is executed by a processor of an electronic device, the processor is caused to execute the dependency visualization method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Modeling method for object changing model on the basis of tense
CN107066256A
Automated generation of transformation chain compatible class
CN107820602A
Application program analysis method, application program analysis device, electronic equipment and computer readable medium
CN110347573A
Organization architecture diagram generation method and device, computer equipment and storage medium
CN110442752A
Big data task scheduling management method, device and apparatus and storage medium
CN111125444A
