Micro-service construction method and device based on SVG technology

Through the microservice construction method based on SVG technology, basic microservices are created by monitoring operation information and metadata information, which solves the problems of low efficiency and low convenience of existing microservice design, and realizes efficient and convenient microservice construction and user-friendly user experience.

CN115525257BActive Publication Date: 2025-10-17SHENZHEN COMTOP INFORMATION TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211228816.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-08
Publication Date
2025-10-17
Estimated Expiration
2042-10-08

AI Technical Summary

Technical Problem

The current microservice design approach has problems of low efficiency and low convenience. The existing design software is highly professional and has a poor user experience.

Method used

A microservice construction method based on SVG technology is adopted. The microservice basic model and metadata information are determined by monitoring operation information, basic microservices are created, and target microservices are constructed according to the target microservice layer and editing information.

Benefits of technology

It improves the efficiency and convenience of microservice construction, enhances user experience and user stickiness, and realizes the rationality and comprehensiveness of microservice construction methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115525257B_ABST
    Figure CN115525257B_ABST
Patent Text Reader

Abstract

The application discloses a micro-service construction method based on SVG technology, which comprises the following steps: determining a micro-service basic model according to monitored first operation information, and determining metadata information according to monitored second operation information and the micro-service basic model; creating a basic micro-service according to the micro-service basic model and the metadata information, and determining at least one target micro-service layer according to the basic micro-service and acquired micro-service layer determination information; determining target editing information according to all target micro-service layers and the basic micro-service; and constructing a target micro-service according to the target editing information, all target micro-service layers and the micro-service basic model. It can be seen that the target micro-service can be intelligently constructed, which is beneficial to improving the rationality, comprehensiveness and intelligence of the micro-service construction method, and further beneficial to improving the construction efficiency and convenience of the micro-service, which can improve the use experience of users and improve the user stickiness.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of micro-service information technology, and in particular to a micro-service construction method and device based on SVG technology. BACKGROUND

[0002] With the rapid development of cloud computing, Internet of Things and other technologies, the demand of users for software systems tends to be diversified, among which, the micro-service design demand is particularly important. At present, the micro-service design methods are mostly to use professional design software such as EA, which is suitable for UML, BPMN, Archimate and other designs, and has strong professional nature and high implementation difficulty. In addition, drawing software such as Billings and Drawio is also used for auxiliary design, but such software only has drawing capability and lacks business knowledge of micro-service, and the user experience is poor. Therefore, the current micro-service design method has the problems of low efficiency and low convenience. Therefore, it is particularly important to provide a micro-service construction method capable of improving the construction convenience and construction efficiency. SUMMARY

[0003] The technical problem to be solved by the present application is to provide a micro-service construction method and device based on SVG technology, which can improve the construction efficiency and construction convenience of micro-service.

[0004] In order to solve the above technical problems, the first aspect of the present application discloses a micro-service construction method based on SVG technology, which comprises:

[0005] According to the monitored first operation information, a micro-service basic model is determined, and according to the monitored second operation information and the micro-service basic model, metadata information is determined;

[0006] According to the micro-service basic model and the metadata information, a basic micro-service is created, and according to the basic micro-service and the obtained micro-service layer determination information, at least one target micro-service layer is determined;

[0007] According to all the target micro-service layers and the basic micro-service, target editing information is determined;

[0008] According to the target editing information, all the target micro-service layers and the micro-service basic model, a target micro-service is constructed.

[0009] As an optional implementation manner, in the first aspect of the present application, the types corresponding to all the target micro-service layers include one or more of the following types: interaction layer type, scene layer type, domain layer type, external service layer type and other service layer type; and the determination of at least one target micro-service layer according to the basic micro-service and the obtained micro-service layer determination information comprises:

[0010] The analysis microservice layer determination information comprises microservice layer determination requirements and microservice layer association information, and microservice layer analysis conditions are obtained; the microservice layer analysis conditions are used to represent the demand degree of each microservice layer in the preset microservice layer set for the target microservice to be constructed;

[0011] According to the microservice layer analysis conditions, microservice layers whose demand degrees meet the preset demand degree condition are screened from the microservice layer set as target microservice layers.

[0012] As an optional implementation, in the first aspect of the present application, the analysis microservice layer determination information comprises microservice layer determination requirements and microservice layer association information, and microservice layer analysis conditions are obtained, comprising:

[0013] According to the microservice layer determination requirements and the microservice layer association information comprised in the microservice layer determination information, a first sub-demand degree corresponding to each microservice layer in the microservice layer set is determined;

[0014] Target first sub-demand degrees meeting the sub-demand degree condition are determined from all the first sub-demand degrees, and first microservice layers corresponding to all the target first sub-demand degrees are determined;

[0015] For each second microservice layer, an association degree between the second microservice layer and the first microservice layers is determined according to all the first microservice layers and the preset microservice layer relationship; the second microservice layer is a microservice layer in the microservice layer set except all the first microservice layers; a second sub-demand degree corresponding to the second microservice layer is determined according to the association degree and the first sub-demand degree;

[0016] According to the target first sub-demand degrees corresponding to all the first microservice layers and the second sub-demand degrees corresponding to all the second microservice layers, microservice layer analysis conditions are determined.

[0017] As an optional implementation, in the first aspect of the present application, the method further comprises:

[0018] The number of target microservice layers is calculated;

[0019] When the number is greater than or equal to a preset number threshold, configuration information corresponding to each target microservice layer is obtained, the configuration information corresponding to the target microservice layer comprising at least one of business function information, application scenario information, applicable field information and hardware requirement information;

[0020] According to the association division condition and the configuration information corresponding to all the target microservice layers, an association division condition corresponding to all the target microservice layers is determined; the association division condition is used to represent the combination factor between all the target microservice layers;

[0021] determine a combination result corresponding to all the target microservice layers according to the association division condition and the association division case;

[0022] And the target microservice is constructed according to the target editing information, all the target microservice layers and the microservice base model.

[0023] The target microservice is constructed according to the combination result, the target editing information, all the target microservice layers and the microservice base model.

[0024] As an optional implementation, in the first aspect of the present application, the association division case corresponding to all the target microservice layers is determined according to the association division condition and the configuration information corresponding to all the target microservice layers, and the method comprises the following steps:

[0025] The sub-combination degree corresponding to each two target microservice layers is calculated according to the association division condition and the configuration information corresponding to all the target microservice layers; the association division condition comprises one or more of the following conditions: functional division condition, front and rear necessity division condition, category division condition, demand division condition, technical advancement division condition, and continuous use time length and distance from use time length division condition.

[0026] The association division case corresponding to all the target microservice layers is determined according to the association division condition and all the sub-combination degrees.

[0027] And the method further comprises the following steps:

[0028] It is judged whether there are at least three target microservice layers satisfying the set combination conflict condition in all the target microservice layers according to all the sub-combination degrees.

[0029] When the judgment result is yes, a conflict adjustment result is determined according to the sub-combination degree, the corresponding configuration information and the conflict adjustment condition of the at least three target microservice layers satisfying the combination conflict condition, and the operation of determining the association division case corresponding to all the target microservice layers according to the association division condition and all the sub-combination degrees is performed based on the conflict adjustment result.

[0030] When the judgment result is no, the operation of determining the association division case corresponding to all the target microservice layers according to the association division condition and all the sub-combination degrees is performed.

[0031] As an optional implementation, in the first aspect of the present application, the method further comprises the following steps:

[0032] monitoring indication signal corresponding trajectory information in a current microservice layer, and determining whether the indication signal meets preset layer jump conditions according to the trajectory information; the trajectory information includes one or more of trajectory route information, trajectory time rate information, and trigger behavior information; the current microservice layer includes the target microservice layer;

[0033] When the determination result is yes, determine a current construction process according to obtained microservice construction information; the microservice construction information includes one or more of microservice construction completion degree, detected construction operation trajectory, and user triggered operation instruction;

[0034] According to the trajectory information, the current construction process, and set basic construction flow information, predict a construction trend, and perform a layer jump operation according to the construction trend to trigger entering a microservice layer construction page corresponding to the construction trend to perform corresponding construction operations.

[0035] As an optional implementation, in the first aspect of the application, the target editing information is determined according to all the target microservice layers and the basic microservice, including:

[0036] At least one configuration to be edited is determined according to all the target microservice layers and the basic microservice;

[0037] According to set information editing conditions and configuration types corresponding to all the to-be-edited configuration contents, first to-be-edited configuration contents meeting hard definition conditions and second to-be-edited configuration contents meeting free definition conditions are screened out from all the to-be-edited configuration contents;

[0038] The first editing information corresponding to the first to-be-edited configuration content is determined according to preset basic editing information, and the second editing information corresponding to the second to-be-edited configuration content is obtained;

[0039] The target editing information is determined according to the first editing information and the second editing information.

[0040] The second aspect of the application discloses a microservice construction device based on SVG technology, and the device includes:

[0041] A determination module is configured to determine a microservice basic model according to monitored first operation information, and determine metadata information according to monitored second operation information and the microservice basic model;

[0042] A creation module is configured to create a basic microservice according to the microservice basic model and the metadata information;

[0043] The determining module is further configured to determine at least one target microservice layer according to the basic microservice and the obtained microservice layer determination information, and determine target editing information according to all the target microservice layers and the basic microservice.

[0044] The microservice construction module is configured to construct a target microservice according to the target editing information, all the target microservice layers, and the microservice basic model.

[0045] As an optional implementation, in the second aspect of the present application, the corresponding types of all the target microservice layers include one or more of an interaction layer type, a scenario layer type, a domain layer type, an external service layer type, and an other service layer type, and the determining module determines at least one target microservice layer according to the basic microservice and the obtained microservice layer determination information in the following manner:

[0046] The microservice layer determination information includes microservice layer determination requirements and microservice layer association information, and the microservice layer analysis situation is obtained by analyzing the microservice layer determination requirements and the microservice layer association information; the microservice layer analysis situation is used to represent the demand degree of each microservice layer in a preset microservice layer set for the target microservice to be constructed;

[0047] According to the microservice layer analysis situation, the microservice layer set is filtered to obtain a microservice layer that meets a preset demand degree condition as a target microservice layer.

[0048] As an optional implementation, in the second aspect of the present application, the determining module analyzes the microservice layer determination requirements and the microservice layer association information included in the microservice layer determination information to obtain a microservice layer analysis situation in the following manner:

[0049] According to the microservice layer determination requirements and the microservice layer association information included in the microservice layer determination information, a first sub-demand degree corresponding to each microservice layer in the microservice layer set is determined.

[0050] Target first sub-demand degrees that meet a sub-demand degree condition are determined from all the first sub-demand degrees, and first microservice layers corresponding to all the target first sub-demand degrees are determined.

[0051] For each second microservice layer, an association degree between the second microservice layer and the first microservice layers is determined according to all the first microservice layers and a preset microservice layer relationship; the second microservice layer is a microservice layer in the microservice layer set except the first microservice layers; and a second sub-demand degree corresponding to the second microservice layer is determined according to the association degree and the first sub-demand degree.

[0052] According to the target first sub-demand degree corresponding to all the first micro-service layers and the second sub-demand degree corresponding to all the second micro-service layers, a micro-service layer analysis situation is determined.

[0053] As an optional implementation, in the second aspect of the present application, the device further comprises:

[0054] A calculation module is configured to calculate the number of target micro-service layers.

[0055] A obtaining module is configured to obtain configuration information corresponding to each target micro-service layer when the number is greater than or equal to a set number threshold, wherein the configuration information corresponding to the target micro-service layer includes at least one of business function information, application scenario information, applicable field information, and hardware requirement information.

[0056] The determination module is further configured to determine an association division situation corresponding to all the target micro-service layers according to an association division condition and the configuration information corresponding to all the target micro-service layers, wherein the association division situation represents a combination factor between all the target micro-service layers, and a combination result corresponding to all the target micro-service layers is determined according to the association division situation and the association division condition.

[0057] The micro-service construction module constructs the target micro-service according to the target editing information, all the target micro-service layers, and the micro-service base model.

[0058] The target micro-service is constructed according to the combination result, the target editing information, all the target micro-service layers, and the micro-service base model.

[0059] As an optional implementation, in the second aspect of the present application, the determination module determines the association division situation corresponding to all the target micro-service layers according to an association division condition and the configuration information corresponding to all the target micro-service layers in the following manner:

[0060] According to the association division condition and the configuration information corresponding to all the target micro-service layers, a sub-combination degree corresponding to each two target micro-service layers is calculated, wherein the association division condition includes one or more of a functional division condition, a front and back necessity division condition, a category division condition, a demand division condition, a technical advancement division condition, and a continuous use time length and distance use time length division condition.

[0061] According to the association division condition and all the sub-combination degrees, the association division situation corresponding to all the target micro-service layers is determined.

[0062] The device further comprises:

[0063] a determining module configured to determine, according to the association division condition and all the sub-combination degrees, the association division situation corresponding to all the target micro-service layers.

[0064] The determining module is further configured to, when the judging module judges that there are at least three target micro-service layers satisfying the set combination conflict condition in all the target micro-service layers, determine a conflict adjustment result according to the sub-combination degrees, the corresponding configuration information and the conflict adjustment condition of the at least three target micro-service layers satisfying the combination conflict condition, and perform the operation of determining, according to the association division condition and all the sub-combination degrees, the association division situation corresponding to all the target micro-service layers based on the conflict adjustment result.

[0065] As an optional implementation form, in the second aspect, the apparatus further comprises:

[0066] a monitoring module configured to monitor trajectory information corresponding to an indication signal in a current micro-service layer; the trajectory information comprises one or more of trajectory route information, trajectory time rate information and trigger behavior information; the current micro-service layer comprises the target micro-service layer;

[0067] The judging module is further configured to judge whether the indication signal satisfies a preset level jump condition according to the trajectory information.

[0068] The determining module is further configured to, when the judging module judges that the indication signal satisfies the level jump condition, determine a current construction process situation according to the obtained micro-service construction information; the micro-service construction information comprises one or more of micro-service construction completion degree, detected construction operation trajectory and user triggered operation instruction.

[0069] a predicting module configured to predict a construction trend according to the trajectory information, the current construction process and set basic construction flow information.

[0070] an executing module configured to perform a level jump operation according to the construction trend, so as to trigger corresponding construction operation on a micro-service layer construction page corresponding to the construction trend.

[0071] As an optional implementation form, in the second aspect, the determining module determines the target editing information in the following manner:

[0072] determine at least one configuration to be edited according to all the target micro-service layers and the basic micro-service;

[0073] screen first configuration content to be edited and second configuration content to be edited from all the configuration content to be edited according to the set information editing condition and the configuration type corresponding to all the configuration content to be edited;

[0074] determine first editing information corresponding to the first configuration content to be edited according to preset basic editing information, and obtain second editing information corresponding to the second configuration content to be edited;

[0075] determine target editing information according to the first editing information and the second editing information.

[0076] The third aspect of the present application discloses another micro-service construction device based on SVG technology, which comprises:

[0077] a memory storing executable program code;

[0078] a processor coupled with the memory;

[0079] the processor invokes the executable program code stored in the memory to execute the micro-service construction method based on SVG technology disclosed in the first aspect of the present application.

[0080] The fourth aspect of the present application discloses a computer storage medium storing computer instructions, which are invoked to execute the micro-service construction method based on SVG technology disclosed in the first aspect of the present application.

[0081] Compared with the prior art, the embodiments of the present application have the following beneficial effects:

[0082] In the embodiment of the present application, the micro-service base model is determined according to the monitored first operation information, the metadata information is determined according to the monitored second operation information and the micro-service base model, the base micro-service is created according to the micro-service base model and the metadata information, at least one target micro-service layer is determined according to the base micro-service and the acquired micro-service layer determination information, the target editing information is determined according to all the target micro-service layers and the base micro-service, and the target micro-service is constructed according to the target editing information, all the target micro-service layers and the micro-service base model. It can be seen that the present application can intelligently construct the target micro-service according to the determined operation information, metadata information, editing information and target micro-service layer, which is beneficial to improve the rationality, comprehensiveness and intelligence of the micro-service construction method, and further beneficial to improve the construction efficiency and construction convenience of the micro-service, which not only improves the user experience, but also improves the user stickiness of the micro-service construction method based on SVG technology and the constructed micro-service. BRIEF DESCRIPTION OF DRAWINGS

[0083] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0084] Figure 1 is a flow diagram of a micro-service construction method based on SVG technology disclosed by the embodiment of the present application;

[0085] Figure 2 is a flow diagram of another micro-service construction method based on SVG technology disclosed by the embodiment of the present application;

[0086] Figure 3 is a structural diagram of a micro-service construction device based on SVG technology disclosed by the embodiment of the present application;

[0087] Figure 4 is a structural diagram of another micro-service construction device based on SVG technology disclosed by the embodiment of the present application;

[0088] Figure 5 is a structural diagram of another micro-service construction device based on SVG technology disclosed by the embodiment of the present application;

[0089] Figure 6 is a micro-service construction flow diagram of a micro-service construction method based on SVG technology disclosed by the embodiment of the present application;

[0090] Figure 7It is a SVG technology general rendering engine architecture design schematic diagram of a micro-service construction method based on SVG technology disclosed by the embodiment of the present application.

[0091] Figure 8 It is a micro-service model graph element definition flow schematic diagram of a micro-service construction method based on SVG technology disclosed by the embodiment of the present application.

[0092] Figure 9 It is a micro-service directory division view schematic diagram of a micro-service construction method based on SVG technology disclosed by the embodiment of the present application. DETAILED DESCRIPTION

[0093] In order to enable personnel in the art to better understand the present application scheme, the technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.

[0094] The terms "first", "second", and the like in the specification and claims of the present application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, device, product or end including a series of steps or units is not limited to the listed steps or units, but can optionally include steps or units not listed, or can optionally include other steps or units inherent to the process, method, product or end.

[0095] In this document, reference to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearance of the phrase in various places in the specification does not necessarily all refer to the same embodiment, nor is it necessarily mutually exclusive of other embodiments. It is explicitly and implicitly understood that the embodiments described herein can be combined with other embodiments.

[0096] The present application discloses a micro-service construction method and device based on SVG technology, which can intelligently construct a target micro-service according to determined operation information, metadata information, editing information and target micro-service layer, which is beneficial to improve the rationality, comprehensiveness and intelligence of the micro-service construction method, and further beneficial to improve the construction efficiency and construction convenience of the micro-service, which not only can improve the user experience, but also can improve the user stickiness of using the micro-service construction method based on SVG technology and the micro-service constructed. The following will be described in detail respectively.

[0097] Embodiment one

[0098] Please refer to Figure 1 , Figure 1 is a flowchart of a microservice construction method based on SVG technology according to an embodiment of the present application. Wherein, Figure 1 The method described can be applied to a microservice construction device based on SVG technology, wherein the device can include a server, wherein the server includes a local server or a cloud server, and the present application is not limited. As Figure 1 The microservice construction method based on SVG technology includes the following operations:

[0099] 101. According to the monitored first operation information, determine the microservice base model, and according to the monitored second operation information and the microservice base model, determine the metadata information.

[0100] Optionally, the microservice base model can be determined from a set of pre-modeled historical microservice models, or it can be obtained by currently performing modeling operations, and the present application is not limited.

[0101] Optionally, the metadata information can be defined using the general JSON Schema specification.

[0102] 102. According to the microservice base model and the metadata information, create a basic microservice.

[0103] 103. According to the basic microservice and the obtained microservice layer determination information, determine at least one target microservice layer; according to all target microservice layers and the basic microservice, determine target editing information.

[0104] Optionally, the microservice layer determination information can include but is not limited to one or more of the following: category information, structure information, applicable range information, connection range information, function information, business logic information and application service information, and the present application is not limited.

[0105] Optionally, the target editing information can include, but is not limited to, one or more of basic attribute editing information, other attribute editing information, performance constraint editing information, microservice design editing information, etc., and embodiments of the present application are not limited thereto. For example, the microservice editing information can be microservice directory information, backend microservice information, and frontend microservice information, etc.; the backend microservice information can be a defect management module, a comprehensive power outage management module, etc. For another example, if the backend microservice information is a defect management module, the basic attribute editing information can be name information, code information, context information, etc.; the other attribute editing information can be description information, related attachment uploading, etc.; the performance constraint editing information can be average response time (seconds), login response time (seconds), homepage response time (seconds), normal form response time (seconds), process form response time (seconds), etc., and here, no further examples are given.

[0106] Optionally, the category type corresponding to all target microservice layers can include a frontend microservice layer and / or a backend microservice layer, and embodiments of the present application are not limited thereto.

[0107] For example, the interaction layer microservice is mainly oriented to different frontend applications; the same business logic can have different page elements displayed on the frontend due to different channels, and the page elements can also be different due to the data results returned by the backend microservice; in order to avoid exposure of the core business logic of the microservice and leakage of simulation data, all data attributes of the backend object cannot be exposed to all frontend applications without distinction; and more, a plurality of different application services or domain services cannot be developed just because of different data display requirements of the frontend applications, and different service adaptations cannot be provided to the frontend applications to ensure the stability of the core domain logic of the application layer and the domain layer.

[0108] For example, the scenario layer microservice is mainly oriented to connecting the user interface layer and the domain layer, and should not implement the core domain logic of the domain model; the main functions are: coordinating multiple aggregates of the domain layer to complete service combination and orchestration, being responsible for service combination, orchestration, and forwarding, processing the execution order of the business use case and the assembly of the results, and performing security authentication, permission verification, transaction control, domain event publishing or subscription, etc. in the application service.

[0109] For example, the domain layer represents the core of the domain model, and mainly implements the core business logic of the domain model; the business logic of the domain model is mainly implemented by entities and domain services.

[0110] For example, the external service is mainly other external service content required by the current business domain.

[0111] 104. A target microservice is constructed according to the target editing information, all target microservice layers, and the microservice base model.

[0112] Optionally, the SVG technology-based microservice construction method described in the present application adopts a stacking design mode, and a corresponding microservice construction flowchart can be referred to as shown in Figure 6

[0113] Optionally, the microservice construction method described in the present application mainly adopts the SVG general rendering engine primitive automatic rendering technology, and further, a SVG general rendering engine architecture design diagram can be referred to as shown in Figure 7

[0114] Optionally, the microservice model primitive definition flow is primitive attribute definition→attribute editing UI definition→interactive event definition (optional)→shortcut key definition→rendering generated primitive, component information, and a specific microservice model primitive definition flowchart can be referred to as shown in Figure 8

[0115] It should be noted that the operation steps mentioned in the embodiment of the present application can also be executed by the system detecting that the user is under the support of the general SVG rendering engine, and after the primitive shape rendering and related configuration information rendering are executed after the primitive is dragged into the constructor canvas, the user can edit and define the construction on the canvas, and perform online microservice design, layering and other operations on the constructor canvas by dragging, pulling and other methods to construct the microservice. Further, the data carrier of the microservice model is pre-defined from abstract unstructured information such as text and image to structured primitive metadata model.

[0116] It can be seen that the SVG technology-based microservice construction method described in the embodiment of the present application can intelligently construct the target microservice according to the determined operation information, metadata information, editing information and microservice layer, which is beneficial to improve the rationality, comprehensiveness and intelligence of the microservice construction method, and further beneficial to improve the construction efficiency and construction convenience of the microservice, which not only improves the user experience, but also improves the user stickiness of using the SVG technology-based microservice construction method and the microservice constructed by using the method.

[0117] In an optional embodiment, the corresponding types of all target microservice layers include one or more of the interactive layer type, the scene layer type, the domain layer type, the external service layer type and the other service layer type; further optionally, the at least one target microservice layer determined according to the basic microservice and the obtained microservice layer determination information can include:

[0118] The microservice layer determination information includes microservice layer determination requirements and microservice layer association information, and the microservice layer analysis situation is obtained; the microservice layer analysis situation is used to represent the demand degree of each microservice layer in the pre-set microservice layer set for the target microservice to be constructed; ​​​

[0119] According to the microservice layer analysis situation, the microservice layer satisfying the set demand degree condition is screened out from the microservice layer set as the target microservice layer.

[0120] Optionally, the microservice layer association information is related information capable of being used to determine the microservice layer. The related information can refer to the information types of the specific information contents of the microservice determination information mentioned above, and the embodiments of the present application are not limited.

[0121] It can be seen that the optional embodiment can determine the target microservice layer according to the determined microservice layer analysis situation, which is beneficial to improve the rationality and comprehensiveness of the microservice layer determination manner, and further beneficial to improve the accuracy and reliability of the determined microservice layer, thereby beneficial to improve the accuracy and reliability of the microservice constructed based on the microservice layer.

[0122] In another optional embodiment, the microservice layer determination information includes the microservice layer determination requirement and the microservice layer association information, and the microservice layer analysis situation can be obtained by analyzing the microservice layer determination information.

[0123] According to the microservice layer determination requirement and the microservice layer association information included in the microservice layer determination information, the first sub-demand degree corresponding to each microservice layer in the microservice layer set is determined.

[0124] The target first sub-demand degree satisfying the sub-demand degree condition in all first sub-demand degrees is determined, and the first microservice layer corresponding to all target first sub-demand degrees is determined.

[0125] For each second microservice layer, the association degree between the second microservice layer and the first microservice layer is determined according to all first microservice layers and the set microservice layer relationship. The second microservice layer is a microservice layer in the microservice layer set except all first microservice layers. According to the association degree and the first sub-demand degree, the second sub-demand degree corresponding to the second microservice layer is determined.

[0126] According to the target first sub-demand degree corresponding to all first microservice layers and the second sub-demand degree corresponding to all second microservice layers, the microservice layer analysis situation is determined.

[0127] It can be seen that the optional embodiment can determine the sub-demand degree of different microservice layers, and determine the microservice layer analysis situation according to the sub-demand degree of all microservice layers, which is beneficial to improve the comprehensiveness and rationality of the microservice layer analysis situation determination manner, and further beneficial to improve the accuracy and reliability of the determined microservice layer analysis situation, thereby beneficial to improve the accuracy and reliability of the microservice layer determined based on the microservice layer analysis situation.

[0128] In yet another optional embodiment, the method can further include the following operations:

[0129] counting the number of all target microservice layers;

[0130] When the number is greater than or equal to a set number threshold, obtaining configuration information corresponding to each target microservice layer, the configuration information corresponding to each target microservice layer including at least one of business function information, application scenario information, applicable field information and hardware requirement information;

[0131] According to the association division condition and the configuration information corresponding to all target microservice layers, determining an association division condition corresponding to all target microservice layers; the association division condition is used to represent a combination factor between all target microservice layers;

[0132] According to the association division condition and the association division condition, determining a combination result corresponding to all target microservice layers.

[0133] Optionally, the combination result can be displayed in the form of a microservice directory division view, introducing a microservice layer graph element into a directory, so that the microservice division of each layer is displayed in a clearer structure, and a microservice directory division view corresponding to the combination result is shown in FIG. 2. Figure 9

[0134] For example, when the configuration information corresponding to the target microservice layer includes business function information, and the target microservice layer includes a defect management microservice layer, a comprehensive power failure management microservice layer, a mechanical equipment management microservice layer, a power equipment microservice layer, a front-end microservice layer 1 and a front-end microservice layer 2, the combination result can include a production operation management back-end microservice combination result, a production equipment management back-end microservice combination result and a production operation management front-end microservice combination result; wherein the production operation management back-end microservice combination result includes the defect management microservice layer and the comprehensive power failure management microservice layer, the production equipment management back-end microservice combination result includes the mechanical equipment management microservice layer and the power equipment microservice layer, and the production operation management front-end microservice combination result includes the front-end microservice layer 1 and the front-end microservice layer 2. Here, examples are not repeated one by one.

[0135] Further optionally, when the number of all target microservice layers is less than the number threshold, the operation of constructing the target microservice according to the target editing information, all target microservice layers and the microservice basic model is performed.

[0136] In this optional embodiment, further optionally, the operation of constructing the target microservice according to the target editing information, all target microservice layers and the microservice basic model can include:

[0137] constructing the target microservice according to the combination result, the target editing information, all target microservice layers and the microservice basic model.

[0138] ​It can be seen that the optional embodiment can provide a microservice layer combination mode when the number of all target microservice layers corresponding to the number is greater than or equal to the number threshold, determine the combination result of the microservice layer according to the determined association division condition and the association division condition, enrich the intelligent function of the microservice construction mode based on the SVG technology, and is beneficial to improve the comprehensiveness and intelligence of the microservice construction mode based on the SVG technology, and then is beneficial to improve the structuring and visualization of the microservice constructed, thereby is beneficial to improve the use efficiency and use convenience of the microservice constructed, not only can improve the user experience, but also can improve the user viscosity of the microservice construction mode based on the SVG technology and the microservice constructed; and can also construct the target microservice according to the determined combination result and other mentioned information, enrich the construction factors of the microservice, and is beneficial to improve the comprehensiveness and rationality of the microservice construction mode, and then is beneficial to improve the structuring, visualization and use convenience of the microservice constructed.

[0139] In still another optional embodiment, the above determining the association division condition of all target microservice layers corresponding to the association division condition and the configuration information of all target microservice layers can include:

[0140] According to the association division condition and the configuration information of all target microservice layers, calculating the sub-combination degree of each two target microservice layers; the association division condition includes one or more of the functional division condition, the necessity of before and after division condition, the category division condition, the demand division condition, the technical advancement division condition, and the continuous use time length and distance use time length division condition;

[0141] According to the association division condition and all sub-combination degrees, determining the association division condition of all target microservice layers;

[0142] It should be noted that the sub-combination degree of each two target microservice layers can refer to the sub-combination degree of one target microservice layer and another microservice layer, or the sub-combination degree of a group (i.e. multiple) target microservice layers and another group of target microservice layers, and the embodiment of the present application does not limit.

[0143] It can be seen that the optional embodiment can determine the sub-combination degree between the microservice layers, and determine the association division condition according to the association division condition and the sub-combination degree, which is beneficial to improve the comprehensiveness and rationality of the association division condition determination mode, and then is beneficial to improve the accuracy and reliability of the determined association division condition, thereby is beneficial to improve the accuracy and reliability of the microservice layer combination result determined based on the association division condition.

[0144] In still another optional embodiment, the method can further include the following operations:

[0145] determine whether there are at least three target microservice layers satisfying the set combination conflict condition in all target microservice layers according to all sub-combination degrees;

[0146] When the determination result is yes, a conflict adjustment result is determined according to the corresponding sub-combination degrees, the corresponding configuration information and the conflict adjustment condition of the at least three target microservice layers satisfying the combination conflict condition, and the operation of determining the corresponding association division of all target microservice layers according to the association division condition and all sub-combination degrees is performed based on the conflict adjustment result.

[0147] When the determination result is no, the operation of determining the corresponding association division of all target microservice layers according to the association division condition and all sub-combination degrees is performed.

[0148] Optionally, the conflict adjustment result can be obtained by replacing the target microservice layer or adjusting the related parameters of the target microservice layer, and the embodiments of the present application are not limited. Further, the target microservice layer corresponding to the obtained conflict adjustment result is determined as not satisfying the combination conflict condition.

[0149] It can be seen that the optional embodiment can determine whether there are microservice layers satisfying the combination conflict condition, and if yes, the conflict adjustment operation is performed and the subsequent operation of determining the association division condition is further performed. The corresponding execution operation is matched for different determination results, which is beneficial to improve the comprehensiveness and rationality of the microservice layer combination result determination method, thereby improving the determination efficiency and accuracy of the subsequent association division condition, and further improving the determination efficiency and accuracy of the microservice layer combination result.

[0150] Embodiment two

[0151] Please refer to Figure 2 , Figure 2 is a flowchart of another microservice construction method based on SVG technology disclosed by the embodiments of the present application. Wherein, Figure 2 The described method can be applied to a microservice construction device based on SVG technology, wherein the device can include a server, and the server includes a local server or a cloud server, and the embodiments of the present application are not limited. As Figure 2 The microservice construction method based on SVG technology includes the following operations:

[0152] 201. Determine a microservice base model according to the monitored first operation information, and determine metadata information according to the monitored second operation information and the microservice base model.

[0153] 202. Create a basic microservice according to the microservice base model and the metadata information.

[0154] 203. Determine at least one target microservice layer based on the basic microservice and the acquired microservice layer determination information; determine target editing information based on all target microservice layers and the basic microservice.

[0155] 204. Build the target microservice based on the target editing information, all target microservice layers and the microservice basic model.

[0156] 205. Monitor the trajectory information corresponding to the indicator signal in the current microservice layer.

[0157] Optionally, the indication signal may be a mouse signal in the page, or a signal generated by the system device sensing the user's finger, a sensing device (such as a sensing pen), etc., or a signal generated by other triggering operations, which is not limited in the embodiment of the present invention.

[0158] Optionally, the trajectory information includes one or more of trajectory route information, trajectory time rate information, and triggering behavior information.

[0159] Optionally, the current microservice layer includes a target microservice layer.

[0160] 206. Determine, based on the trajectory information, whether the indication signal satisfies a preset level jump condition.

[0161] Further optionally, when it is determined that the indication signal does not meet the level jump condition, the operation is terminated or the above-mentioned operation of monitoring the trajectory information corresponding to the indication signal in the current microservice layer is performed again after a certain period of time.

[0162] 207. When the judgment result is yes, determine the current build process status based on the obtained microservice build information; predict the build trend based on the trajectory information, the current build process and the set basic build process information, and perform a hierarchical jump operation based on the build trend to trigger entering the microservice layer build page corresponding to the build trend for corresponding build operations.

[0163] Optionally, the microservice construction information includes one or more of the microservice construction completion degree, the detected construction operation track, and the user-triggered operation instruction.

[0164] Optionally, a conversion instruction generated based on a user action can be triggered to enter the microservice layer construction page corresponding to the build trend and perform the corresponding construction operation. The conversion instruction can be, for example, a drill-up instruction or a scroll-down instruction, which is not limited in this embodiment of the present invention. Furthermore, the instruction element must be pre-registered in the canvas panel, and this can be done through the shortcut key registration API provided by the SVG builder.

[0165] It can be seen that the embodiment of the application can intelligently construct the target microservice according to the determined operation information, metadata information, editing information and microservice layer, which is beneficial to improve the rationality, comprehensiveness and intelligence of the microservice construction method, and further improve the construction efficiency and convenience of the microservice, not only improve the user experience, but also improve the user stickiness of using the microservice construction method based on SVG technology and using the constructed microservice; and can also provide a microservice layer level jump method, determine whether level jump is needed according to the trajectory information, if yes, predict the construction trend and further level jump, facilitate the user to quickly perform different microservice layer construction links, which is beneficial to improve the comprehensiveness of the microservice construction method based on SVG technology and enrich the intelligent function, and further improve the use convenience and intelligence of the constructed microservice, thereby improving the user experience and improving the user stickiness of using the method and the constructed microservice.

[0166] In an optional embodiment, the above determining the target editing information according to all target microservice layers and basic microservices can include:

[0167] determining at least one to-be-edited configuration according to all target microservice layers and basic microservices;

[0168] selecting, from all to-be-edited configuration contents, first to-be-edited configuration contents satisfying a hard definition condition and second to-be-edited configuration contents satisfying a free definition condition according to the set information editing condition and the configuration types corresponding to all to-be-edited configuration contents;

[0169] determining first editing information corresponding to the first to-be-edited configuration contents and second editing information corresponding to the second to-be-edited configuration contents according to the preset basic editing information;

[0170] determining the target editing information according to the first editing information and the second editing information.

[0171] Optionally, the editing information corresponding to the first to-be-edited configuration contents satisfying the hard definition condition can be obtained from a system preset database, can be determined according to a preset basic configuration parameter, or can be obtained by other direct reference data methods, and the embodiment of the application is not limited.

[0172] Optionally, the editing information corresponding to the second to-be-edited configuration contents satisfying the free definition condition can be obtained by user input, can be obtained by the user synchronously from historical data, or can be obtained by the user in other self-defined ways, and the embodiment of the application is not limited.

[0173] It can be seen that the optional embodiment can determine the editing information of the to-be-edited configuration content meeting the hard definition condition and the editing information of the to-be-edited configuration content meeting the free definition condition, further determine the target editing information, is advantageous to improve the comprehensiveness and rationality of the editing information determination manner, and is further advantageous to improve the determination efficiency of the editing information, and is also advantageous to improve the accuracy and reliability of the determined editing information, thereby being advantageous to improve the accuracy, reliability and determination efficiency of the micro service constructed based on the editing information.

[0174] Embodiment three

[0175] Please refer to Figure 3 , Figure 3 is a structural schematic diagram of a micro service construction device based on SVG technology disclosed by the embodiment of the application. Wherein, Figure 3 The device described can include a server, wherein the server includes a local server or a cloud server, and the embodiment of the application does not limit. As Figure 3 The micro service construction device based on SVG technology can include:

[0176] The determining module 301 is configured to determine a micro service base model according to the monitored first operation information, and determine metadata information according to the monitored second operation information and the micro service base model.

[0177] The creating module 302 is configured to create a base micro service according to the micro service base model and the metadata information.

[0178] The determining module 301 is further configured to determine at least one target micro service layer according to the base micro service and the obtained micro service layer determination information, and determine target editing information according to all target micro service layers and the base micro service.

[0179] The micro service construction module 303 is configured to construct a target micro service according to the target editing information, all target micro service layers and the micro service base model.

[0180] It can be seen that the embodiment Figure 3 The micro service construction device based on SVG technology described can intelligently construct a target micro service according to the determined operation information, metadata information, editing information and micro service layer, is advantageous to improve the rationality, comprehensiveness and intelligence of the micro service construction manner, and is further advantageous to improve the construction efficiency and construction convenience of the micro service, not only can improve the user experience, but also can improve the user stickiness of using the micro service construction manner based on SVG technology and using the constructed micro service.

[0181] In an optional embodiment, the corresponding types of all target microservice layers include one or more of an interaction layer type, a scenario layer type, a domain layer type, an external service layer type, and other service layer types; and the manner in which the determination module 301 determines at least one target microservice layer according to the underlying microservice and the obtained microservice layer determination information specifically includes:

[0182] The microservice layer determination information includes microservice layer determination requirements and microservice layer association information, and the microservice layer analysis situation is obtained by analyzing the microservice layer determination information; the microservice layer analysis situation is used to represent the demand degree of each microservice layer in the preset microservice layer set for the target microservice to be constructed;

[0183] According to the microservice layer analysis situation, the microservice layer set is filtered to obtain a microservice layer whose demand degree meets the preset demand degree condition, as a target microservice layer.

[0184] It can be seen that the implementation Figure 4 The described device can determine the target microservice layer according to the determined microservice layer analysis situation, which is beneficial to improve the rationality and comprehensiveness of the microservice layer determination manner, and further beneficial to improve the accuracy and reliability of the determined microservice layer, thereby beneficial to improve the accuracy and reliability of the microservice constructed based on the microservice layer.

[0185] In another optional embodiment, the manner in which the determination module 301 analyzes the microservice layer determination information included in the microservice layer determination requirements and the microservice layer association information to obtain the microservice layer analysis situation specifically includes:

[0186] According to the microservice layer determination information included in the microservice layer determination requirements and the microservice layer association information, a first sub-demand degree corresponding to each microservice layer in the microservice layer set is determined;

[0187] Target first sub-demand degrees that meet the sub-demand degree condition are determined from all the first sub-demand degrees, and first microservice layers corresponding to all the target first sub-demand degrees are determined;

[0188] For each second microservice layer, an association degree between the second microservice layer and the first microservice layer is determined according to all the first microservice layers and the preset microservice layer relationship; the second microservice layer is a microservice layer in the microservice layer set except for all the first microservice layers; and a second sub-demand degree corresponding to the second microservice layer is determined according to the association degree and the first sub-demand degree;

[0189] According to the target first sub-demand degrees corresponding to all the first microservice layers and the second sub-demand degrees corresponding to all the second microservice layers, the microservice layer analysis situation is determined.

[0190] It can be seen that the implementation Figure 4The described apparatus can determine the sub-demand degrees of different microservice layers, and determine the microservice layer analysis situation according to the sub-demand degrees of all microservice layers, which is beneficial to improve the comprehensiveness and rationality of the microservice layer analysis situation determination manner, and further improve the accuracy and reliability of the determined microservice layer analysis situation, thereby improving the accuracy and reliability of the microservice layer determined based on the microservice layer analysis situation.

[0191] In yet another optional embodiment, as shown in Figure 4 The apparatus can further include:

[0192] The computing module 304 is configured to calculate the number of all target microservice layers.

[0193] The obtaining module 305 is configured to obtain configuration information corresponding to each target microservice layer when the number is greater than or equal to the set number threshold, and the configuration information corresponding to the target microservice layer includes at least one of business function information, application scenario information, applicable field information, and hardware requirement information.

[0194] The determining module 301 is further configured to determine an association division condition corresponding to all target microservice layers according to the association division condition and the configuration information corresponding to all target microservice layers, and determine a combination result corresponding to all target microservice layers according to the association division condition and the association division condition.

[0195] It can be seen that the implementation Figure 4 The described apparatus can provide a microservice layer combination manner when the number of all target microservice layers is greater than or equal to the number threshold, and determine the combination result of the microservice layer according to the determined association division condition and the association division condition, which enriches the intelligent function of the microservice construction manner based on the SVG technology, and is beneficial to improve the comprehensiveness and intelligence of the microservice construction manner based on the SVG technology, and further improve the structuring and visualization of the constructed microservice, thereby improving the use efficiency and use convenience of the constructed microservice, which not only improves the user experience, but also improves the user stickiness of the microservice construction manner based on the SVG technology and the constructed microservice.

[0196] In yet another optional embodiment, the microservice construction module 303 constructs the target microservice in the manner that:

[0197] According to the combination result, the target editing information, all target microservice layers, and the microservice base model, the target microservice is constructed.

[0198] It can be seen that the implementation Figure 4The described apparatus can construct the target microservice according to the determined combination result and other mentioned information, enrich the construction factors of the microservice, be beneficial to improve the comprehensiveness and rationality of the microservice construction mode, and then be beneficial to improve the structurization, visualization and use convenience of the constructed microservice.

[0199] In yet another optional embodiment, the determining module 301 determines the association division condition corresponding to all target microservice layers according to the association division condition and the configuration information corresponding to all target microservice layers, and the manner specifically includes:

[0200] According to the association division condition and the configuration information corresponding to all target microservice layers, the sub-combination degree corresponding to each two target microservice layers is calculated; the association division condition includes one or more of the functional division condition, the front and rear necessity division condition, the category division condition, the demand division condition, the technical advancement division condition, and the continuous use time length and distance use time length division condition.

[0201] According to the association division condition and all sub-combination degrees, the association division condition corresponding to all target microservice layers is determined.

[0202] It can be seen that the implementation Figure 4 The described apparatus can determine the sub-combination degree between the microservice layers, and determine the association division condition according to the association division condition and the sub-combination degree, which is beneficial to improve the comprehensiveness and rationality of the association division condition determination mode, and then is beneficial to improve the accuracy and reliability of the determined association division condition, so as to be beneficial to improve the accuracy and reliability of the microservice layer combination result determined based on the association division condition.

[0203] In yet another optional embodiment, as Figure 4 The apparatus can further include:

[0204] The determining module 306 is configured to determine whether there are at least three target microservice layers that meet the set combination conflict condition in all target microservice layers according to all sub-combination degrees; when the determination result is no, the determining module performs the operation of determining the association division condition corresponding to all target microservice layers according to the association division condition and all sub-combination degrees.

[0205] The determining module 301 is further configured to, when the determining module 306 determines that there are at least three target microservice layers that meet the set combination conflict condition in all target microservice layers, determine a conflict adjustment result according to the sub-combination degree, the corresponding configuration information and the conflict adjustment condition corresponding to the at least three target microservice layers that meet the combination conflict condition; and perform the operation of determining the association division condition corresponding to all target microservice layers according to the association division condition and all sub-combination degrees based on the conflict adjustment result.

[0206] It can be seen that implementation Figure 4 The described device can determine whether there is a microservice layer that meets the combination conflict conditions. If so, it performs a conflict adjustment operation and further performs a subsequent association division situation determination operation. The corresponding execution operation is matched according to different judgment results, which is conducive to improving the comprehensiveness and rationality of the method for determining the microservice layer combination results, thereby helping to improve the efficiency and accuracy of the subsequent determination of the association division situation, and further helping to improve the efficiency and accuracy of the determination of the microservice layer combination results.

[0207] In another optional embodiment, Figure 4 As shown, the device may also include:

[0208] The monitoring module 307 is used to monitor the trajectory information corresponding to the indicator signal in the current microservice layer; the trajectory information includes one or more of trajectory route information, trajectory time rate information and triggering behavior information; the current microservice layer includes the target microservice layer.

[0209] The judgment module 306 is further configured to judge whether the indication signal satisfies a preset level jump condition according to the trajectory information.

[0210] The determination module 301 is also used to determine the current construction process status based on the acquired microservice construction information when the judgment module 306 determines that the indication signal meets the hierarchical jump condition; the microservice construction information includes one or more of the microservice construction completion degree, the detected construction operation track and the user-triggered operation instruction.

[0211] The prediction module 308 is used to predict the construction trend based on the trajectory information, the current construction process and the set basic construction process information.

[0212] The execution module 309 is used to perform a hierarchical jump operation according to the construction trend to trigger entering the microservice layer construction page corresponding to the construction trend to perform corresponding construction operations.

[0213] It can be seen that implementation Figure 4 The described device can provide a microservice layer jump method, determine whether a layer jump is required based on trajectory information, and if so, predict the construction trend and further layer jump, so as to facilitate users to quickly carry out different microservice layer construction links, which is conducive to improving the comprehensiveness of the microservice construction method based on SVG technology and enriching the intelligent functions, thereby helping to improve the ease of use and intelligence of the constructed microservices, thereby helping to improve the user experience and increase the user stickiness of using this method and the constructed microservices.

[0214] In another optional embodiment, the determination module 301 determines the target editing information according to all target microservice layers and basic microservices in the following manner:

[0215] determine at least one to-be-edited configuration according to all target microservice layers and basic microservices;

[0216] screen first to-be-edited configuration content meeting the hard definition condition and second to-be-edited configuration content meeting the free definition condition from all to-be-edited configuration content according to the set information editing condition and the configuration type corresponding to all to-be-edited configuration content;

[0217] determine first editing information corresponding to the first to-be-edited configuration content and second editing information corresponding to the second to-be-edited configuration content according to the preset basic editing information;

[0218] determine target editing information according to the first editing information and the second editing information.

[0219] It can be seen that the embodiment Figure 5 The described device can determine the editing information of the to-be-edited configuration content meeting the hard definition condition and the editing information of the to-be-edited configuration content meeting the free definition condition, further determine the target editing information, which is beneficial to improve the comprehensiveness and rationality of the editing information determination method, and further beneficial to improve the determination efficiency of the editing information, and also beneficial to improve the accuracy and reliability of the determined editing information, thereby beneficial to improve the accuracy, reliability and determination efficiency of the microservice constructed based on the editing information.

[0220] Embodiment four

[0221] Please refer to Figure 5 , Figure 5 is another structure schematic diagram of the microservice construction device based on the SVG technology disclosed by the embodiment of the application. Wherein, Figure 5 The described device can include a server, wherein the server includes a local server or a cloud server, and the embodiment of the application does not limit it. As ​ The device can include:

[0222] a memory 401 storing executable program codes;

[0223] a processor 402 coupled with the memory 401;

[0224] Further, it can also include an input interface 403 and an output interface 404 coupled with the processor 402;

[0225] The processor 402 calls the executable program codes stored in the memory 401, which is used to execute the steps in the microservice construction method based on the SVG technology described in the embodiment one or the embodiment two.

[0226] Embodiment five

[0227] The embodiment of the present application discloses a computer readable storage medium which stores a computer program for electronic data exchange, wherein the computer program causes a computer to execute steps in the SVG technology based micro-service construction method described in embodiment one or embodiment two.

[0228] Embodiment six

[0229] The embodiment of the present application discloses a computer program product which comprises a non-transitory computer readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute steps in the SVG technology based micro-service construction method described in embodiment one or embodiment two.

[0230] The above described device embodiments are only schematic, wherein the modules described as separated components can or can not be physically separated, and the components displayed as modules can or can not be physical modules, i.e., can be located in one place, or can be distributed on multiple network modules. Part or all of the modules can be selected according to actual needs to achieve the purpose of the embodiment scheme. Those skilled in the art can understand and implement without creative labor.

[0231] Those skilled in the art can clearly understand the implementation of the various embodiments by means of software and the necessary general hardware platform through the above specific description of the embodiments, and of course, the embodiments can also be implemented by hardware. Based on such understanding, the above technical solutions, essentially or in other words, the part of the prior art that contributes to the present application can be embodied in the form of a software product. The computer software product can be stored in a computer readable storage medium, including a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disk storage, a magnetic disk storage, a magnetic tape storage, or any other computer readable medium that can be used to carry or store data.

[0232] Finally, it should be noted that: the micro-service construction method and device based on SVG technology disclosed by the embodiments of the present application are only the preferred embodiments of the present application, and are used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that; it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for part of the technical features; and these modifications or replacements do not make the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A microservice construction method based on SVG technology, characterized in that: The method comprises: Determine a microservice basic model based on the monitored first operation information, and determine metadata information based on the monitored second operation information and the microservice basic model; Creating a basic microservice based on the microservice basic model and the metadata information, and analyzing the microservice layer determination requirements and microservice layer association information included in the microservice layer determination information to obtain a microservice layer analysis status; the microservice layer analysis status is used to indicate the demand for each microservice layer in the pre-defined microservice layer set for the target microservice to be constructed; According to the analysis of the microservice layers, the microservice layers whose demand degrees meet the set demand degree conditions are selected from the set of microservice layers as target microservice layers, and the corresponding types of all target microservice layers include one or more of interaction layer type, scenario layer type, domain layer type, external service layer type and other service layer types; Determine target editing information according to all the target microservice layers and the basic microservices; A target microservice is constructed based on the target editing information, all the target microservice layers and the microservice basic model.

2. The microservice construction method based on SVG technology according to claim 1, characterized in that: The analyzing the microservice layer determination information includes the microservice layer determination requirements and the microservice layer related information, and obtaining the microservice layer analysis situation, including: Determine a first sub-demand degree corresponding to each microservice layer in the microservice layer set according to the microservice layer determination requirement and the microservice layer association information included in the microservice layer determination information; Determining target first sub-demand degrees that meet the sub-demand degree condition among all the first sub-demand degrees, and determining first microservice layers corresponding to all the target first sub-demand degrees; For each second microservice layer, determining an association degree between the second microservice layer and the first microservice layer based on all the first microservice layers and the set microservice layer relationship; the second microservice layer is a microservice layer in the set of microservice layers excluding all the first microservice layers; determining a second sub-demand degree corresponding to the second microservice layer based on the association degree and the first sub-demand degree; A microservice layer analysis status is determined according to the target first sub-demand degrees corresponding to all the first microservice layers and the second sub-demand degrees corresponding to all the second microservice layers.

3. The microservice construction method based on SVG technology according to claim 2, characterized in that: The method further comprises: Calculate the number of all target microservice layers. When the number is greater than or equal to a set number threshold, obtaining configuration information corresponding to each target microservice layer, where the configuration information corresponding to the target microservice layer includes at least one of business function information, application scenario information, applicable field information, and hardware requirement information; Determine, based on the association partitioning condition and the configuration information corresponding to all the target microservice layers, the association partitioning status corresponding to all the target microservice layers; the association partitioning status is used to represent the combination factor between all the target microservice layers; Determine the combination results corresponding to all the target microservice layers according to the association division situation and the association division condition; Furthermore, constructing a target microservice based on the target editing information, all the target microservice layers, and the microservice basic model includes: A target microservice is constructed based on the combination result, the target editing information, all the target microservice layers and the microservice basic model.

4. The microservice construction method based on SVG technology according to claim 3 is characterized in that: Determining the association division conditions corresponding to all the target microservice layers according to the association division conditions and the configuration information corresponding to all the target microservice layers includes: Calculate the sub-combination degree corresponding to each pair of target microservice layers based on the associated partitioning conditions and the configuration information corresponding to all the target microservice layers; the associated partitioning conditions include one or more of functional partitioning conditions, front-end necessity partitioning conditions, category partitioning conditions, demand partitioning conditions, technological advancement partitioning conditions, and continuous use time and distance use time partitioning conditions; Determine the association division conditions corresponding to all the target microservice layers according to the association division conditions and all the sub-combination degrees; And, the method further comprises: According to all the sub-combination degrees, determining whether there are at least three target microservice layers in all the target microservice layers that meet the set combination conflict condition; When the judgment result is yes, determining a conflict adjustment result according to the sub-combination degrees, corresponding configuration information, and conflict adjustment conditions corresponding to at least three target microservice layers that meet the combination conflict condition; and based on the conflict adjustment result, performing the operation of determining the association division conditions corresponding to all the target microservice layers according to the association division condition and all the sub-combination degrees; When the judgment result is no, the operation of determining the association division conditions corresponding to all the target microservice layers according to the association division condition and all the sub-combination degrees is performed.

5. The microservice construction method based on SVG technology according to claim 4 is characterized in that: The method further comprises: Monitoring trajectory information corresponding to an indication signal in a current microservice layer, and determining, based on the trajectory information, whether the indication signal satisfies a preset level jump condition; the trajectory information includes one or more of trajectory route information, trajectory time rate information, and triggering behavior information; the current microservice layer includes the target microservice layer; When the judgment result is yes, the current construction progress is determined based on the acquired microservice construction information; the microservice construction information includes one or more of the microservice construction completion degree, the detected construction operation track, and the user-triggered operation instruction; According to the trajectory information, the current construction process and the set basic construction process information, the construction trend is predicted, and a hierarchical jump operation is performed according to the construction trend to trigger entry into the microservice layer construction page corresponding to the construction trend for corresponding construction operations.

6. The microservice construction method based on SVG technology according to claim 5, characterized in that: The determining target editing information according to all the target microservice layers and the basic microservices includes: Determine at least one configuration to be edited based on all the target microservice layers and the basic microservices; According to the set information editing conditions and the configuration types corresponding to all the configuration contents to be edited, first configuration contents to be edited that meet the hard definition conditions and second configuration contents to be edited that meet the free definition conditions are screened from all the configuration contents to be edited; Determine, based on preset basic editing information, first editing information corresponding to the first configuration content to be edited, and obtain second editing information corresponding to the second configuration content to be edited; Target editing information is determined according to the first editing information and the second editing information.

7. A microservice construction device based on SVG technology, characterized in that: The device comprises: a determination module, configured to determine a microservice basic model based on the monitored first operation information, and to determine metadata information based on the monitored second operation information and the microservice basic model; A creation module, configured to create a basic microservice based on the microservice basic model and the metadata information; The determination module is further configured to analyze the microservice layer determination requirements and microservice layer association information included in the microservice layer determination information to obtain a microservice layer analysis situation; the microservice layer analysis situation is used to indicate the demand degree of each microservice layer in a preset microservice layer set for the target microservice to be constructed; based on the microservice layer analysis situation, a microservice layer whose demand degree meets the set demand degree condition is selected from the microservice layer set as the target microservice layer, and the corresponding types of all the target microservice layers include one or more of an interaction layer type, a scenario layer type, a domain layer type, an external service layer type, and other service layer types; target editing information is determined based on all the target microservice layers and the basic microservices; The microservice construction module is used to construct the target microservice according to the target editing information, all the target microservice layers and the microservice basic model.

8. A microservice construction device based on SVG technology, characterized in that: The device comprises: a memory storing executable program code; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the microservice construction method based on SVG technology according to any one of claims 1 to 6.

9. A computer storage medium, characterized in that The computer storage medium stores computer instructions, which, when called, are used to execute the microservice construction method based on SVG technology according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Micro-service-based enterprise-level software construction method and system

    CN109766075A

  • Intelligent development method and system based on hierarchical micro-service

    CN112817946A