CN109684104B - Method and equipment for realizing display of call chain between services - Google Patents

Method and equipment for realizing display of call chain between services Download PDF

Info

Publication number
CN109684104B
CN109684104B CN201811544933.1A CN201811544933A CN109684104B CN 109684104 B CN109684104 B CN 109684104B CN 201811544933 A CN201811544933 A CN 201811544933A CN 109684104 B CN109684104 B CN 109684104B
Authority
CN
China
Prior art keywords
service
chain
service process
call
call chain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811544933.1A
Other languages
Chinese (zh)
Other versions
CN109684104A (en
Inventor
匡凌轩
陈高昌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Cubesili Information Technology Co Ltd
Original Assignee
Guangzhou Cubesili Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Cubesili Information Technology Co Ltd filed Critical Guangzhou Cubesili Information Technology Co Ltd
Priority to CN201811544933.1A priority Critical patent/CN109684104B/en
Publication of CN109684104A publication Critical patent/CN109684104A/en
Application granted granted Critical
Publication of CN109684104B publication Critical patent/CN109684104B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services

Abstract

The application provides a method and equipment for displaying a call chain between services, wherein the method comprises the following steps: acquiring a calling chain model; reading the service process name, the responsible person, the service running state and the service process calling relation from the calling chain model data; and generating and displaying a service calling chain which takes the service process name as a main body and takes the responsible person and the service running state as an auxiliary body according to the service process calling relation. According to the method and the system, the service process name, the responsible person, the service operation state and the service process calling relation are displayed on the service inter-call chain, so that developers can see the calling relation among the service processes, the whole service end operation architecture can be clear, great help is provided for analyzing and solving problems, and the design and implementation of the architecture can be checked to determine whether deviation exists.

Description

Method and equipment for realizing display of call chain between services
Technical Field
The application relates to the technical field of internet, in particular to a method and equipment for displaying a call chain between services.
Background
A plurality of service processes are run in the server for implementing various functions of the server. These service processes typically make calls to each other.
However, when there are many service processes, the call between the service processes is very complicated, and it is very difficult for a worker to view and modify the service process call.
Therefore, it is necessary to provide a method for implementing display of call chains between services, so that developers can see call relationships between service processes, can clearly understand the whole service end operation architecture, greatly help them to analyze and solve problems, and can also check whether there is a deviation in the design and implementation of the architecture.
Disclosure of Invention
The application provides a display implementation method and equipment for call chains among services, which enable developers to see call relations among service processes, can clearly understand the whole service end operation framework, greatly help the developers to analyze and solve problems, and can also check whether the design and implementation of the framework have deviation.
In view of this, a first aspect of the present application provides a method for implementing a display of a call chain between services, including:
acquiring a calling chain model;
reading the service process name, the responsible person, the service running state and the service process calling relation from the calling chain model data;
and generating and displaying a service calling chain which takes the service process name as a main body and takes the responsible person and the service running state as an auxiliary body according to the service process calling relation.
Preferably, the generating a service-to-service call chain with a service process name as a main body and a principal and a service running state as an auxiliary body according to the service process call relationship and displaying specifically are:
generating an inter-service call chain taking the service process name as a main body according to the service process call relation;
adding a responsible person after the service process name;
and adjusting the service calling chain to a corresponding color according to the service running state.
Preferably, the adjusting the inter-service call chain to the corresponding color according to the service running state specifically includes:
the service running state comprises a fault state, a normal state and a service stopping state, and the calling chain between the services is adjusted to be in a corresponding color according to different states.
Preferably, after the generating and displaying a service-to-service call chain with the service process name as a main body and the principal and the service running state as an auxiliary body according to the service process call relationship, the method further includes:
and establishing a hyperlink on the name of the service process, so that clicking the hyperlink to pop up a data index page of the corresponding service process.
Preferably, the inter-service call chain is long chain or tree-like.
Preferably, the call chain model data is in json data format.
Preferably, the format of the call chain model data is: the format of the header, first call chain, second call chain, … last call chain;
wherein, the calling chain format is as follows: a first service process, a second service process, …, a last service process;
wherein, the service process content comprises: person in charge, service process name, service run state code, and update time.
Preferably, after the generating and displaying a service-to-service call chain with the service process name as a main body and the principal and the service running state as an auxiliary body according to the service process call relationship, the method further includes:
and reading the updating time from the calling chain model data and displaying.
Preferably, the generated call chain between services is displayed on the mobile terminal.
A second aspect of the present application provides a device for implementing a presentation of a call chain between services, the device comprising a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to execute the presentation implementation method of the inter-service call chain according to the first aspect as described above according to instructions in the program code.
A third aspect of the present application provides a computer-readable storage medium for storing program code for executing the method for implementing the presentation of the inter-service call chain according to the first aspect.
A fourth aspect of the present application provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of implementing an exposure of an inter-service call chain as in the first aspect above.
According to the technical scheme, the method has the following advantages:
the application provides a method and equipment for displaying a call chain between services, wherein the method comprises the following steps: acquiring a calling chain model; reading the service process name, the responsible person, the service running state and the service process calling relation from the calling chain model data; and generating and displaying a service calling chain which takes the service process name as a main body and takes the responsible person and the service running state as an auxiliary body according to the service process calling relation. According to the method and the system, the service process name, the responsible person, the service operation state and the service process calling relation are displayed on the service inter-call chain, so that developers can see the calling relation among the service processes, the whole service end operation architecture can be clear, great help is provided for analyzing and solving problems, and the design and implementation of the architecture can be checked to determine whether deviation exists.
Drawings
In order to illustrate the embodiments of the present application more clearly, the drawings that are needed for describing the embodiments or prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive exercise.
FIG. 1 is a flowchart of an embodiment of a method for implementing a presentation of a call chain between services provided by the present application;
FIG. 2 is a flowchart of another embodiment of a method for implementing a presentation of a call chain between services provided by the present application;
fig. 3 is a schematic diagram of a call chain model in a display implementation method of a call chain between services according to the present application;
FIG. 4 is a long chain display diagram of a display implementation of an inter-service call chain provided herein;
fig. 5 is a tree display diagram of a display implementation method of a call chain between services provided in the present application.
Detailed Description
The application provides a display implementation method and equipment for call chains among services, which enable developers to see call relations among service processes, can clearly understand the whole service end operation framework, greatly help the developers to analyze and solve problems, and can also check whether the design and implementation of the framework have deviation.
In order to make the objects, features and advantages of the present invention more apparent and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the embodiments described below are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, an embodiment of a method for implementing a service invocation chain includes:
101. acquiring a calling chain model;
the call chain model may be a model stored in a database; the call chain model represents the call relationship between service processes between servers.
102. Reading the service process name, the responsible person, the service running state and the service process calling relation from the calling chain model data;
103. and generating and displaying a service calling chain which takes the service process name as a main body and takes the responsible person and the service running state as an auxiliary body according to the service process calling relation.
According to the method and the system, the service process name, the responsible person, the service operation state and the service process calling relation are displayed on the service inter-call chain, so that developers can see the calling relation among the service processes, the whole service end operation architecture can be clear, great help is provided for analyzing and solving problems, and the design and implementation of the architecture can be checked to determine whether deviation exists.
The above is a detailed description of an embodiment of a method for implementing a display of an inter-service call chain provided in the first aspect of the present application, and the following is a detailed description of an embodiment of a method for implementing a display of an inter-service call chain provided in the first aspect of the present application.
Referring to fig. 2, another embodiment of a method for implementing a service call chain presentation provided in the present application includes:
201. acquiring a calling chain model;
the call chain model may be a model stored in a database; the call chain model represents the call relationship between service processes between servers.
202. Reading the service process name, the responsible person, the service running state and the service process calling relation from the calling chain model data;
if the calling chain model data is in a specific format set by the application, the corresponding data can be quickly read.
203. Generating an inter-service call chain taking the service process name as a main body according to the service process call relation;
the inter-service call chain is long chain or tree-like.
204. Adding a responsible person after the service process name;
205. adjusting the call chain between the services to a corresponding color according to the service running state;
the service running state comprises a fault state, a normal state and a service stopping state, and the calling chain between the services is adjusted to be in a corresponding color according to different states.
Adjusting the inter-service call chain to a corresponding color according to the service running state specifically comprises:
if the service running state is a fault state, adjusting the call chain between the services to be red;
if the service running state is a normal state, adjusting the inter-service call chain to be blue;
and if the service running state is the service stopping state, adjusting the inter-service call chain to be grey.
206. Establishing a hyperlink on the name of the service process, and enabling the hyperlink to be clicked to pop up a data index page of the corresponding service process;
207. and reading the updating time from the calling chain model data and displaying.
It should be noted that: the calling chain model data is in json data format.
The format of the call chain model data is: the format of the header, first call chain, second call chain, … last call chain;
wherein, the calling chain format is as follows: a first service process, a second service process, …, a last service process;
wherein, the service process content comprises: person in charge, service process name, service running state code and update time;
the service process format is: "over": "person in charge", "serviceName": service Process name, "status": service running status code, "time": and updating the time.
The data of the call chain model can be read more quickly through the call chain model data format.
Call chain model data as follows:
Figure BDA0001909111130000061
Figure BDA0001909111130000071
the data owner represents a responsible person, the serviceName represents the name of a service process, the status represents the service running state, 0 is normal, 1 is wrong, 2 is out of service, and the time represents the updating time.
As shown in fig. 3, the data represents three call chains, respectively:
1. the Gift service Gift calls the Money service, and the Money red represents that the service fails and status is 1;
gift (zhangsan) - - > Money (letiv);
2. the Gift service Gift calls the Mysql service storage data;
gift (zhangsan) - - > Mysql (longwu);
3. the member service Vip uses the Money service, and the failure status of the Money red representative service is 1;
vip (lei) - - > Money (lei iv);
if multiple call chains are long, the following is shown:
serviceName(ower)-->serviceName(ower)-->serviceName(ower)-->…
serviceName(ower)-->serviceName(ower)-->serviceName(ower)-->…
serviceName(ower)-->serviceName(ower)-->serviceName(ower)-->…
serviceName(ower)-->serviceName(ower)-->serviceName(ower)-->…
fig. 4 is a diagram of an actual display effect, and it can be seen that the display is clear, developers can see the call relationship between service processes, can clearly see the whole service end operation architecture, and have great help for analyzing and solving problems, and can also check whether the design and implementation of the architecture have deviation.
Fig. 5 is a tree-like presentation effect diagram, which is another presentation manner, and only calls with the same service process name need to be linked together.
The generated inter-service call chain may be displayed on the mobile terminal. When displayed on a mobile terminal, the programmer can conveniently view the information.
A detailed description will be given below of a presentation implementation apparatus for a call chain between services provided in the present application.
The application provides a show realization equipment of call chain between services, equipment includes processor and memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to execute the presentation implementation method of the inter-service call chain according to the instructions in the program code.
The present application provides a computer-readable storage medium for storing a program code, where the program code is used to execute the method for implementing the presentation of the call chain between services according to the above-mentioned embodiment.
The present application provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method for implementing a presentation of an inter-service call chain as in the above embodiments.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (4)

1. A method for realizing the display of a call chain between services is characterized by comprising the following steps:
obtaining a call chain model, wherein: the calling chain model is a model stored in a database, represents the calling relation between service processes between servers, and is in a json data format: the format of the file header, the first call chain, the second call chain, and … last call chain, wherein the call chain format is: a first service process, a second service process, …, and a last service process, wherein the service process content includes: person in charge, service process name, service running state code and update time;
reading the service process name, the responsible person, the service running state and the service process calling relation from the calling chain model data, specifically: generating a service-to-service call chain taking a service process name as a main body according to a service process call relation, adding a responsible person after the service process name, adjusting the service-to-service call chain into a corresponding color according to a service running state, wherein the service running state comprises a fault state, a normal state and a service stopping state, and adjusting the service-to-service call chain into the corresponding color according to different states;
generating and displaying a service calling chain which takes the service process name as a main body and takes the responsible person and the service running state as an auxiliary body according to the service process calling relation;
establishing a hyperlink on the name of the service process, and enabling the hyperlink to be clicked to pop up a data index page of the corresponding service process;
reading and displaying the updating time from the calling chain model data;
merging the call chains with the same service process name, and displaying the call relation among the service processes in a tree form.
2. The method as claimed in claim 1, wherein the generated inter-service call chain is displayed on the mobile terminal.
3. An apparatus for enabling the presentation of call chains between services, the apparatus comprising a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to execute the presentation implementation method of the inter-service call chain according to any one of claims 1-2 according to instructions in the program code.
4. A computer-readable storage medium for storing program code for performing the method for implementing a presentation of an inter-service call chain according to any one of claims 1-2.
CN201811544933.1A 2018-12-17 2018-12-17 Method and equipment for realizing display of call chain between services Active CN109684104B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811544933.1A CN109684104B (en) 2018-12-17 2018-12-17 Method and equipment for realizing display of call chain between services

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811544933.1A CN109684104B (en) 2018-12-17 2018-12-17 Method and equipment for realizing display of call chain between services

Publications (2)

Publication Number Publication Date
CN109684104A CN109684104A (en) 2019-04-26
CN109684104B true CN109684104B (en) 2021-03-26

Family

ID=66186762

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811544933.1A Active CN109684104B (en) 2018-12-17 2018-12-17 Method and equipment for realizing display of call chain between services

Country Status (1)

Country Link
CN (1) CN109684104B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110224899B (en) * 2019-06-28 2023-04-18 深圳前海微众银行股份有限公司 TCP application call chain acquisition method and device
CN110674284A (en) * 2019-08-26 2020-01-10 四川新网银行股份有限公司 Method for generating multi-system method call link diagram
CN111049878B (en) * 2019-10-23 2023-03-21 平安科技(深圳)有限公司 Method, device, electronic device and storage medium for visualizing micro-service call chain

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009158405A2 (en) * 2008-06-27 2009-12-30 Microsoft Corporation Granting least privilege access for computing processes
CN106487596A (en) * 2016-10-26 2017-03-08 宜人恒业科技发展(北京)有限公司 Distributed Services follow the tracks of implementation method
CN106656536A (en) * 2015-11-03 2017-05-10 阿里巴巴集团控股有限公司 Method and device for processing service invocation information
CN107092553A (en) * 2017-04-20 2017-08-25 广州华多网络科技有限公司 A kind of method, device and computer system for setting up request call chain between process
CN108897669A (en) * 2018-07-05 2018-11-27 城家网络科技有限公司 Using monitoring method and equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009158405A2 (en) * 2008-06-27 2009-12-30 Microsoft Corporation Granting least privilege access for computing processes
CN106656536A (en) * 2015-11-03 2017-05-10 阿里巴巴集团控股有限公司 Method and device for processing service invocation information
CN106487596A (en) * 2016-10-26 2017-03-08 宜人恒业科技发展(北京)有限公司 Distributed Services follow the tracks of implementation method
CN107092553A (en) * 2017-04-20 2017-08-25 广州华多网络科技有限公司 A kind of method, device and computer system for setting up request call chain between process
CN108897669A (en) * 2018-07-05 2018-11-27 城家网络科技有限公司 Using monitoring method and equipment

Also Published As

Publication number Publication date
CN109684104A (en) 2019-04-26

Similar Documents

Publication Publication Date Title
CN109684104B (en) Method and equipment for realizing display of call chain between services
CN109344170B (en) Stream data processing method, system, electronic device and readable storage medium
US20090271351A1 (en) Rules engine test harness
CN106020948B (en) A kind of process dispatch method and device
CN109857524B (en) Stream computing method, device, equipment and computer readable storage medium
US11494552B2 (en) System and method for implementing smart business intelligence testing tools
CN111611612B (en) Block chain-based integrating system, device, storage medium and operation method thereof
CN110503564A (en) Save case processing method, system, equipment and storage medium from damage based on big data
US11665247B2 (en) Resource discovery agent computing device, software application, and method
CN114240358A (en) Method, device, equipment and medium for realizing user-defined business process
CN112035344A (en) Multi-scenario test method, device, equipment and computer readable storage medium
CN109587351B (en) Call testing method, device, equipment and storage medium
CN108763017B (en) Application software data processing method, server side and storage medium for financial business
CN109862399A (en) It shows the method for rich media information, handle method, computer installation and the computer readable storage medium of rich media information
CN109412930A (en) A kind of jump method, device, storage medium and the terminal of IM landing page
CN110443441A (en) Regular efficacy monitoring method, apparatus, computer equipment and storage medium
CN115469833A (en) Method and device for implementing dynamic rule engine, electronic equipment and storage medium
CN108776621A (en) Communication means and device in software architecture between level
CN114816393A (en) Information generation method, device, equipment and storage medium
CN110765610B (en) PDM integration method, PDM integration device, computer equipment and storage medium
CN115913912A (en) Message interception and service link diagram generation method and device
CN112600803A (en) Web end data signature method and device and computer equipment
CN110599112A (en) Method and device for developing and maintaining network page
CN113535187B (en) Service online method, service updating method and service providing method
CN115026825A (en) Method and device for realizing IA robot running state based on RPA and AI

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210112

Address after: 510000 3108, 79 Wanbo 2nd Road, Nancun Town, Panyu District, Guangzhou City, Guangdong Province

Applicant after: GUANGZHOU CUBESILI INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 28th floor, block B1, Wanda Plaza, Nancun Town, Panyu District, Guangzhou City, Guangdong Province

Applicant before: GUANGZHOU HUADUO NETWORK TECHNOLOGY Co.,Ltd.

EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20190426

Assignee: GUANGZHOU HUADUO NETWORK TECHNOLOGY Co.,Ltd.

Assignor: GUANGZHOU CUBESILI INFORMATION TECHNOLOGY Co.,Ltd.

Contract record no.: X2021440000052

Denomination of invention: A method and device for displaying call chain between services

License type: Common License

Record date: 20210222

GR01 Patent grant
GR01 Patent grant