Software service-based dependency information processing method, device, and electronic device

By obtaining and processing the dependency information of software services, and using remote servers for data processing and display, it solves the difficult problems of fault propagation and upgrade caused by complex dependencies in software systems, realizes real-time retrieval and visual management of dependency information, and improves efficiency. System stability and responsiveness.

CN111966389BActive Publication Date: 2024-08-23BEIJING WATERDROP TECH GRP CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202010900954.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-31
Publication Date
2024-08-23
Estimated Expiration
2040-08-31

AI Technical Summary

Technical Problem

Complex dependencies in software systems make it difficult to propagate faults and upgrade, making it difficult for developers to accurately locate the root cause of faults and optimize service deployment, affecting system stability and response time.

Method used

By obtaining dependency information of software services, using the remote server for data processing and integration, searching and displaying target dependency information, including dependency version checking and alarm prompts, real-time retrieval and visual management of dependency information are achieved.

Benefits of technology

It improves the convenience and global management capabilities of software service dependency information inspection, reduces fault location time and losses, and ensures the stability of system iterative updates and service response performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111966389B
    Figure CN111966389B
Patent Text Reader

Abstract

The present application provides a method, device and electronic device for processing dependency information based on software services, which relates to the field of computer technology and alleviates the technical problem of low convenience in checking the dependency information of software services. The method includes: obtaining a software service and dependency information corresponding to the software service; performing data processing through a remote server based on the software service and the dependency information to obtain a data processing result; searching for and displaying target dependency information corresponding to the target software service from multiple data processing results for a target software service.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device and electronic device for processing dependency information based on software services. Background Art

[0002] As the scale and complexity of software systems increase, the completion of a software service in the software system often requires resource allocation to other software services. Through the combination and collaboration of different software services, the software system improves the efficiency of system design, development and update while providing diversified services stably.

[0003] At the same time, the complex dependencies in the system make it easy for the software system to be affected by a single fault. For example, the failure of a single software service will spread rapidly in the software system, causing a large number of services to fail, and the root cause of the failure is difficult to locate. For another example, the upgrade and change of a single software service may affect the normal operation of other software services, causing performance degradation or system failure. Therefore, accurately discovering the dependency information in the software system can not only locate the root cause of the failure in a timely manner, effectively reduce the losses caused by the failure, and ensure the stability of the service during the iterative update of the system, but also help to optimize the deployment strategy of the service according to the service dependency during the system deployment process and reduce the response time of the service.

[0004] Currently, the dependency information of software services is rather complicated, and it is relatively inconvenient for developers of software systems to check the dependency information of these software services. Summary of the invention

[0005] The object of the present invention is to provide a method, device and electronic device for processing dependency information based on software services, so as to alleviate the technical problem of low convenience in checking dependency information of software services.

[0006] In a first aspect, an embodiment of the present application provides a method for processing dependency information based on a software service, the method comprising:

[0007] Obtaining software services and dependency information corresponding to the software services;

[0008] Performing data processing through a remote server based on the software service and the dependency information to obtain a data processing result;

[0009] For a target software service, target dependency information corresponding to the target software service is searched from the plurality of data processing results and displayed.

[0010] In a possible implementation, after the step of searching for and displaying the target dependency information corresponding to the target software service from the plurality of data processing results, the method further includes:

[0011] If the dependency version in the target dependency information is lower than the preset version, an alarm prompt for dependency upgrade is triggered.

[0012] In a possible implementation, the step of obtaining the software service and the dependency information corresponding to the software service includes:

[0013] During the packaging process of the software service, the software service and dependency information corresponding to the software service are obtained through a Maven plug-in.

[0014] In a possible implementation, the dependency information includes the image information of the software service and the jar package information of the computer programming language service.

[0015] In a possible implementation, the step of performing data processing through a remote server based on the software service and the dependency information to obtain a data processing result includes:

[0016] Performing information integration on the dependency information to obtain first dependency information after information integration;

[0017] The first dependency information is processed by a remote server to obtain second dependency information after data processing.

[0018] In a possible implementation, the step of integrating the dependency information to obtain first dependency information after information integration includes:

[0019] The dependency information is integrated according to at least one of a dependency name, a dependency version, a service name, a service version, and a service packaging time to obtain first dependency information after the information integration.

[0020] In a possible implementation, before the step of performing data processing on the first dependency information through the remote server to obtain the processed second dependency information, the step further includes:

[0021] A remote service interface is called, and the software service and the first dependency information are sent to the remote server.

[0022] In a possible implementation, the step of sending the software service and the first dependency information to the remote server includes:

[0023] The software service and the first dependency information are sent to the remote server through httpclient.

[0024] In a possible implementation, the step of performing data processing on the first dependency information through a remote server to obtain the processed second dependency information includes:

[0025] Sending the first dependency information to a message queue through a remote server;

[0026] The first dependency information is processed using the message queue to obtain second dependency information after the data processing.

[0027] In a possible implementation, the step of using the message queue to perform data processing on the first dependency information to obtain the processed second dependency information includes:

[0028] The message queue is used to perform asynchronous data processing on the first dependency information to obtain second dependency information after the asynchronous data processing.

[0029] In a possible implementation, after the step of performing data processing on the first dependency information through the remote server to obtain the processed second dependency information, the step further includes:

[0030] The software service and the second dependency information are stored in a database.

[0031] In a possible implementation, the step of searching for target dependency information corresponding to the target software service from the plurality of data processing results includes:

[0032] For the received designated software service, the designated software service and the target second dependency information corresponding to the designated software service are searched from the plurality of the software services and the plurality of the second dependency information in the database through the elasticsearch search engine.

[0033] In a possible implementation, the step of displaying target dependency information corresponding to the target software service includes:

[0034] The designated software service and the target second dependency information are displayed through a visual interface.

[0035] In a possible implementation, it also includes:

[0036] For the received designated dependency information, the elasticsearch search engine is used to search the second dependency information corresponding to the designated dependency information and the software service corresponding to the designated dependency information from the plurality of the software services and the plurality of the second dependency information in the database.

[0037] In a possible implementation, the specified dependency information includes a specified dependency version.

[0038] In a possible implementation, it also includes:

[0039] The second dependency information corresponding to the specified dependency information and the software service corresponding to the specified dependency information are displayed through a visual interface.

[0040] In a second aspect, a software service-based dependency information processing device is provided, comprising:

[0041] An acquisition module, used to acquire software services and dependency information corresponding to the software services;

[0042] A processing module, used for performing data processing through a remote server based on the software service and the dependency information to obtain a data processing result;

[0043] The search module is used to search for and display target dependency information corresponding to the target software service from the plurality of data processing results.

[0044] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program that can be executed on the processor, and when the processor executes the computer program, the method described in the first aspect is implemented.

[0045] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to execute the method described in the first aspect above.

[0046] The embodiments of the present application bring the following beneficial effects:

[0047] The embodiments of the present application provide a method, device and electronic device for processing dependency information based on software services. The method can perform data processing through a remote server based on the acquired software services and the dependency information corresponding to the software services to obtain data processing results. After that, the target dependency information corresponding to the target software service can be searched and displayed from multiple data processing results for the target software service. In this solution, by searching and displaying the target dependency information corresponding to the target software service from multiple collected and processed dependency information, developers can retrieve services and dependency information in real time, and can also visualize the retrieved service dependency information, thereby improving the convenience of checking software service dependency information and the unified and effective management of global service dependency information, and alleviating the technical problem of low convenience in checking software service dependency information.

[0048] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0050] Figure 1 A flowchart of a method for processing dependency information based on software services provided in an embodiment of the present application;

[0051] Figure 2 Another flowchart of the software service-based dependency information processing method provided in an embodiment of the present application;

[0052] Figure 3 A schematic diagram of the structure of a software service-based dependency information processing device provided in an embodiment of the present application;

[0053] Figure 4 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.

[0055] The terms "including" and "having" and any variations thereof mentioned in the embodiments of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.

[0056] At present, the dependency information of software services is relatively complicated, and it is not convenient for software system developers to check the dependency information of these software services. The current environment lacks a unified management of global dependencies, and a system for obtaining corresponding services through corresponding version dependencies. When there is a problem with a dependency version, it is difficult to quickly find the service containing the dependency, which can easily cause corresponding losses. At the same time, when promoting the upgrade of corresponding dependencies, it is also necessary to be able to grasp the dependency status of all services in a timely manner so as to promote dependency upgrades in a targeted manner.

[0057] Based on this, the embodiments of the present application provide a method, device and electronic device for processing dependency information based on software services, through which the technical problem of low convenience in checking dependency information of software services can be alleviated.

[0058] The embodiments of the present invention are further described below in conjunction with the accompanying drawings.

[0059] Figure 1 A flowchart of a software service-based dependency information processing method provided in an embodiment of the present application. Figure 1 As shown, the method includes:

[0060] Step S110, obtaining software services and dependency information corresponding to the software services.

[0061] It should be noted that the dependency information can be understood as the resource allocation to other services in order to complete a response to a service request.

[0062] The software service and the dependency information corresponding to the software service may be image information and jar package information of the java service. Figure 2 As shown, the dependency information processing system can collect service dependency information jar packages and image information.

[0063] Step S120, performing data processing through a remote server based on the software service and dependency information to obtain a data processing result.

[0064] In this step, the dependency information processing system may process the dependency information of the software service through the remote server.

[0065] Step S130 , searching for and displaying target dependency information corresponding to the target software service from a plurality of data processing results for the target software service.

[0066] The dependency information processing system searches for and displays the target dependency information corresponding to the target software service from multiple collected and processed dependency information, making it easy for developers to retrieve services and dependency information in real time, and also to visualize the retrieved service dependency information, thereby improving the convenience of checking software service dependency information and the unified and effective management of global service dependency information.

[0067] The above steps are described in detail below.

[0068] In some embodiments, the dependency information processing system may also provide a dynamic alarm function according to the dependency version to promote dependency upgrades. As an example, after step S130, the method may further include the following steps:

[0069] Step a), if the dependency version in the target dependency information is lower than the preset version, an alarm prompt for dependency upgrade is triggered.

[0070] In actual applications, when the version of a service dependency is lower than the specified version, an alarm mechanism can be triggered to remind the relevant person in charge to upgrade the dependency. At the same time, when promoting the corresponding dependency upgrade, the dependency status of all services can be grasped in time, so as to promote the dependency upgrade in a targeted manner.

[0071] In the embodiment of the present application, it is possible to query services according to the corresponding version dependencies, set the corresponding dependency version, and dynamically remind the corresponding service person in charge to upgrade the dependency. For example, when there is a problem with a dependency version, the service containing the dependency can be quickly checked to avoid causing corresponding losses.

[0072] In some embodiments, the dependency information processing system may collect dependency information by packaging service items. As an example, the above step S110 may include the following steps:

[0073] Step b), during the packaging process of the software service, the software service and the dependency information corresponding to the software service are obtained through the Maven plug-in.

[0074] Among them, the role of the Maven plug-in is to perform some actions and behaviors in the process of building a project. For example, the Maven plug-in is used to execute the packaged jar. In the embodiment of the present application, Figure 2 As shown, the dependency information processing system can collect and obtain the dependency information of the corresponding services more quickly and efficiently through scripts during the service project packaging process.

[0075] In some embodiments, the dependency information may include image information of software services and jar package information of computer programming language services. Figure 2 As shown, the dependency information processing system can collect service dependency information jar packages and image information. Through the image information of the software service and the jar package information of the computer programming language service, more comprehensive information about the software service and its dependency information can be displayed in the subsequent data visualization interface display process.

[0076] In some embodiments, before the remote server processes the first dependency information, the dependency information may be integrated. As an example, the above step S120 may include the following steps:

[0077] Step c), integrating the dependency information to obtain first dependency information after information integration;

[0078] Step d), performing data processing on the first dependency information through a remote server to obtain second dependency information after data processing.

[0079] By integrating the dependent information and processing the integrated information by the remote server, the processed dependent information can be easily retrieved and queried.

[0080] Based on the above steps c) and d), the above step c) may specifically include the following steps:

[0081] The dependency information is integrated according to at least one of a dependency name, a dependency version, a service name, a service version, and a service packaging time to obtain first dependency information after the information integration.

[0082] In actual applications, the dependency information processing system can integrate dependency information according to dependency name, dependency version, and service name, service version, and service packaging time. In the continuous integration (CI) process, remote service interfaces can also be called, such as Figure 2 As shown, the collected and integrated services and their dependency information are sent to the remote service for processing through HttpClient (a subproject under Apache Jakarta Common).

[0083] By integrating dependency information according to certain rules such as dependency version, service version, service packaging time, and processing the integrated information by the remote server, the processed dependency information can be more convenient for retrieval and query.

[0084] Based on the above steps c) and d), before the above step d), the method may further include the step of calling a remote service interface and sending the software service and the first dependency information to the remote server. By calling the remote service interface, the software service and the first dependency information can be sent to the remote server more quickly and efficiently, which facilitates the remote server to process the first dependency information.

[0085] Based on this, the step of sending the software service and the first dependency information to the remote server may include: sending the software service and the first dependency information to the remote server via httpclient.

[0086] Among them, httpclient can be used to provide an efficient, up-to-date, feature-rich client programming toolkit that supports the HTTP protocol, and it supports the latest version and recommendations of the HTTP protocol. Through httpclient, software services and first dependency information can be sent to the remote server more quickly, accurately and efficiently.

[0087] Based on the above steps c) and d), the dependent information processing system can use the message queue to implement the data processing process of the dependent information to reduce the pressure on the server. As an example, the above step d) may include the following steps:

[0088] Step e), sending the first dependency information to a message queue through a remote server;

[0089] Step f), using the message queue to perform data processing on the first dependency information to obtain second dependency information after data processing.

[0090] like Figure 2 As shown, by introducing a message queue for corresponding data processing, it is convenient to process and store dependent information, and it can avoid sending multiple service dependencies at the same time. That is, after the processing service receives the dependent information, it first sends the information to the message queue to reduce the pressure on the service end and improve the efficiency of processing dependent messages.

[0091] Based on the above steps e) and f), step f) may specifically include the step of: using the message queue to perform asynchronous data processing on the first dependency information to obtain second dependency information after asynchronous data processing. Figure 2 As shown, after the introduction of the message queue, asynchronous processing and storage of corresponding data such as dependency information can avoid sending multiple service dependencies at the same time and improve the efficiency of asynchronous processing of dependency messages.

[0092] In some embodiments, the dependency information processing system may also persist the dependency information after asynchronous processing, such as Figure 2 As an example, after the above step d), the method may further include the following steps:

[0093] Step g), storing the software service and the second dependency information in a database.

[0094] In the embodiment of the present application, the dependency information processing system can persist the dependency information to a database (DB for short) so that the dependency information after asynchronous processing can be persisted, making it easier to search and query the dependency information therefrom.

[0095] Based on the above step g), the dependency information processing system can also introduce the elasticsearch search engine to improve the retrieval performance of dependency information. As an example, the process of searching for the target dependency information corresponding to the target software service in the above step S130 can include the following steps:

[0096] Step h), for the received designated software service, searching the designated software service and the target second dependency information corresponding to the designated software service from multiple software services and multiple second dependency information in the database through elasticsearch search engine.

[0097] For example, Figure 2 As shown in the figure, the dependency information processing system can synchronize recent data to the elasticsearch search server. At the same time, it can also refresh the software service regularly and detect the dependency of services in different environments.

[0098] It should be noted that Elasticsearch is a search server that provides a distributed multi-user full-text search engine. It can also be understood that elasticsearch is an open source, highly scalable distributed full-text search engine that can store and retrieve data in near real time.

[0099] The Elasticsearch search engine can support fast and efficient search for dependency information corresponding to software services.

[0100] Based on this, the process of displaying the target dependency information corresponding to the target software service in the above step S130 may include the following steps:

[0101] Step i) displays the designated software service and the target second dependency information through a visual interface.

[0102] In the embodiment of the present application, the retrieved dependency information can be displayed in a variety of different forms. For example, the retrieved dependency information can be displayed in the form of a table, and the dependency information table searched and viewed is displayed through a visual interface to be more clearly presented to the corresponding service developer. Through the visual interface, it is possible to support the viewing of software service jar and image information.

[0103] Based on the above step g), the dependency information processing system can also support reverse query of corresponding services through dependency information. As an example, the method can also include the following steps:

[0104] Step j), for the received designated dependency information, search the second dependency information corresponding to the designated dependency information and the software service corresponding to the designated dependency information from the plurality of the software services and the plurality of the second dependency information in the database through the elasticsearch search engine.

[0105] By searching the database for the second dependency information corresponding to the designated dependency information, the functional support of reversely checking the corresponding service through the dependency information can be realized, which is more convenient for the query process of the staff and makes the dependency information processing process more flexible.

[0106] Based on the above step j), the specified dependency information includes the specified dependency version. By checking the dependency version, the corresponding service can be queried according to the dependency version without obtaining all the dependency information, which makes the query process of the corresponding software service more convenient.

[0107] Based on the above step g), the software service retrieved in reverse can also be displayed through a visual interface. As an example, the method can also include the following steps:

[0108] Step k) displays the second dependency information corresponding to the specified dependency information and the software service corresponding to the specified dependency information through a visual interface.

[0109] By reversely querying the software service machine dependency information and displaying the query results, staff can check and view more aspects of service dependency information.

[0110] Figure 3 A schematic diagram of a software service-based dependency information processing device is provided. Figure 3 As shown, the software service-based dependency information processing device 300 includes:

[0111] An acquisition module 301 is used to acquire software services and dependency information corresponding to the software services;

[0112] A processing module 302 is used to perform data processing through a remote server based on the software service and the dependency information to obtain a data processing result;

[0113] The search module 303 is used to search for and display target dependency information corresponding to the target software service from the plurality of data processing results.

[0114] In some embodiments, the apparatus further comprises:

[0115] The trigger module is used to trigger an alarm prompt for dependency upgrade after searching and displaying the target dependency information corresponding to the target software service from the multiple data processing results, if the dependency version in the target dependency information is lower than the preset version.

[0116] In some embodiments, the acquisition module 301 is specifically used to:

[0117] During the packaging process of the software service, the software service and dependency information corresponding to the software service are obtained through a Maven plug-in.

[0118] In some embodiments, the dependency information includes image information of the software service and jar package information of the computer programming language service.

[0119] In some embodiments, the processing module 302 is specifically configured to:

[0120] Performing information integration on the dependency information to obtain first dependency information after information integration;

[0121] The first dependency information is processed by a remote server to obtain second dependency information after data processing.

[0122] In some embodiments, the processing module 302 is further configured to:

[0123] The dependency information is integrated according to at least one of a dependency name, a dependency version, a service name, a service version, and a service packaging time to obtain first dependency information after the information integration.

[0124] In some embodiments, the apparatus further comprises:

[0125] The sending module is used to call the remote service interface and send the software service and the first dependency information to the remote server.

[0126] In some embodiments, the sending module is specifically used to:

[0127] The software service and the first dependency information are sent to the remote server through httpclient.

[0128] In some embodiments, the processing module 302 is specifically configured to:

[0129] Sending the first dependency information to a message queue through a remote server;

[0130] The first dependency information is processed using the message queue to obtain second dependency information after the data processing.

[0131] In some embodiments, the processing module 302 is further configured to:

[0132] The message queue is used to perform asynchronous data processing on the first dependency information to obtain second dependency information after the asynchronous data processing.

[0133] In some embodiments, the apparatus further comprises:

[0134] A storage module is used to store the software service and the second dependency information in a database.

[0135] In some embodiments, the search module 303 is specifically used to:

[0136] For the received designated software service, the designated software service and the target second dependency information corresponding to the designated software service are searched from the plurality of the software services and the plurality of the second dependency information in the database through the elasticsearch search engine.

[0137] In some embodiments, the search module 303 is specifically used to:

[0138] The designated software service and the target second dependency information are displayed through a visual interface.

[0139] In some embodiments, the search module 303 is further configured to:

[0140] For the received designated dependency information, the elasticsearch search engine is used to search the second dependency information corresponding to the designated dependency information and the software service corresponding to the designated dependency information from the plurality of the software services and the plurality of the second dependency information in the database.

[0141] In some embodiments, the specified dependency information includes a specified dependency version.

[0142] In some embodiments, the apparatus further comprises:

[0143] The display module is used to display the second dependency information corresponding to the specified dependency information and the software service corresponding to the specified dependency information through a visual interface.

[0144] The software service-based dependency information processing device provided in the embodiment of the present application has the same technical features as the software service-based dependency information processing method provided in the above-mentioned embodiment, so it can also solve the same technical problems and achieve the same technical effects.

[0145] An electronic device provided in an embodiment of the present application is Figure 4 As shown, the electronic device 400 includes a memory 401 and a processor 402. The memory stores a computer program that can be run on the processor. When the processor executes the computer program, the steps of the method provided in the above embodiment are implemented.

[0146] See also Figure 4The electronic device further includes: a bus 403 and a communication interface 404, a processor 402, a communication interface 404 and a memory 401 are connected via the bus 403; the processor 402 is used to execute an executable module stored in the memory 401, such as a computer program.

[0147] The memory 401 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 404 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.

[0148] The bus 403 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0149] Among them, the memory 401 is used to store programs, and the processor 402 executes the program after receiving the execution instruction. The method executed by the device defined by the process disclosed in any embodiment of the present application can be applied to the processor 402 or implemented by the processor 402.

[0150] The processor 402 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 402. The above processor 402 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor to execute, or the hardware and software modules in the decoding processor can be combined to execute. The software module may be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 401, and the processor 402 reads the information in the memory 401 and completes the steps of the above method in combination with its hardware.

[0151] Corresponding to the above-mentioned software service-based dependency information processing method, an embodiment of the present application also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to execute the steps of the above-mentioned software service-based dependency information processing method.

[0152] The software service-based information processing device provided in the embodiment of the present application can be specific hardware on the device or software or firmware installed on the device. The device provided in the embodiment of the present application, its implementation principle and the technical effect produced are the same as those in the aforementioned method embodiment. For the sake of brief description, the parts not mentioned in the device embodiment can refer to the corresponding contents in the aforementioned method embodiment. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can all refer to the corresponding processes in the aforementioned method embodiment, and will not be repeated here.

[0153] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0154] For another example, the flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the device, method and computer program product according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of the boxes in the block diagram and / or the flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0155] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0156] In addition, each functional unit in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0157] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the software service-based dependent information processing method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.

[0158] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.

[0159] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solution of the present application, rather than to limit it. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the aforementioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solution recorded in the aforementioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solution deviate from the scope of the technical solution of the embodiment of the present application. They should all be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A method for processing dependency information based on software services, characterized in that: The method comprises: Obtaining software services and dependency information corresponding to the software services; Performing data processing through a remote server based on the software service and the dependency information to obtain a data processing result; Searching for and displaying target dependency information corresponding to the target software service from the plurality of data processing results for the target software service; The step of obtaining the software service and the dependency information corresponding to the software service includes: During the packaging process of the software service, the software service and dependency information corresponding to the software service are obtained through a Maven plug-in; The dependency information includes the image information of the software service and the jar package information of the computer programming language service; The step of performing data processing through a remote server based on the software service and the dependency information to obtain a data processing result includes: Performing information integration on the dependency information to obtain first dependency information after information integration; Processing the first dependency information through a remote server to obtain second dependency information after the data processing; After the step of performing data processing on the first dependency information through the remote server to obtain the second dependency information after the data processing, the method further includes: storing the software service and the second dependency information in a database; Also includes: For the received designated dependency information, searching, by using an elasticsearch search engine, from the plurality of software services and the plurality of second dependency information in the database, the second dependency information corresponding to the designated dependency information and the software service corresponding to the designated dependency information; Also includes: Displaying, through a visual interface, the second dependency information corresponding to the specified dependency information and the software service corresponding to the specified dependency information; The step of performing data processing on the first dependency information through the remote server to obtain the processed second dependency information includes: Sending the first dependency information to a message queue through a remote server; Using the message queue to perform data processing on the first dependency information to obtain second dependency information after the data processing; The step of using the message queue to process the first dependency information to obtain the processed second dependency information includes: The message queue is used to perform asynchronous data processing on the first dependency information to obtain second dependency information after the asynchronous data processing.

2. The method for processing dependency information based on software services according to claim 1, characterized in that: After the step of searching for and displaying target dependency information corresponding to the target software service from the plurality of data processing results, the method further includes: If the dependency version in the target dependency information is lower than the preset version, an alarm prompt for dependency upgrade is triggered.

3. The software service-based dependency information processing method according to claim 1, characterized in that: The step of integrating the dependency information to obtain first dependency information after information integration includes: The dependency information is integrated according to at least one of a dependency name, a dependency version, a service name, a service version, and a service packaging time to obtain first dependency information after the information integration.

4. The method for processing dependency information based on software services according to claim 1, characterized in that: Before the step of performing data processing on the first dependency information through the remote server to obtain the second dependency information after the data processing, the method further includes: A remote service interface is called, and the software service and the first dependency information are sent to the remote server.

5. The method for processing dependency information based on software services according to claim 4, characterized in that: The step of sending the software service and the first dependency information to the remote server includes: The software service and the first dependency information are sent to the remote server through httpclient.

6. The software service-based dependency information processing method according to claim 1, characterized in that: The specified dependency information includes a specified dependency version.

7. A software service-based dependency information processing device, characterized in that: include: An acquisition module, used to acquire software services and dependency information corresponding to the software services; A processing module, used for performing data processing through a remote server based on the software service and the dependency information to obtain a data processing result; A search module, used to search for and display target dependency information corresponding to a target software service from a plurality of the data processing results; The acquisition module is specifically used for: During the packaging process of the software service, the software service and dependency information corresponding to the software service are obtained through a Maven plug-in; The dependency information includes the image information of the software service and the jar package information of the computer programming language service; The processing module is specifically used for: Performing information integration on the dependency information to obtain first dependency information after information integration; Processing the first dependency information through a remote server to obtain second dependency information after the data processing; The device also includes: A storage module, used for storing the software service and the second dependency information in a database; The search module is also used to: For the received designated dependency information, searching, by using an elasticsearch search engine, from the plurality of software services and the plurality of second dependency information in the database, the second dependency information corresponding to the designated dependency information and the software service corresponding to the designated dependency information; The device also includes: A display module, used to display the second dependency information corresponding to the specified dependency information and the software service corresponding to the specified dependency information through a visual interface; The processing module is specifically used for: Sending the first dependency information to a message queue through a remote server; Using the message queue to perform data processing on the first dependency information to obtain second dependency information after the data processing; The processing module is also used to: The message queue is used to perform asynchronous data processing on the first dependency information to obtain second dependency information after the asynchronous data processing.

8. An electronic device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to execute the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Micro service version management method and device, medium and electronic device

    CN108153547A

  • Method and device for achieving software packaging

    CN110442376A

  • Operation method and device for deployment deliverables based on microservices

    CN110704061A

  • Asynchronous file operations in a scalable multi-node file system cache for a remote cluster file system

    US20110145499A1

  • Client-side aggregation of nested resource dependencies

    US20140207846A1