Detailed Description
The present application is described in further detail below with reference to the attached figures.
In a typical configuration of the present application, the terminal, the device serving the network, and the trusted party each include one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (transient media), such as modulated data signals and carrier waves.
FIG. 1 illustrates a flow diagram of a method for presenting service invocation information in accordance with an aspect of the subject application. Including step S1, step S2, and step S3.
In step S1, the device 1 acquires one or more service call chains in the distributed service system, where each service call chain includes one or more service nodes that are called sequentially; in step S2, the device 1 generates one or more corresponding first service invocation topologies according to the one or more service invocation chains, where each first service invocation topology is aggregated by one or more service invocation chains; in step S3, the device 1 presents at least one of the one or more first service invocation topologies.
Specifically, in step S1, the device 1 acquires one or more service call chains in the distributed service system, where each service call chain includes one or more service nodes that are sequentially called. Herein, the distributed service system includes, but is not limited to, a service-oriented architecture or a software system built on a distributed system. The service node includes, but is not limited to, a service or a function for calling in the distributed service system, and for example, the service node when the product is consumed on the e-commerce platform includes calling a user name, calling a user-associated account, calling a payment page, obtaining security verification, checking account balance, and the like. The service call chain refers to service nodes and sequences thereof related to one service call completed in the distributed service system, acquires log information related to the service call chain and operation history information of the system, extracts the service nodes and information thereof related to the service called each time, acquires a process capable of clearly displaying the service call of the service call chain including the service nodes and the call sequences thereof related to the called service, and acquires the topology and the topology thereof of each service call.
It will be understood by those skilled in the art that the above-described manner of obtaining a service call chain is merely exemplary, and that other existing or future manners of obtaining a service call chain, as applicable to the present application, are also intended to be encompassed within the scope of the present application and are hereby incorporated by reference.
Next, in step S2, the device 1 generates one or more corresponding first service call topologies according to the one or more service call chains, where each first service call topology is aggregated by one or more service call chains. For example, the obtained log information of each service node records the topology sequence called each time, for example, the first called service node a is a service node a0, the service node D that must be called first to complete the call of the service node a is 0.1, the service node B that needs to be called after calling the service node D is 0.2, and the service node C that must be called first to call the service node B is 0.2.1, so that the topology information of the node in a call, for example, A0D0.1B0.2C0.2.1, can be recorded according to the log information. And then according to the topology information in each service call chain, aggregating the topology information of the service call chains with the same service node topology information to generate the first service call topology, so that the first service call topology represents a type of the service call chain, and the service node call sequence and the topology relationship of the service call chain are the same.
It should be understood by those skilled in the art that the above-mentioned method for annotating service call chain topological relationships is only an example, and other existing or future methods for annotating service call chain topological relationships, such as those applicable to the present application, are also included in the scope of the present application and are hereby incorporated by reference.
Next, the device 1 presents at least one of the one or more first service invocation topologies in step S3. That is, the topological relationship between the service nodes in the first service invocation topology is expressed by a graph or other perceptible and visual manners, for example, the branch 1 shown in fig. 7 is a first service invocation topology, wherein a point in a tree-like graph in a square frame is a service node, so that the invocation relationship between the service nodes in the service invocation and the relationship between the service nodes are clearly and intuitively expressed, thereby facilitating development and data analysis.
It will be understood by those skilled in the art that the above-described manner of presenting a service invocation topology is by way of example only, and that other existing or future manners of presenting a service invocation topology, as applicable to the present application, are also intended to be encompassed within the scope of the present application and are hereby incorporated by reference.
Preferably, the method further comprises, in step S6 (not shown), device 1 performing a cleaning operation on the service call chain in step S6. Wherein, the cleaning operation is to filter out unimportant call object information. For example, two service calls with the same service link topology are all called by a service node C, wherein one service node C additionally queries some information during calling, for example, the cache C1 is queried in the 1 st service call link, the database C2 is queried once after the cache C1 is not obtained, the data is put into the cache C3, and the cache C1 is directly queried in the 2 nd service call link to be obtained. In this case, the two different links, i.e. C also calls the nodes C1, C2, and C3, may be the case before the flush operation, because the nodes that are queried usually go through one system after error and do not feed back the execution result, and the call result is usually fed back to the node C, so the flush operation can be ignored. Besides, nodes queried by the middleware route and the like can be cleaned without influencing the model.
It will be understood by those skilled in the art that the above-described manner of invoking a chain of cleaning services is merely exemplary, and that other existing or future manners of invoking a chain of cleaning services, as applicable to the present application, are intended to be encompassed within the scope of the present application and are hereby incorporated by reference.
In step S2, the device 1 generates one or more first service call topologies according to the one or more washed service call chains, where each first service call topology is aggregated by one or more service call chains. The service call chains with the same service call topology after the flushing operation are aggregated according to the log information or other available information containing the node call time sequence, so as to generate a first service call topology representing the service call chains with the same service call topology, specifically in the same manner as the method described above.
More preferably, the cleaning operation comprises at least any one of:
and deleting the predetermined service node in the service calling topology, namely filtering the called calling node such as the middleware service node routing query and the like.
And deleting the service node which does not feed back the calling result information in the service calling topology, namely filtering the called service calling result which is carried out in the system and has no execution result feedback, such as inquiring and calling a cache, calling a database and the like.
Fig. 2 shows a flow diagram of a method for presenting service invocation information according to another preferred embodiment of the present application. Including step S1, step S2, step S4, and step S3.
In step S1, the device 1 acquires one or more service call chains in the distributed service system, where each service call chain includes one or more service nodes that are called sequentially; in step S2, the device 1 generates one or more corresponding first service invocation topologies according to the one or more service invocation chains, where each first service invocation topology is aggregated by one or more service invocation chains; in step S4, the device 1 performs an aggregation process on at least two associated first service invocation topologies in the one or more first service invocation topologies to obtain corresponding one or more second service invocation topologies; device 1 presents at least one of the one or more second service invocation topologies in step S3.
Here, steps S1 and S2 in fig. 2 are the same as or similar to steps S1 and S2 in fig. 1, and are not repeated herein.
Specifically, in step S4, the device 1 performs an aggregation process on at least two associated first service invocation topologies in the one or more first service invocation topologies to obtain corresponding one or more second service invocation topologies. That is, the same ingress service nodes in the multiple first service invocation topologies are merged, starting from the ingress service nodes, the same service nodes at the same level are merged according to a certain merging rule, for example, after the ingress service nodes aggregate a plurality of service invocation topologies, other service invocation topologies are sequentially merged onto the first service invocation topology, the service invocation topologies which are recursively merged during merging are only merged for child service nodes having the same parent service node, when the merged service invocation topology service nodes have no mergeable nodes, the merged service invocation topology service nodes are directly hung on the parent service nodes of the merging tree, because the merged service invocation topologies have the same entry, certain identical parent service nodes can be hung, wherein the parent service nodes are the superior service nodes of the child service nodes, that is, the child service nodes are behind the parent service nodes from the invocation time, thereby obtaining a larger service call link and its topology relation, i.e. a second service call topology.
It should be understood by those skilled in the art that the above-mentioned merge rule for generating the second service invocation topology is only an example, and other existing or future merge rules for generating the second service invocation topology, as applicable to the present application, are also included in the scope of the present application and are hereby incorporated by reference.
Preferably, the associated at least two of the first service invocation topologies meet at least any of:
the at least two first service invocation topologies start from the same service node, i.e. invocation topologies with the same ingress service node, such as two invocation topologies, "ABC" is the invocation order of one topology and "ADE" is the invocation order of the other topology, both starting from the same service node "a".
The originating service node of one of the at least two first service invocation topologies is contained in the other of the at least two first service invocation topologies, e.g., as two invocation topologies, "ABC" is the invocation order of one topology and "GAH" is the invocation order of the other topology, where the "a" service node is the originating service node of the former and the latter contains the originating node of the former.
More preferably, in step S4, the device 1 performs an aggregation process on at least two associated first service invocation topologies in the one or more first service invocation topologies to obtain corresponding one or more second service invocation topologies, where the aggregation process satisfies the invocation order of the service nodes in the at least two first service invocation topologies. For example, the service nodes are aggregated according to the calling order to ensure that the calling order of the calling topology at the merging front end is consistent with the calling order, for example, recursively merged service calling topologies during merging are only merged for child service nodes having the same parent service node, and the merged service calling topology service nodes are directly hung on the parent service node of the merging tree when there is no node that can be merged, because the merged service calling topology entries are the same, the same parent service node can be hung, wherein the parent service node is an upper service node of the child service node, that is, the child service node is connected behind the parent service node from the calling time, thereby ensuring that the aggregation meets the calling order of the service nodes in the at least two first service calling topologies.
Next, device 1 presents at least one of the one or more second service invocation topologies in step S3. The topological relation between the service nodes in the second service invocation topology is expressed through a chart or other sensible visualization mode, for example, all tree-shaped graphs in the graph shown in fig. 7 are a second service invocation topology, a point in the tree-shaped graph in the square frame is a service node, and during specific presentation, selection and differential display can be performed according to name information corresponding to the service invocation topology in each node, for example, a label is added to each node in the service invocation topology to add different differential labels to adjacent nodes, adjacent invocation relations and adjacent branches, so that the label information is read during display, and an object needing differential display is obtained. Therefore, the relation between service nodes in the service call and various service call chains can be clearly and intuitively displayed, and development and data analysis are facilitated.
It will be understood by those skilled in the art that the above-described manner of presenting a service invocation topology is by way of example only, and that other existing or future manners of presenting a service invocation topology, as applicable to the present application, are also intended to be encompassed within the scope of the present application and are hereby incorporated by reference.
Preferably, in step S3, the device 1 presents at least one of the one or more second service invocation topologies and one or more first service invocation topologies corresponding to the presented second service invocation topology. That is, as shown in fig. 7, the tree diagram is displayed, and each calling topology is labeled, so that not only can the global second service calling topology be observed and analyzed, but also the name of each calling topology can be clicked to observe and analyze the first service calling topology, and thus, data analysis and development can be performed in a targeted manner.
It will be understood by those skilled in the art that the above-described manner of presenting a service invocation topology is by way of example only, and that other existing or future manners of presenting a service invocation topology, as applicable to the present application, are also intended to be encompassed within the scope of the present application and are hereby incorporated by reference.
Fig. 3 shows a flow chart of a method for presenting service invocation information according to yet another preferred embodiment of the present application. Including step S1, step S2, step S4, step S5, and step S3.
In step S1, the device 1 acquires one or more service call chains in the distributed service system, where each service call chain includes one or more service nodes that are called sequentially; in step S2, the device 1 generates one or more corresponding first service invocation topologies according to the one or more service invocation chains, where each first service invocation topology is aggregated by one or more service invocation chains; in step S4, the device 1 performs an aggregation process on at least two associated first service invocation topologies in the one or more first service invocation topologies to obtain corresponding one or more second service invocation topologies; in step S5, the device 1 obtains a selection or viewing operation of the user for the call related information of at least one of the first service call topology or the second service call topology; in step S3, the device 1 distinguishes between presenting the call related information in the corresponding display window of at least one of the first service call topology or the second service call topology.
Here, steps S1 and S2 in fig. 3 are the same as or similar to steps S1 and S2 in fig. 1, and step S4 in fig. 3 is the same as or similar to step S4 in fig. 2, and are not repeated herein.
Specifically, in step S5, the device 1 obtains a selection or viewing operation of the user for the call related information of at least one of the first service call topology or the second service call topology. The call related information refers to adjacent nodes, adjacent call relations, adjacent branches and the like. The method comprises the steps of giving an instruction through an input device to perform selection or viewing operation, for example, inputting names or other representative information of a first service call topology or a second service call topology, viewing service node information in the topology under the name or information in adjacent branches, for example, as shown in fig. 7, clicking the name of a branch 1 below to select and view a branch 1 of the first service call topology, wherein the clicking operation is the selection or viewing operation, and the name of the branch 1 and the associated display of a system after clicking a button to the service node in the branch 1 are the call related information.
It will be understood by those skilled in the art that the above-described selection or viewing operations are exemplary only, and other selection or viewing operations now or later that may occur, if applicable, are intended to be encompassed within the scope of the present application and are hereby incorporated by reference.
Preferably, the call related information includes at least any one of:
the one or more service nodes of at least one of the first service invocation topology or the second service invocation topology refer to the service nodes in the service invocation topology, for example, the dots in the topology shown in fig. 7, that are invocation related information representing the service nodes in the branches.
One or more service invocation relations of at least one of the first service invocation topology or the second service invocation topology, that is, the front-back and parallel sequential relations of the invocation in the topology, for example, the lines in the topology shown in fig. 7 represent the invocation relations of the service nodes in the branches by connecting the circles representing the service nodes at the two ends of the lines.
Next, in step S3, the device 1 distinguishes between presenting the call related information in the corresponding display window of at least one of the first service call topology or the second service call topology. The differentiated presentation means that the displayed service invocation topology is differentiated and displayed by using different colors, fonts or adding filling colors, for example, the branches required to be displayed in fig. 7 are differentiated and displayed by deepening the color of the line thereof and displaying the square frame in the display range of the viewed branch, so that the topology relationship of the service invocation is displayed more intuitively and clearly. During specific presentation, selection and differential display can be performed according to name information corresponding to branches in each node, for example, a label is added to each node in the service call topology to add different differential labels to adjacent nodes, adjacent call relations and adjacent branches, so that the label information is read during display, and objects needing differential display are obtained.
Preferably, in step S3, the device 1 distinguishes between presenting the call related information and the adjacent call information corresponding to the call related information in the display window corresponding to at least one of the first service call topology or the second service call topology. The adjacent calling information refers to that the same node is arranged with the displayed service calling topology, so that the service calling topology has a certain probability of calling or being associated with other adjacent service calling topologies or nodes when being developed or used, and the adjacent calling information is displayed in a distinguishing manner, so that the adjacent service nodes can be correspondingly processed and analyzed when being developed or positioned, and the developing, monitoring or problem positioning efficiency is improved.
FIG. 4 illustrates a schematic diagram of an apparatus for presenting service invocation information in accordance with another aspect of the subject application. The device 1 comprises service call chain obtaining means 11, first service call topology generating means 12 and service call presentation means 13.
The service call chain acquiring device 11 acquires one or more service call chains in the distributed service system, wherein each service call chain comprises one or more service nodes which are called sequentially; the first service call topology generating device 12 generates one or more corresponding first service call topologies according to the one or more service call chains, wherein each first service call topology is aggregated by one or more service call chains; the service invocation presenting means 13 presents at least one of said one or more first service invocation topologies.
Specifically, the service call chain acquiring means 11 acquires one or more service call chains in the distributed service system, wherein each service call chain includes one or more service nodes that are sequentially called. Herein, the distributed service system includes, but is not limited to, a service-oriented architecture or a software system built on a distributed system. The service node includes, but is not limited to, a service or a function for calling in the distributed service system, and for example, the service node when the product is consumed on the e-commerce platform includes calling a user name, calling a user-associated account, calling a payment page, obtaining security verification, checking account balance, and the like. The service call chain refers to service nodes and sequences thereof related to one service call completed in the distributed service system, acquires log information related to the service call chain and operation history information of the system, extracts the service nodes and information thereof related to the service called each time, acquires a process capable of clearly displaying the service call of the service call chain including the service nodes and the call sequences thereof related to the called service, and acquires the topology and the topology thereof of each service call.
It will be understood by those skilled in the art that the above-described manner of obtaining a service call chain is merely exemplary, and that other existing or future manners of obtaining a service call chain, as applicable to the present application, are also intended to be encompassed within the scope of the present application and are hereby incorporated by reference.
Next, the first service invocation topology generating device 12 generates one or more corresponding first service invocation topologies according to the one or more service invocation chains, wherein each first service invocation topology is aggregated by one or more service invocation chains. For example, the obtained log information of each service node records the topology sequence called each time, for example, the first called service node a is a service node a0, the service node D that must be called first to complete the call of the service node a is 0.1, the service node B that needs to be called after calling the service node D is 0.2, and the service node C that must be called first to call the service node B is 0.2.1, so that the topology information of the node in a call, for example, A0D0.1B0.2C0.2.1, can be recorded according to the log information. And then according to the topology information in each service call chain, aggregating the topology information of the service call chains with the same service node topology information to generate the first service call topology, so that the first service call topology represents a type of the service call chain, and the service node call sequence and the topology relationship of the service call chain are the same.
It should be understood by those skilled in the art that the above-mentioned method for annotating service call chain topological relationships is only an example, and other existing or future methods for annotating service call chain topological relationships, such as those applicable to the present application, are also included in the scope of the present application and are hereby incorporated by reference.
Then, the service invocation presenting means 13 presents at least one of said one or more first service invocation topologies. That is, the topological relationship between the service nodes in the first service invocation topology is expressed by a graph or other perceptible and visual manners, for example, the branch 1 shown in fig. 7 is a first service invocation topology, wherein a point in a tree-like graph in a square frame is a service node, so that the invocation relationship between the service nodes in the service invocation and the relationship between the service nodes are clearly and intuitively expressed, thereby facilitating development and data analysis.
It will be understood by those skilled in the art that the above-described manner of presenting a service invocation topology is by way of example only, and that other existing or future manners of presenting a service invocation topology, as applicable to the present application, are also intended to be encompassed within the scope of the present application and are hereby incorporated by reference.
Preferably, the device 1 further comprises: a cleansing means 16 (not shown), said cleansing means 16 performing cleansing operations on said service call chain. Wherein, the cleaning operation is to filter out unimportant call object information. For example, two service calls with the same service link topology are all called by a service node C, wherein one service node C additionally queries some information during calling, for example, the cache C1 is queried in the 1 st service call link, the database C2 is queried once after the cache C1 is not obtained, the data is put into the cache C3, and the cache C1 is directly queried in the 2 nd service call link to be obtained. In this case, the two different links, i.e. C also calls the nodes C1, C2, and C3, may be the case before the flush operation, because the nodes that are queried usually go through one system after error and do not feed back the execution result, and the call result is usually fed back to the node C, so the flush operation can be ignored. Besides, nodes queried by the middleware route and the like can be cleaned without influencing the model.
It will be understood by those skilled in the art that the above-described manner of invoking a chain of cleaning services is merely exemplary, and that other existing or future manners of invoking a chain of cleaning services, as applicable to the present application, are intended to be encompassed within the scope of the present application and are hereby incorporated by reference.
The first service invocation topology generating device 12 generates one or more corresponding first service invocation topologies according to the one or more washed service invocation chains, where each first service invocation topology is aggregated by one or more service invocation chains. The service call chains with the same service call topology after the flushing operation are aggregated according to the log information or other available information containing the node call time sequence, so as to generate a first service call topology representing the service call chains with the same service call topology, specifically in the same manner as the method described above.
More preferably, the cleaning operation comprises at least any one of:
and deleting the predetermined service nodes in the service calling topology, namely filtering and deleting the called calling nodes such as the middleware service node routing query.
And deleting the service nodes which do not feed back the calling result information in the service calling topology, namely filtering and deleting the called service calling results which are processed in the system and have no execution result feedback, such as querying and calling a cache, calling a database and the like.
Fig. 5 shows a schematic diagram of a device for presenting service invocation information according to another preferred embodiment of the present application. The device 1 comprises service invocation chain obtaining means 21, first service invocation topology generating means 22, second service invocation topology generating means 24 and service invocation rendering means 23.
The service call chain acquiring device 21 acquires one or more service call chains in the distributed service system, wherein each service call chain comprises one or more service nodes which are called sequentially; the first service call topology generating device 22 generates one or more corresponding first service call topologies according to the one or more service call chains, wherein each first service call topology is aggregated by one or more service call chains; the second service invocation topology generating device 24 performs aggregation processing on at least two associated first service invocation topologies in the one or more first service invocation topologies to obtain corresponding one or more second service invocation topologies; the service invocation presenting means 23 presents at least one of said one or more second service invocation topologies.
Here, the service invocation chain obtaining device 21 and the first service invocation topology generating device 22 in fig. 5 are the same as or similar to the service invocation chain obtaining device 11 and the first service invocation topology generating device 12 in fig. 4, and are not described again here.
Specifically, the second service invocation topology generating device 24 performs aggregation processing on at least two associated first service invocation topologies in the one or more first service invocation topologies to obtain corresponding one or more second service invocation topologies. That is, the same ingress service nodes in the multiple first service invocation topologies are merged, starting from the ingress service nodes, the same service nodes at the same level are merged according to a certain merging rule, for example, after the ingress service nodes aggregate a plurality of service invocation topologies, other service invocation topologies are sequentially merged onto the first service invocation topology, the service invocation topologies which are recursively merged during merging are only merged for child service nodes having the same parent service node, when the merged service invocation topology service nodes have no mergeable nodes, the merged service invocation topology service nodes are directly hung on the parent service nodes of the merging tree, because the merged service invocation topologies have the same entry, certain identical parent service nodes can be hung, wherein the parent service nodes are the superior service nodes of the child service nodes, that is, the child service nodes are behind the parent service nodes from the invocation time, thereby obtaining a larger service call link and its topology relation, i.e. a second service call topology.
It should be understood by those skilled in the art that the above-mentioned merge rule for generating the second service invocation topology is only an example, and other existing or future merge rules for generating the second service invocation topology, as applicable to the present application, are also included in the scope of the present application and are hereby incorporated by reference.
Preferably, the associated at least two of the first service invocation topologies meet at least any of:
the at least two first service invocation topologies start from the same service node, i.e. invocation topologies with the same ingress service node, such as two invocation topologies, "ABC" is the invocation order of one topology and "ADE" is the invocation order of the other topology, both starting from the same service node "a".
The originating service node of one of the at least two first service invocation topologies is contained in the other of the at least two first service invocation topologies, e.g., as two invocation topologies, "ABC" is the invocation order of one topology and "GAH" is the invocation order of the other topology, where the "a" service node is the originating service node of the former and the latter contains the originating node of the former.
More preferably, the second service invocation topology generating device 24 performs an aggregation process on at least two associated first service invocation topologies in the one or more first service invocation topologies to obtain corresponding one or more second service invocation topologies, where the aggregation process satisfies the invocation order of the service nodes in the at least two first service invocation topologies. For example, the service nodes are aggregated according to the calling order to ensure that the calling order of the calling topology at the merging front end is consistent with the calling order, for example, recursively merged service calling topologies during merging are only merged for child service nodes having the same parent service node, and the merged service calling topology service nodes are directly hung on the parent service node of the merging tree when there is no node that can be merged, because the merged service calling topology entries are the same, the same parent service node can be hung, wherein the parent service node is an upper service node of the child service node, that is, the child service node is connected behind the parent service node from the calling time, thereby ensuring that the aggregation meets the calling order of the service nodes in the at least two first service calling topologies.
Then, the service invocation presenting means 23 presents at least one of said one or more second service invocation topologies. The topological relation between the service nodes in the second service invocation topology is expressed through a chart or other sensible visualization mode, for example, all tree-shaped graphs in the graph shown in fig. 7 are a second service invocation topology, a point in the tree-shaped graph in the square frame is a service node, and during specific presentation, selection and differential display can be performed according to name information corresponding to the service invocation topology in each node, for example, a label is added to each node in the service invocation topology to add different differential labels to adjacent nodes, adjacent invocation relations and adjacent branches, so that the label information is read during display, and an object needing differential display is obtained. Therefore, the relation between service nodes in the service call and various service call chains can be clearly and intuitively displayed, and development and data analysis are facilitated.
It will be understood by those skilled in the art that the above-described manner of presenting a service invocation topology is by way of example only, and that other existing or future manners of presenting a service invocation topology, as applicable to the present application, are also intended to be encompassed within the scope of the present application and are hereby incorporated by reference.
Preferably, the service invocation presenting device 23 presents at least one of the one or more second service invocation topologies and one or more first service invocation topologies corresponding to the presented second service invocation topology. That is, as shown in fig. 7, the tree diagram is displayed, and each calling topology is labeled, so that not only can the global second service calling topology be observed and analyzed, but also the name of each calling topology can be clicked to observe and analyze the first service calling topology, and thus, data analysis and development can be performed in a targeted manner.
It will be understood by those skilled in the art that the above-described manner of presenting a service invocation topology is by way of example only, and that other existing or future manners of presenting a service invocation topology, as applicable to the present application, are also intended to be encompassed within the scope of the present application and are hereby incorporated by reference.
Fig. 6 shows a schematic diagram of a device for presenting service invocation information according to yet another preferred example of the present application. The device 1 comprises that the device 1 comprises service invocation chain obtaining means 31, first service invocation topology generating means 32, second service invocation topology generating means 34, service invocation topology operation obtaining means 35 and service invocation topology presenting means 33.
The service call chain acquiring device 31 acquires one or more service call chains in the distributed service system, wherein each service call chain comprises one or more service nodes which are called sequentially; the first service call topology generating device 32 generates one or more corresponding first service call topologies according to the one or more service call chains, wherein each first service call topology is aggregated by one or more service call chains; the second service invocation topology generating device 34 performs aggregation processing on at least two associated first service invocation topologies in the one or more first service invocation topologies to obtain corresponding one or more second service invocation topologies; the service invocation topology operation obtaining device 35 obtains a selection or viewing operation of the user for the invocation related information of at least one of the first service invocation topology or the second service invocation topology; the service invocation topology presenting means 33 presents the invocation related information differently in a display window corresponding to at least one of the first service invocation topology or the second service invocation topology.
Here, the service invocation chain obtaining device 31 and the first service invocation topology generating device 32 in fig. 6 are the same as or similar to the service invocation chain obtaining device 11 and the first service invocation topology generating device 12 in fig. 4, and the second service invocation topology generating device 34 in fig. 6 is the same as or similar to the second service invocation topology generating device 24 in fig. 5, and are not described again here.
Specifically, the service invocation topology operation obtaining means 35 obtains a selection or viewing operation of the user for invocation related information of at least one of the first service invocation topology or the second service invocation topology. The call related information refers to adjacent nodes, adjacent call relations, adjacent branches and the like. The method comprises the steps of giving an instruction through an input device to perform selection or viewing operation, for example, inputting names or other representative information of a first service call topology or a second service call topology, viewing service node information in the topology under the name or information in adjacent branches, for example, as shown in fig. 7, clicking the name of a branch 1 below to select and view a branch 1 of the first service call topology, wherein the clicking operation is the selection or viewing operation, and the name of the branch 1 and the associated display of a system after clicking a button to the service node in the branch 1 are the call related information.
It will be understood by those skilled in the art that the above-described selection or viewing operations are exemplary only, and other selection or viewing operations now or later that may occur, if applicable, are intended to be encompassed within the scope of the present application and are hereby incorporated by reference.
Preferably, the call related information includes at least any one of:
the one or more service nodes of at least one of the first service invocation topology or the second service invocation topology refer to the service nodes in the service invocation topology, for example, the dots in the topology shown in fig. 7, that are invocation related information representing the service nodes in the branches.
One or more service invocation relations of at least one of the first service invocation topology or the second service invocation topology, that is, the front-back and parallel sequential relations of the invocation in the topology, for example, the lines in the topology shown in fig. 7 represent the invocation relations of the service nodes in the branches by connecting the circles representing the service nodes at the two ends of the lines.
Then, the service invocation topology presenting means 33 distinguishes presenting the invocation related information in a corresponding display window of at least one of the first service invocation topology or the second service invocation topology. The differentiated presentation means that the displayed service invocation topology is differentiated and displayed by using different colors, fonts or adding filling colors, for example, the branches required to be displayed in fig. 7 are differentiated and displayed by deepening the color of the line thereof and displaying the square frame in the display range of the viewed branch, so that the topology relationship of the service invocation is displayed more intuitively and clearly. During specific presentation, selection and differential display can be performed according to name information corresponding to branches in each node, for example, a label is added to each node in the service call topology to add different differential labels to adjacent nodes, adjacent call relations and adjacent branches, so that the label information is read during display, and objects needing differential display are obtained.
Preferably, the service invocation topology presenting device 33 distinguishes between presenting the invocation related information and the adjacent invocation information corresponding to the invocation related information in a display window corresponding to at least one of the first service invocation topology or the second service invocation topology. The adjacent calling information refers to that the same node is arranged with the displayed service calling topology, so that the service calling topology has a certain probability of calling or being associated with other adjacent service calling topologies or nodes when being developed or used, and the adjacent calling information is displayed in a distinguishing manner, so that the adjacent service nodes can be correspondingly processed and analyzed when being developed or positioned, and the developing, monitoring or problem positioning efficiency is improved.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.
It should be noted that the present application may be implemented in software and/or a combination of software and hardware, for example, implemented using Application Specific Integrated Circuits (ASICs), general purpose computers or any other similar hardware devices. In one embodiment, the software programs of the present application may be executed by a processor to implement the steps or functions described above. Likewise, the software programs (including associated data structures) of the present application may be stored in a computer readable recording medium, such as RAM memory, magnetic or optical drive or diskette and the like. Additionally, some of the steps or functions of the present application may be implemented in hardware, for example, as circuitry that cooperates with the processor to perform various steps or functions.
In addition, some of the present application may be implemented as a computer program product, such as computer program instructions, which when executed by a computer, may invoke or provide methods and/or techniques in accordance with the present application through the operation of the computer. Program instructions which invoke the methods of the present application may be stored on a fixed or removable recording medium and/or transmitted via a data stream on a broadcast or other signal-bearing medium and/or stored within a working memory of a computer device operating in accordance with the program instructions. An embodiment according to the present application comprises an apparatus comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein the computer program instructions, when executed by the processor, trigger the apparatus to perform a method and/or a solution according to the aforementioned embodiments of the present application.
It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the apparatus claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.