Interface multiplexing measurement method, device and equipment based on link tracking technology and readable storage medium

The acquisition and measurement of interface information through link tracking technology has solved the problem that interface multiplexing cannot be measured in the existing technology, and achieved a comprehensive evaluation and improvement of interface multiplexing capabilities.

CN119829050APending Publication Date: 2025-04-15CHINA CITIC BANK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411774790.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-05
Publication Date
2025-04-15

AI Technical Summary

Technical Problem

The prior art lacks methods and devices for measuring interface reuse, which makes it impossible for developers and software managers to coordinate and improve the program reuse capabilities.

Method used

The operating interface information is continuously obtained through link tracking technology, and then stored in the data warehouse after cleaning and processing. Based on this, the software reuse situation is measured, the interface multiplexing metric indicators are calculated, and the interface multiplexing capability is evaluated.

Benefits of technology

It realizes a comprehensive evaluation of the interface reuse effect, improves the reuse rate, system scalability and maintainability, reduces the cost of human data acquisition, and forms digital assets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119829050A_ABST
    Figure CN119829050A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to the field of link tracking technology and software engineering, and provides an interface multiplexing measurement method and device based on the link tracking technology, equipment and a readable storage medium. According to the method, the use condition, the dependency relationship and the interaction mode among the components in the system can be deeply understood, so that resource allocation and optimization are performed, the optimization and adjustment of the architecture are guided, the reuse rate and the expansibility and maintainability of the system are improved, and the comprehensive evaluation of the interface reuse effect is realized. According to the method provided by the invention, the manual data acquisition cost can be greatly reduced, digital assets are formed, and important support is provided for the technical development of the industry.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of link tracking technology and software engineering technology, and in particular to a link tracking technology-based interface reuse measurement method, device, equipment and readable storage medium. Background Art

[0002] Link tracing is a technology used to track the request processing process in distributed applications. It can record all service nodes and processing time that a request passes through, helping developers quickly locate and solve problems in the system. Interface reuse refers to the reuse of existing interfaces for development during software development, with the aim of reducing workload and improving the maintainability and reusability of submitted code.

[0003] Currently, there is a lack of methods and devices for measuring interface reuse in the market, which makes it impossible for developers and software managers to comprehensively manage and improve the reuse capabilities of programs.

[0004] To this end, it is now urgent to propose an interface reuse measurement method based on link tracking technology to solve the problem of being unable to comprehensively coordinate and improve the reuse capabilities of programs, and to enable developers and software managers to comprehensively coordinate and improve the reuse capabilities of programs. Summary of the invention

[0005] The purpose of this application is to continuously obtain the running state interface information through link tracking technology, store it in the data warehouse after cleaning and processing, and measure the software reuse on this basis to provide decision support for improving software reuse design and reducing development and operation costs. The technical solutions adopted in this application are as follows:

[0006] In a first aspect, an embodiment of the present application provides an interface multiplexing measurement method based on link tracking technology, the method comprising:

[0007] Deploy link tracking tools to track interface call links in microservice architecture;

[0008] Connect the device to be measured to the link tracking tool and configure corresponding link tracking parameters;

[0009] Record and upload interface call link information to the observation and analysis platform;

[0010] Extract interface call link data from the observation and analysis platform;

[0011] Filter and remove duplicates from the extracted interface call link data;

[0012] Establishing a mapping relationship between the filtered interface call link data and the interface analysis model;

[0013] According to the mapping relationship, calculate the interface reuse metric;

[0014] Based on the calculated interface reuse metrics, the interface reuse capability is evaluated.

[0015] Preferably, in the process of connecting the device to be measured to the link tracking tool, the link tracking tool uses SkyWalking, and the device to be measured adopts the Spring Cloud microservice architecture; the method of accessing the link tracking tool at least includes: plug-in embedding and bytecode injection agent.

[0016] Preferably, in the step of connecting the device to be measured to the link tracking tool, the access method comprises the following steps:

[0017] Add the -javaagent parameter to the startup command of the service of the measured device and specify the path of the SkyWalkingJava Agent plug-in;

[0018] Configure the SkyWalking observation and analysis platform address and application name, and use the consumer device and service device with the interface analysis model attributes corresponding to the program name to access.

[0019] Preferably, in the filtering and deduplication of the extracted interface call link data, the type and component fields are used for filtering when filtering the interface data, wherein when the type value is Entry, the endpoint is identified as the entry of the service.

[0020] Preferably, in calculating the interface reuse metric index according to the mapping relationship, the calculated interface reuse metric index includes but is not limited to the number of interface reuse times, interface reuse status, interface reuse improvement rate and device interface reuse degree.

[0021] Preferably, in evaluating the interface reuse capability based on the calculated interface reuse metric, when evaluating the interface reuse capability, a preset evaluation threshold is used for scoring to form a positive or negative evaluation report of interface reuse.

[0022] In a second aspect, the present invention provides an interface multiplexing measurement device based on link tracking technology, the device comprising: a link tracking module, a measured module, an interface multiplexing measurement module, an interface analysis model conversion module, an interface multiplexing information analysis and processing module, and a measurement analysis module, wherein:

[0023] Link tracking module: used to capture the link tracking information of the system and output the tracking result data;

[0024] Measured module: used for source systems that need to be evaluated for interface reuse, and connected to the link tracking system;

[0025] Interface reuse measurement module: including interface analysis model conversion module, interface reuse information analysis and processing module, and measurement analysis module;

[0026] The interface analysis model conversion module is used to convert the tracking result data output by the link tracking system and map it into interface analysis model structure data;

[0027] The interface reuse information analysis and processing module is used to extract key information related to measurement from the interface analysis model structure data;

[0028] The measurement analysis module is used to perform statistical measurement on the interface call relationship, summarize the data according to the statistical dimension, calculate the number of interface reuses, interface reuse conditions, interface reuse improvement rate and system interface reuse index, and perform visual display to generate an interface reuse measurement report.

[0029] In a third aspect, the present invention provides an electronic device, including a processor and a memory;

[0030] The memory is used to store operation instructions;

[0031] The processor is used to execute the above-mentioned interface multiplexing measurement method based on link tracking technology by calling the operation instruction.

[0032] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for measuring interface multiplexing based on link tracking technology is implemented.

[0033] In a fifth aspect, the present invention provides a computer program product, which includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the above-mentioned method for automated configuration of microservice engineering is fully or partially executed.

[0034] The interface reuse measurement scheme based on link tracking technology disclosed in this application can deeply understand the usage, dependency and interaction mode between components in the system through tracking and analyzing link data, so as to allocate and optimize resources, guide the optimization and adjustment of the architecture, improve the reuse rate, system scalability and maintainability, and realize a comprehensive evaluation of the interface reuse effect. This method can greatly reduce the cost of manual data collection, form digital assets, and provide important support for the technological development of the industry. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in describing the embodiments of the present application.

[0036] Figure 1 A flowchart of an interface multiplexing measurement method based on link tracing technology provided in an embodiment of the present application;

[0037] Figure 2 A schematic diagram of the structure of an interface multiplexing measurement device based on link tracking technology provided in an embodiment of the present application;

[0038] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0039] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be interpreted as limiting the present application.

[0040] It will be understood by those skilled in the art that, unless otherwise stated, the singular forms "a", "an" and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.

[0041] There is a lack of methods and devices for measuring interface reuse in the market, which makes it impossible for developers and software managers to comprehensively manage and improve the reuse capabilities of programs.

[0042] In order to solve the above technical problems and make the objectives, technical solutions and advantages of the present application clearer, the specific implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.

[0043] The core of the present invention is to provide an interface multiplexing measurement method based on link tracking technology. Figure 1 The figure is a flow chart of the interface reuse measurement method based on link tracking technology provided by this embodiment. In order to better understand the method, Figure 1 The technical solution of this embodiment is described in detail:

[0044] Step S101: deploy a link tracking tool to track the interface call link in the microservice architecture;

[0045] In step S101 of this embodiment, the deployment method generally adopts mainstream open source link tracking tools on the market, such as SkyWalking, Zipkin, etc. They are designed for microservices, cloud native architectures, and container-based (Docker, K8S, Mesos) architectures. The official websites of the corresponding tools have detailed deployment documents.

[0046] Step S102: connecting the system to be measured to the link tracking tool, and configuring corresponding link tracking parameters;

[0047] Step S103, record and upload the interface call link information to the observation and analysis platform;

[0048] In step S103 of this embodiment, when a transaction occurs in the measured system, the Java agent will record the call link information and upload it to the SkyWalking observation and analysis platform.

[0049] Step S104: extracting interface call link data from the observation and analysis platform;

[0050] In step S104 of this embodiment, two methods are generally used to extract data from the link tracking tool: database and API interface. To access the database, you need to be familiar with the table or index structure of the database and write code to extract data. Some link tracking tools provide an API interface to extract data, such as SkyWalking provides a graphql interface. It should be noted that the amount of data in the API interface is limited.

[0051] In the OpenTracing link tracing model, Trace represents the tracing of the complete call chain of a request, and Span represents the request / response process of two services. A Trace contains multiple Span records.

[0052] The main fields contained in Span are detailed in Table 1 below. : :

[0053] Fields illustrate traceId Call chain tracking id spanId Process Id segmentId Segment records the execution flow information of a request in a thread refs.parentSegmentId Parent Segmentid, used to determine the consumer of the interface serviceCode Service ID, corresponding to the configured application name endpointName Terminal name, corresponding to the interface name startTime Call start time endTime Call end time type Span type, Exit or Entry component Monitored components

[0054] Table 1

[0055] Step S105: screening and deduplication of the extracted interface call link data;

[0056] In step S105 of this embodiment, filter interface data: a trace contains access data of interface, redis and database. We need to filter out records related to the interface. The type and component fields can be used for filtering. When the type value is Entry, it indicates that the endpoint is the entry of the service. Generally, the interface is exposed in springmvc or rpc mode. If the value is springmvc, the endpoint is the interface exposed by the service.

[0057] Deduplication of interface data: Each transaction generates a trace record, and a complete interface call relationship may need to be extracted from multiple trace records. We need to deduplicate and merge these records.

[0058] Step S106: establishing a mapping relationship between the filtered interface call link data and the interface analysis model;

[0059] In step S106 of this embodiment, an interface analysis model is established, and the model attributes include but are not limited to: consumer system, consumer interface name, consumer interface type, service system, service interface name, service interface type, calling method, calling time, and calling timestamp.

[0060] The mapping relationship between the link tracking model and the interface analysis model is shown in Table 2 below:

[0061]

[0062] Table 2

[0063] Step S107: Calculate the interface reuse metric according to the mapping relationship;

[0064] In step S107 of this embodiment, the values ​​of certain attributes are standardized and processed according to the needs of the metric analysis.

[0065] For example:

[0066] Calling method: The calling method value range is http and rpc. When the value of component is sprigmvc, the calling relationship is http.

[0067] Release time of the interface: the time when the interface call first occurs, which can also be modified manually.

[0068] Step S108: Evaluate the multiplexing capability of the interface based on the calculated interface multiplexing metric.

[0069] In step S108 of this embodiment, a series of data measurement indicators are defined, and then a scoring method is used to evaluate the reuse capability of the system.

[0070] As a preferred method of this embodiment, in the process of connecting the system to be measured to the link tracking tool, the link tracking tool uses SkyWalking, and the system to be measured adopts the Spring Cloud microservice architecture; the method of accessing the link tracking tool at least includes: plug-in embedding and bytecode injection agent.

[0071] As a preferred embodiment of this embodiment, in the step of connecting the system to be measured to the link tracking tool, the access method includes the following steps:

[0072] Step S1021: Add the -javaagent parameter to the startup command of the service of the measured system, and specify the path of the SkyWalking Java Agent plug-in;

[0073] Step S1022: configure the SkyWalking observation and analysis platform address and application name, and use the program name to correspond to the interface analysis model attributes of the consumer system and the service system for access.

[0074] As a preferred method of this embodiment, in the filtering and deduplication of the extracted interface call link data, the type and component fields are used for filtering when filtering the interface data, wherein when the type value is Entry, the endpoint is identified as the entry of the service.

[0075] As a preferred method of this embodiment, in calculating the interface reuse metric index according to the mapping relationship, the calculated interface reuse metric index includes but is not limited to the number of interface reuse times, interface reuse status, interface reuse improvement rate and system interface reuse degree.

[0076] As a preferred method of this embodiment, in evaluating the interface reuse capability based on the calculated interface reuse metric, when evaluating the interface reuse capability, a preset evaluation threshold is used for scoring to form a positive or negative evaluation report on interface reuse.

[0077] Furthermore, in step S108, data metrics include but are not limited to:

[0078] Interface reuse times: The number of times an interface is called by a consumer interface. One consumer interface call is counted as one reuse.

[0079] Interface reuse: Statistics on the interface reuse of the called system in a certain period of time, including: the number of newly reused interfaces, the number of old interfaces in use, the number of interfaces outside the reused system, the number of new interface reuse times, etc.

[0080] Interface reuse improvement rate: reuse times improvement rate = (date A interface reuse times - date B interface reuse times) / date B interface reuse times × 100%; reuse quantity improvement rate = (date A interface reuse quantity - date B interface reuse quantity) / date B interface reuse quantity × 100%.

[0081] System interface multiplexing rate: number of multiplexed interfaces / number of system interfaces × 100%.

[0082] Furthermore, in step S108, the overall interface reuse capability of the system or application may be evaluated based on the data metric indicators to form a positive or negative evaluation result of the interface reuse.

[0083] According to the technical solution provided in this embodiment, take the link tracking system using SkyWalking and the interface metric analysis system using Java+MySql as an example:

[0084] 1. Establish microservice interface reuse specifications

[0085] The interfaces include Spring restful interface and CRPC interface.

[0086] The Spring restful interface is called using Feign. The CRPC interface is called using self-developed components.

[0087] 2. Deploy SkyWalking and connect S1 (measured system) and N2 (service provider system) to SkyWalking.

[0088] 3. The software measurement system obtains the interface link tracking information from SkyWalking, identifies the interface call related information, and saves it in the interface call relationship table, as shown in Table 3 below:

[0089] Consumer System Consumer interface name Service provider system Service interface name Call relationship identification date S1 C1 S1 F1 2023-11-12 S1 C1 S1 F3 2023-11-12 S1 K1 N2 T1 2023-11-13 S1 C2 S1 F2 2023-12-15 S1 C3 S1 F3 2023-12-15 S1 C3 S1 F1 2023-12-15 S1 C3 S1 F2 2023-12-15 S1 K2 N2 T2 2023-12-15

[0090] Table 3

[0091] 4. Calculate metrics

[0092] The measurement dimensions are selected to perform statistics and generate reports on a monthly, quarterly, and annual basis. Taking the end of the month as an example, the report includes a monthly system reuse report, an interface reuse ranking list, an interface link relationship, etc.

[0093] Interface multiplexing degree = (number of multiplexed interfaces / total number of interfaces) x 100% = 100%

[0094] 5. Interface reuse evaluation

[0095] The evaluation threshold is set to X%. When the interface reuse rate is greater than or equal to X%, it is considered that the system has a good interface reuse effect, and if it is less than or equal to X%, it is considered that the system has a poor interface reuse effect.

[0096] In the embodiment of the present application, the link tracking technology is used to continuously obtain the operating state interface information, which is stored in the data warehouse after cleaning and processing. On this basis, the software reuse is measured, and an in-depth understanding of the usage, dependencies and interaction modes between the components in the system is achieved, so as to allocate and optimize resources, guide the optimization and adjustment of the architecture, improve the reuse rate, system scalability and maintainability, and achieve a comprehensive evaluation of the interface reuse effect. This method can greatly reduce the cost of manual data collection, while forming digital assets, providing important support for the technological development of the industry.

[0097] based on Figure 1 The embodiment shown provides an interface reuse measurement method based on link tracking technology. Figure 2 An interface multiplexing measurement device based on link tracking technology provided by an embodiment of the present application is shown. Figure 2 As shown, the device can mainly include: 201 link tracking module, 202 measured module, 203 interface multiplexing measurement module, 204 interface analysis model conversion module, 205 interface multiplexing information analysis and processing module, 206 measurement analysis module, wherein,

[0098] 201 Link tracking module: used to capture the link tracking information of the system and output the tracking result data;

[0099] 202 measured module: used for the source system that needs to be evaluated for interface reuse measurement, and connected to the link tracking system;

[0100] 203 interface multiplexing measurement module: including 204 interface analysis model conversion module, 205 interface multiplexing information analysis processing module, 206 measurement analysis module;

[0101] 204 interface analysis model conversion module: used to convert the tracking result data output by the link tracking system and map it into interface analysis model structure data;

[0102] 205 Interface reuse information analysis and processing module: used to extract key information related to measurement from the interface analysis model structure data;

[0103] 206 Metrics and Analysis Module: used to perform statistical measurements on the interface call relationships, summarize the data by statistical dimensions, calculate the number of interface reuses, interface reuse conditions, interface reuse improvement rate and system interface reuse index, and perform visual display to generate an interface reuse measurement report.

[0104] In the embodiment of the present application, the link tracking technology is used to continuously obtain the operating state interface information, which is stored in the data warehouse after cleaning and processing. On this basis, the software reuse is measured, and an in-depth understanding of the usage, dependencies and interaction modes between the components in the system is achieved, so as to allocate and optimize resources, guide the optimization and adjustment of the architecture, improve the reuse rate, system scalability and maintainability, and achieve a comprehensive evaluation of the interface reuse effect. This method can greatly reduce the cost of manual data collection, while forming digital assets, providing important support for the technological development of the industry.

[0105] It can be understood that the above modules of the interface multiplexing measurement device based on link tracking technology in this embodiment have the functions of realizing Figure 1 The functions of the corresponding steps of the method in the embodiment shown in . The function can be implemented by hardware, or by hardware executing the corresponding software. The hardware or software includes one or more modules corresponding to the above functions. The above modules can be software and / or hardware, and the above modules can be implemented separately or integrated with multiple modules. For the functional description of the above modules, please refer to Figure 1 The corresponding description of the method in the embodiment shown in will not be repeated here.

[0106] An embodiment of the present application provides an electronic device, including a processor and a memory;

[0107] A memory, used for storing operation instructions;

[0108] The processor is used to execute the interface multiplexing measurement method based on link tracking technology provided in any embodiment of the present application by calling an operation instruction.

[0109] As an example, Figure 3 A schematic diagram of the structure of an electronic device applicable to the embodiment of the present application is shown. Figure 3 As shown, the electronic device 2000 includes: a processor 2001 and a memory 2003. The processor 2001 and the memory 2003 are connected, such as through a bus 2002. Optionally, the electronic device 2000 may also include a transceiver 2004. It should be noted that in actual applications, the transceiver 2004 is not limited to one, and the structure of the electronic device 2000 does not constitute a limitation on the embodiments of the present application.

[0110] The processor 2001 is applied in the embodiment of the present application to implement the method shown in the above method embodiment. The transceiver 2004 may include a receiver and a transmitter. The transceiver 2004 is applied in the embodiment of the present application to implement the function of the electronic device of the embodiment of the present application communicating with other devices when executed.

[0111] Processor 2001 may be a CPU (Central Processing Unit), a general purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 2001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0112] The bus 2002 may include a path to transmit information between the above components. The bus 2002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 2002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0113] The memory 2003 can be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.

[0114] Optionally, the memory 2003 is used to store application code for executing the solution of the present application, and the execution is controlled by the processor 2001. The processor 2001 is used to execute the application code stored in the memory 2003 to implement the interface multiplexing measurement method based on link tracking technology provided in any embodiment of the present application.

[0115] The electronic device provided in the embodiment of the present application is applicable to any embodiment of the above method and will not be described in detail here.

[0116] An embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the interface multiplexing measurement method based on link tracking technology shown in the above method embodiment is implemented.

[0117] The computer-readable storage medium provided in the embodiments of the present application is applicable to any embodiment of the above method and will not be described in detail here.

[0118] The interface reuse measurement scheme based on link tracking technology provided in the embodiment of the present application continuously obtains the operating state interface information through link tracking technology, stores it in the data warehouse after cleaning and processing, and measures the software reuse on this basis, so as to achieve an in-depth understanding of the usage, dependency and interaction mode between the components in the system, so as to allocate and optimize resources, guide the optimization and adjustment of the architecture, improve the reuse rate, system scalability and maintainability, and realize a comprehensive evaluation of the interface reuse effect. This method can greatly reduce the cost of manual data collection, while forming digital assets, providing important support for the technological development of the industry.

[0119] An embodiment of the present application provides a computer program product, which includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the above-mentioned method for automatic configuration of microservice engineering is fully or partially executed.

[0120] A computer program product provided in an embodiment of the present application is applicable to any embodiment of the above method and will not be described in detail here.

[0121] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the specific device can be divided into different functional modules to complete all or part of the functions described above.

[0122] Those of ordinary skill in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0123] In several embodiments covered by the present application, it should be understood that the disclosed devices, equipment and methods can be implemented in other ways. For example, the division of modules is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another device, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, or it can be an electrical, mechanical or other form of connection.

[0124] The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the embodiments of the present application.

[0125] In addition, each functional module in each embodiment of the present application can be implemented in the form of hardware or in the form of software functional modules. If these functional modules are implemented in the form of software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application is essentially or part of the prior art that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a computer program product, which includes one or more computer instructions. When loading and executing computer program instructions on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer program product is stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, a computer instruction can be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integrations. The available media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVDs), or semiconductor media (eg, solid state disks (SSDs)).

[0126] The above contents are merely examples and explanations of the structure of the present invention. The technicians in this technical field may make various modifications or additions to the specific embodiments described or replace them in a similar manner. As long as they do not deviate from the structure of the invention or exceed the scope defined by the claims, they should all fall within the protection scope of the present invention.

Claims

1. An interface multiplexing measurement method based on link tracing technology, characterized in that: The following steps are involved: Deploy link tracking tools to track interface call links in microservice architecture; Connect the device to be measured to the link tracking tool and configure corresponding link tracking parameters; Record and upload interface call link information to the observation and analysis platform; Extract interface call link data from the observation and analysis platform; Filter and remove duplicates from the extracted interface call link data; Establishing a mapping relationship between the filtered interface call link data and the interface analysis model; According to the mapping relationship, calculate the interface reuse metric; Based on the calculated interface reuse metrics, the interface reuse capability is evaluated.

2. The interface multiplexing measurement method based on link tracking technology according to claim 1 is characterized in that: In the connecting the device to be measured to the link tracking tool, the link tracking tool uses SkyWalking, and the device to be measured adopts Spring Cloud microservice architecture; The method of accessing the link tracking tool at least includes: plug-in embedding and bytecode injection agent.

3. The interface multiplexing measurement method based on link tracking technology according to claim 1 is characterized in that: In the step of connecting the device to be measured to the link tracking tool, the access method includes the following steps: Add the -javaagent parameter to the startup command of the service of the measured device and specify the path of the SkyWalkingJava Agent plug-in; Configure the SkyWalking observation and analysis platform address and application name, and use the consumer device and service device with the interface analysis model attributes corresponding to the program name to access.

4. The interface multiplexing measurement method based on link tracking technology according to claim 1 is characterized in that: In the filtering and deduplication of the extracted interface call link data, the type and component fields are used for filtering when filtering the interface data, wherein when the type value is Entry, the endpoint is identified as the entry of the service.

5. The interface multiplexing measurement method based on link tracking technology according to claim 1 is characterized in that: In calculating the interface reuse metric index according to the mapping relationship, the calculated interface reuse metric index includes but is not limited to the number of interface reuse times, interface reuse status, interface reuse improvement rate and device interface reuse degree.

6. The interface multiplexing measurement method based on link tracking technology according to claim 1 is characterized in that: In evaluating the interface reuse capability based on the calculated interface reuse metric, when evaluating the interface reuse capability, a preset evaluation threshold is used for scoring to form a positive or negative evaluation report of the interface reuse.

7. An interface multiplexing measurement device based on link tracking technology, characterized in that: The device comprises: a link tracking module, a measured module, an interface multiplexing measurement module, an interface analysis model conversion module, an interface multiplexing information analysis and processing module, and a measurement analysis module, wherein: Link tracking module: used to capture the link tracking information of the system and output the tracking result data; Measured module: used for source systems that need to be evaluated for interface reuse, and connected to the link tracking system; Interface reuse measurement module: including interface analysis model conversion module, interface reuse information analysis and processing module, and measurement analysis module; The interface analysis model conversion module is used to convert the tracking result data output by the link tracking system and map it into interface analysis model structure data; The interface reuse information analysis and processing module is used to extract key information related to measurement from the interface analysis model structure data; The measurement analysis module is used to perform statistical measurement on the interface call relationship, summarize the data according to the statistical dimension, calculate the number of interface reuses, interface reuse conditions, interface reuse improvement rate and system interface reuse index, and perform visual display to generate an interface reuse measurement report.

8. An electronic device, characterized in that: including a processor and a memory; The memory is used to store operation instructions; The processor is used to execute the method according to any one of claims 1 to 6 by calling the operation instruction.

9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

10. A computer program product, characterized in that The computer program product comprises one or more computer instructions, and when the computer program instructions are loaded and executed on a computer, the method according to any one of claims 1 to 6 is fully or partially executed.