CN114968225A - Micro-service unified construction method, environment generation method and related equipment - Google Patents

Micro-service unified construction method, environment generation method and related equipment Download PDF

Info

Publication number
CN114968225A
CN114968225A CN202210334253.7A CN202210334253A CN114968225A CN 114968225 A CN114968225 A CN 114968225A CN 202210334253 A CN202210334253 A CN 202210334253A CN 114968225 A CN114968225 A CN 114968225A
Authority
CN
China
Prior art keywords
micro
configuration
service
target
construction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210334253.7A
Other languages
Chinese (zh)
Inventor
尹玉妹
张纪明
赵波
张智勇
孙健
李斌
黄怡然
李鹏程
翟赫然
张博
杨夏冰
王妍
熊振
徐丽娟
吴晗
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Life Insurance Co ltd
Original Assignee
China Life Insurance Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Life Insurance Co ltd filed Critical China Life Insurance Co ltd
Priority to CN202210334253.7A priority Critical patent/CN114968225A/en
Publication of CN114968225A publication Critical patent/CN114968225A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a micro-service unified construction method, an environment generation method and related equipment, wherein the construction method comprises the following steps: splitting various configurations of different microservices to form fixed configuration and universal configuration; storing the universally configured key values as construction templates, and respectively and independently storing the value values corresponding to the key values according to different environment types; acquiring a target micro-service type and a target environment type, pulling the corresponding fixed configuration according to the target micro-service type, pulling the corresponding value according to the target environment type, filling the value into the construction template, and combining the value with the fixed configuration to form a complete matched configuration; and completing the construction of the target micro-service according to the matched configuration. The micro-service unified construction method, the environment generation method and the related equipment provided by the application reduce modification cost of a large number of micro-services, have low error rate, improve environment generation efficiency, and facilitate environment switching and continuous integration.

Description

Micro-service unified construction method, environment generation method and related equipment
Technical Field
The present application relates to the field of micro service technologies, and in particular, to a micro service unified construction method, an environment generation method, and a related device.
Background
The micro-service is a loosely coupled distributed architecture framework, the micro-service is more and more thin and more numerous with the rapid development of services, the topological relation among the services is more and more complex, meanwhile, in order to meet the requirements of various service scenes, the types of environments generated by the micro-service are gradually diversified, how to construct the micro-service and rapidly generate the environments with the lowest cost is the problem of common trouble and close attention of various companies, the construction and maintenance cost of the existing micro-service is higher, and the corresponding environments are difficult to generate and switch.
Disclosure of Invention
In view of the above, an object of the present application is to provide a method for unified micro-service construction, an environment generation method and related devices to solve the above technical problems.
In a first aspect of the present application, a method for uniformly constructing micro services is provided, including:
splitting various configurations of different microservices to form fixed configuration and universal configuration; storing the universally configured key values as construction templates, and respectively and independently storing the value values corresponding to the key values according to different environment types; acquiring a target micro-service type and a target environment type, pulling the corresponding fixed configuration according to the target micro-service type, pulling the corresponding value according to the target environment type, filling the value into the construction template, and combining the value with the fixed configuration to form a complete matched configuration; and finishing the construction of the target micro-service according to the matched configuration.
Further, the completing the target micro-service construction according to the matching configuration includes: and compiling, generating a mirror image, uploading the mirror image to a warehouse and pulling up a container in sequence according to the matched configuration so as to construct the target micro-service.
Further, the completing the target microservice construction according to the supporting configuration, then includes: and feeding back the constructed result of the target micro service to a service page.
Further, the storing the commonly configured key value as a construction template, and the storing the value values corresponding to the key value separately and independently according to different environment types, then includes: the bottom pocket configuration is set.
Further, the setting of the pocket bottom configuration includes: setting a default environment type or configuring a default value.
Further, the completing the target microservice construction according to the supporting configuration, then includes: and executing the bottom pocket configuration for reconstruction in response to the target micro-service construction failure.
In a second aspect of the present application, there is provided an environment generation method, including: according to the target environment type and the selected different target micro-service types, the micro-service unified construction method in the first aspect is respectively executed to construct a plurality of target micro-services, and the target micro-services together form a target environment.
In a third aspect of the present application, a micro-service unified construction apparatus is provided, including: the splitting module is configured to split various configurations of different microservices to form a fixed configuration and a universal configuration; the modeling module is configured to store the universally configured key values as construction templates and respectively and independently store the value values corresponding to the key values according to different environment types; the configuration module is configured to acquire a target micro-service type and a target environment type, pull corresponding fixed configuration according to the target micro-service type, pull corresponding value values according to the target environment type, fill the value values into the construction template one by one, and combine the value values with the fixed configuration to form complete matching configuration; and the construction module is configured to complete the construction of the target micro-service according to the matched configuration.
In a fourth aspect of the present application, there is provided an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the micro-service unified construction method according to the first aspect when executing the computer program.
In a fifth aspect of the present application, a non-transitory computer-readable storage medium is provided, which stores computer instructions, wherein the computer instructions are configured to cause the computer to execute the micro-service unified construction method according to the first aspect.
From the above, the application provides a micro-service unified construction method, an environment generation method and related equipment, wherein various configurations of different micro-services are split to form fixed configurations and general configurations, and the general configurations are variable configurations which are common to the different micro-services, so that unified construction logics of the different micro-services are formed, and only the unified construction logics need to be modified after a large number of micro-services are subsequently constructed, so that repeated operation is avoided, the error rate is reduced, and the maintenance cost is low; storing the key value of the general configuration as a construction template, and respectively and independently storing the value corresponding to the key value according to different environment types so as to form corresponding general configurations for different target environments in the following process, thereby facilitating the rapid construction and switching of the environments; the method comprises the steps of drawing corresponding fixed configuration according to the type of the target micro-service, drawing a corresponding value according to the type of the target environment, filling the value into a construction template and combining the value with the fixed configuration to form complete matching configuration, realizing rapid construction of the target micro-service according to the matching configuration, improving environment generation efficiency, eliminating manual operation, and providing possibility for continuous integration.
Drawings
In order to more clearly illustrate the technical solutions in the present application or related technologies, the drawings required for the embodiments or related technologies in the following description are briefly introduced, and it is obvious that the drawings in the following description are only the embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for uniformly constructing microservices according to an embodiment of the present application;
FIG. 2 is a schematic diagram of an environment generation method according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a micro service unified construction apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is further described in detail below with reference to the accompanying drawings in combination with specific embodiments.
It should be noted that technical terms or scientific terms used in the embodiments of the present application should have a general meaning as understood by those having ordinary skill in the art to which the present application belongs, unless otherwise defined. The use of "first," "second," and similar terms in the embodiments of the present application do not denote any order, quantity, or importance, but rather the terms are used to distinguish one element from another. The word "comprising" or "comprises", and the like, means that the element or item listed before the word covers the element or item listed after the word and its equivalents, but does not exclude other elements or items. The terms "connected" or "coupled" and the like are not restricted to physical or mechanical connections, but may include electrical connections, whether direct or indirect.
Microservices are loosely coupled, distributed architecture frameworks, and the benefit of using microservices is that development teams can quickly build new components of an application to meet changing business needs. With the rapid development of services, micro services are more and more finely divided, the number of the micro services is more and more, and the topological relation among the services is more and more complex. Meanwhile, in order to meet the requirements of various business scenes, the types of environments generated by the micro-services are gradually diversified, how to construct the micro-services with the lowest cost and quickly generate a set of stable environments according to the requirements of users are the problems of common troubles and close attention of all companies.
For example, in the insurance industry, micro services include login, registration, password recovery, and the like of a user center, required environments include a development environment, a test environment, a joint debugging environment, an integrated verification environment, and the like, and micro service configurations in different environments are different.
At present, due to the increasingly refined splitting of the micro-services, hundreds of micro-services can be faced to a single environment, the hash management of the built script and the configuration is high, once the configuration file needs to be upgraded, hundreds of micro-services need to be modified one by one, the repeated workload is great, and the modification cost is high; and a large amount of micro services are usually maintained by different personnel, and each developer has own development habit and personalized coding mode, so that the modified micro services are large in number and easy to be modified mistakenly each time, or the subsequent maintenance cost is increased due to introduction of some personalized modifications.
In addition, because each micro service needs to be adjusted in a large amount, the generation efficiency of the whole set of environment is very low, and when multiple persons cooperate, the developer A modifies the configuration of the micro services one by one to construct a development environment a, at this time, if the tester B needs to construct a set of test environment B, the environment construction of the developer A needs to be waited for to be completed, otherwise, the modification of the configuration by the tester B covers the content modified by the developer A, and the environment is difficult to switch; if the configuration is modified by pulling a new branch, the maintenance cost and the modification merging cost of the subsequent branches are correspondingly improved, a large amount of configurations need to be manually modified according to requirements every time, continuous integration is difficult to directly carry out, the continuous integration is a software development practice, and the integration is verified by automatic construction every time, so that the integration error is found as early as possible.
In the process of implementing the application, it is found that since some general variable configurations are generally available in the configuration, upgrading or adjustment may frequently occur in the whole development life cycle, the configuration of different micro services may be considered to be split and abstracted to obtain the general configuration, so that different micro services are uniformly constructed, maintenance is facilitated, and the environment construction template may be abstracted, so that corresponding micro services are constructed according to a specified environment, and environment switching is facilitated.
The technical solution of the present application is described in detail below by specific examples with reference to fig. 1 to 4.
Some embodiments of the present application provide a method for uniformly constructing micro services, as shown in fig. 1, including the following steps:
s101, splitting various configurations of different micro services to form fixed configurations and universal configurations.
The configuration is stored in a configuration center, various configurations of different micro services are split to form fixed configuration and general configuration, the fixed configuration is configuration which does not need to be changed in micro service modification or upgrading, the general configuration is variable configuration which is common to the different micro services, so that unified construction logic for the different micro services is formed, the different micro services can be constructed according to the fixed configuration and the general configuration, the coding habit difference of different personnel is avoided, and the error rate is reduced; if a large amount of micro services need to be modified or upgraded after being constructed, only the unified construction logic needs to be modified, the micro services do not need to be modified one by one, repeated operation is avoided, and maintenance cost is greatly reduced.
S102, storing the commonly configured key values as construction templates, and respectively and independently storing the value values corresponding to the key values according to different environment types.
The Java background can read the key values and the value values of the general configuration, the key-value is a mode of adding a user-defined character string, the value can be obtained through the key, the number of the key values is multiple, the key values of the general configuration are stored as a construction template by adopting a maven dependence management tool, the value values corresponding to each key value are respectively and independently stored according to different environment types, so that the corresponding general configuration can be formed aiming at different target environments in the subsequent process, and the environment can be conveniently and quickly constructed and switched.
S103, obtaining a target micro service type and a target environment type, pulling the corresponding fixed configuration according to the target micro service type, pulling the corresponding value according to the target environment type, filling the value into the construction template, and combining the value with the fixed configuration to form a complete matched configuration.
The target micro-service type is, for example, login, registration or password recovery service of a user center, and the target environment type is, for example, a development environment, a test environment, a joint debugging environment, an integrated verification environment, and the like, and is not limited specifically; the method comprises the steps of pulling a fixed configuration of corresponding micro-services according to a target micro-service type, pulling a corresponding value according to a target environment type, filling each key value corresponding to the value into a construction template one by one to form a general configuration of the target micro-services in the target environment, recombining the general configuration and the fixed configuration to form a complete matching configuration, configuring the matching configuration into a matching configuration of the target micro-services in a specified target environment, forming corresponding matching configurations for different micro-services according to the specified target environment type, so that the environment can be generated quickly, modifying different micro-services one by one for environment switching operation, only changing the target environment type, removing manual operation, and providing possibility for continuous integration.
And S104, completing the construction of the target micro-service according to the matched configuration.
And a target micro service is quickly constructed according to matched configuration by using a docker technology, so that the environment generation efficiency is improved, and the operation and maintenance cost is reduced.
The micro-service unified construction method reduces the modification cost of a large number of micro-services, has low error rate, improves the environment generation efficiency, facilitates environment switching and continuous integration, and greatly reduces the cost of continuous integration because the construction logic of a large number of micro-service hashes is abstracted into the unified construction logic; the logic is uniformly constructed, so that the personalized behavior of the user is avoided, and meanwhile, the error probability is greatly reduced due to the reduction of a large number of modification operations; when the whole set of environment is deployed, a user does not need to be matched with a large number of adjustments, and can quickly complete deployment only by selecting a corresponding target environment, so that the requirements of quick construction and convenient switching of various environments are met.
In some embodiments, step S104 includes: and compiling, generating a mirror image, uploading the mirror image to a warehouse and pulling up a container in sequence according to the matched configuration so as to construct the target micro-service.
In some embodiments, the micro-service unified construction method further includes:
and S105, feeding back the constructed result of the target micro service to a service page.
The step is convenient for the user to check the result for subsequent work, and the result constructed by the target micro service can also be sent to the user in the form of an email.
In some embodiments, the microservice unified construction method includes the following steps:
s201, splitting various configurations of different micro services to form fixed configurations and universal configurations.
S202, storing the commonly configured key values as construction templates, and respectively and independently storing the value values corresponding to the key values according to different environment types.
And S203, setting a bottom pocket configuration.
S204, obtaining a target micro-service type and a target environment type, pulling the corresponding fixed configuration according to the target micro-service type, pulling the corresponding value according to the target environment type, filling the value values into the construction template one by one, and combining the value values with the fixed configuration to form a complete matched configuration.
S205, completing the construction of the target micro-service according to the matched configuration.
S206, responding to the failure of the target micro service construction, executing the bottom pocket configuration for reconstruction.
The bottom-of-pocket configuration is set to consider various abnormal conditions which may occur in the micro-service construction process, and the setting of the bottom-of-pocket configuration includes, for example, setting a default environment type or configuring a default value, and the like, and is not limited specifically, so that when the target micro-service construction fails, for example, when a user does not select a target environment type or the value is not configured, the construction fails, and the bottom-of-pocket configuration can be executed for reconstruction, thereby reducing the failure rate.
In some embodiments, abstract general capabilities, such as different types of environment fast generation capabilities, incremental deployment capabilities, configuration fast replacement capabilities, and the like, may also be analyzed in combination with common user requirements, so as to determine operation options that are finally provided for the user, where the operation options are, for example, a target environment type, a target micro service type, micro service branches, and the like, and are not specifically limited, and the user selects a micro service to be constructed according to the operation options, thereby improving user service experience.
It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments described above and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Some embodiments of the present application provide an environment generating method, as shown in fig. 2, which includes respectively executing a corresponding micro-service unified construction method in any one of the foregoing embodiments according to a target environment type and selected different target micro-service types, so as to construct a plurality of target micro-services, where the plurality of target micro-services together form a target environment.
When a user deploys the whole set of environment, various configurations do not need to be modified manually, and only the target environment type and the target micro-service type to be constructed need to be selected, so that the n micro-services 23 can be constructed quickly, the generation of the environment is completed quickly, the environment switching is convenient, and the operation and maintenance cost is low.
As shown in fig. 2, the maintenance of various configurations is performed in the configuration center 21, and certainly, the maintenance of various configurations may also be performed directly through file storage, various configuration system storage, or other storage media, and the same effect or the same purpose can be achieved, in the drawing, the service source code 232 is a source code, the matching configuration corresponds to the conventional construction 221 in the unified construction script 22, and the bottom-pocketing configuration 231 corresponds to the bottom-pocketing construction 222 in the unified construction script 22.
It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments described above and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Based on the same inventive concept, corresponding to the method of any of the above embodiments, the present application further provides another unified microservice constructing apparatus, referring to fig. 3, including:
the splitting module 31 is configured to split various configurations of different microservices to form a fixed configuration and a general configuration;
the modeling module 32 is configured to store the key values of the general configuration as a construction template, and store the value values corresponding to the key values respectively and independently according to different environment types;
a configuration module 33, configured to obtain a target micro service type and a target environment type, pull the corresponding fixed configuration according to the target micro service type, pull the corresponding value according to the target environment type, fill the value into the building template, and combine with the fixed configuration to form a complete matching configuration;
a build module 34 configured to complete the target microservice build according to the companion configuration.
For convenience of description, the above devices are described as being divided into various modules by functions, and are described separately. Of course, the functionality of the various modules may be implemented in the same one or more software and/or hardware implementations as the present application.
The apparatus of the foregoing embodiment is used to implement the corresponding micro-service unified construction method in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
Based on the same inventive concept, corresponding to the method of any embodiment described above, the present application further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the program, the micro-service unified construction method described in any embodiment described above is implemented.
Fig. 4 is a schematic diagram illustrating a more specific hardware structure of an electronic device according to this embodiment, where the electronic device may include: a processor 1010, a memory 1020, an input/output interface 1030, a communication interface 1040, and a bus 1050. Characterized in that processor 1010, memory 1020, input/output interface 1030, and communication interface 1040 are communicatively coupled to each other within the device via bus 1050.
The processor 1010 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solutions provided in the embodiments of the present disclosure.
The Memory 1020 may be implemented in the form of a ROM (Read Only Memory), a RAM (random access Memory), a static storage device, a dynamic storage device, or the like. The memory 1020 may store an operating system and other application programs, and when the technical solution provided by the embodiments of the present specification is implemented by software or firmware, the relevant program codes are stored in the memory 1020 and called to be executed by the processor 1010.
The input/output interface 1030 is used for connecting an input/output module to input and output information. The i/o module may be configured as a component in a device (not shown) or may be external to the device to provide a corresponding function. The system is characterized in that the input device can comprise a keyboard, a mouse, a touch screen, a microphone, various sensors and the like, and the output device can comprise a display, a loudspeaker, a vibrator, an indicator light and the like.
The communication interface 1040 is used for connecting a communication module (not shown in the drawings) to implement communication interaction between the present apparatus and other apparatuses. The communication module is characterized in that the communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, Bluetooth and the like).
Bus 1050 includes a path that transfers information between various components of the device, such as processor 1010, memory 1020, input/output interface 1030, and communication interface 1040.
It should be noted that although the above-mentioned device only shows the processor 1010, the memory 1020, the input/output interface 1030, the communication interface 1040 and the bus 1050, in a specific implementation, the device may also include other components necessary for normal operation. In addition, those skilled in the art will appreciate that the above-described apparatus may also include only those components necessary to implement the embodiments of the present description, and not necessarily all of the components shown in the figures.
The electronic device of the above embodiment is used to implement the corresponding micro-service unified construction method in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application further provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the micro-service unified construction method according to any of the above embodiments.
Computer-readable media of the present embodiments, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
The computer instructions stored in the storage medium of the foregoing embodiment are used to enable the computer to execute the micro-service unified construction method according to any embodiment, and have the beneficial effects of the corresponding method embodiment, which are not described herein again.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, is limited to these examples; within the context of the present application, features from the above embodiments or from different embodiments may also be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of brevity.
Additionally, for simplicity of explanation and discussion, and so as not to obscure the embodiments of the present application, apparatus may be shown in block diagram form in order to avoid obscuring the embodiments of the present application, and this also takes into account the fact that specifics with respect to implementation of such block diagram apparatus are highly dependent upon the platform within which the embodiments of the present application are to be implemented (i.e., specifics should be well within purview of one skilled in the art). Where specific details are set forth in order to describe example embodiments of the application, it will be apparent to one skilled in the art that the embodiments of the application can be practiced without, or with variation of, these specific details. Accordingly, the description is to be regarded as illustrative instead of restrictive.
While the present application has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of these embodiments will be apparent to those of ordinary skill in the art in light of the foregoing description.
The present embodiments are intended to embrace all such alternatives, modifications and variances which fall within the broad scope of the appended claims. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present application are intended to be included within the scope of the present application.

Claims (10)

1. A micro-service unified construction method is characterized by comprising the following steps:
splitting various configurations of different microservices to form fixed configuration and universal configuration;
storing the universally configured key values as construction templates, and respectively and independently storing the value values corresponding to the key values according to different environment types;
acquiring a target micro-service type and a target environment type, pulling the corresponding fixed configuration according to the target micro-service type, pulling the corresponding value according to the target environment type, filling the value values into the construction template one by one, and combining the value values with the fixed configuration to form a complete matched configuration;
and completing the construction of the target micro-service according to the matched configuration.
2. The method for uniformly constructing micro-services according to claim 1, wherein the completing the construction of the target micro-services according to the supporting configuration comprises:
and compiling, generating a mirror image, uploading the mirror image to a warehouse and pulling up a container in sequence according to the matched configuration so as to construct the target micro-service.
3. The method for uniformly building micro-services according to claim 1, wherein the step of completing the building of the target micro-services according to the supporting configuration comprises the following steps:
and feeding back the constructed result of the target micro service to a service page.
4. The method for uniformly building microservices according to claim 1, wherein the storing the key values of the general configuration as the building templates and the storing the value values corresponding to the key values independently according to different environment types respectively comprise:
the bottom pocket configuration is set.
5. The micro-service unified construction method according to claim 4, wherein the setting of the bottom pocket configuration comprises:
setting a default environment type or configuring a default value.
6. The method for uniformly building micro-services according to claim 4, wherein the step of completing the building of the target micro-services according to the supporting configuration comprises the following steps:
and executing the bottom pocket configuration for reconstruction in response to the target micro-service construction failure.
7. An environment generation method, comprising: according to the type of the target environment and the selected different types of the target micro services, the micro service unified construction method according to any one of claims 1 to 6 is respectively executed to construct a plurality of target micro services, and the plurality of target micro services together form the target environment.
8. A micro-service unified construction device is characterized by comprising:
the splitting module is configured to split various configurations of different microservices to form a fixed configuration and a universal configuration;
the modeling module is configured to store the universally configured key values as construction templates and respectively and independently store the value values corresponding to the key values according to different environment types;
the configuration module is configured to acquire a target micro-service type and a target environment type, pull corresponding fixed configuration according to the target micro-service type, pull corresponding value values according to the target environment type, fill the value values into the construction template one by one, and combine the value values with the fixed configuration to form complete matching configuration;
and the construction module is configured to complete the construction of the target micro-service according to the matched configuration.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the microservice unification method according to any of claims 1-6 when executing the computer program.
10. A non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the microservice unification method according to any of claims 1-6.
CN202210334253.7A 2022-03-30 2022-03-30 Micro-service unified construction method, environment generation method and related equipment Pending CN114968225A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210334253.7A CN114968225A (en) 2022-03-30 2022-03-30 Micro-service unified construction method, environment generation method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210334253.7A CN114968225A (en) 2022-03-30 2022-03-30 Micro-service unified construction method, environment generation method and related equipment

Publications (1)

Publication Number Publication Date
CN114968225A true CN114968225A (en) 2022-08-30

Family

ID=82975701

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210334253.7A Pending CN114968225A (en) 2022-03-30 2022-03-30 Micro-service unified construction method, environment generation method and related equipment

Country Status (1)

Country Link
CN (1) CN114968225A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116775171A (en) * 2023-08-25 2023-09-19 太平金融科技服务(上海)有限公司深圳分公司 Architecture switching method and device, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116775171A (en) * 2023-08-25 2023-09-19 太平金融科技服务(上海)有限公司深圳分公司 Architecture switching method and device, electronic equipment and storage medium
CN116775171B (en) * 2023-08-25 2023-12-05 太平金融科技服务(上海)有限公司深圳分公司 Architecture switching method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110928529B (en) Method and system for assisting operator development
US20180101371A1 (en) Deployment manager
CN113312037B (en) Data processing method, device, equipment and storage medium applied to micro-service
US9286040B2 (en) Software builder
CN110442396B (en) Application program starting method and device, storage medium and electronic equipment
US20200387358A1 (en) Systems and Methods for Robotic Process Automation
US9841953B2 (en) Pluggable components for runtime-image generation
US20120204160A1 (en) Managing Non-Common Features for Program Code Translation
CN111459539A (en) Continuous integration pipeline operation method and device based on mirror layering
CN110704031B (en) Software application project creating method and device and electronic equipment
CN112506793B (en) Method and system for testing embedded software unit, readable medium and electronic equipment
CN112433730B (en) Code detection rule generation method and device and electronic equipment
CN110895718A (en) Method and system for training machine learning model
CN115291946A (en) Hongmong system transplanting method, device, electronic equipment and readable medium
CN114968225A (en) Micro-service unified construction method, environment generation method and related equipment
CN114924830A (en) Online IDE code management method based on NAS storage and related equipment
CN101136780A (en) Method, system to obtain user command information, and user command registered device
EP3519964B1 (en) Electronic apparatus for recording debugging information and control method thereof
CN117724803A (en) Cloud service deployment method, device and platform
CN113010180A (en) Firmware generation method, system, device and medium
CN114500549A (en) Method, apparatus, and medium to deploy k8s hosting cluster for users in public cloud
CN114780134A (en) Configuration management method of micro application and related equipment
CN115757135A (en) Test environment deployment method, apparatus, storage medium, and program product
CN113094086B (en) Component integration method, device, computer readable storage medium and electronic equipment
US8615744B2 (en) Methods and system for managing assets in programming code translation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination