CN112346717A - Micro service system creating method, device, equipment, medium and micro service system - Google Patents
Micro service system creating method, device, equipment, medium and micro service system Download PDFInfo
- Publication number
- CN112346717A CN112346717A CN202010987996.5A CN202010987996A CN112346717A CN 112346717 A CN112346717 A CN 112346717A CN 202010987996 A CN202010987996 A CN 202010987996A CN 112346717 A CN112346717 A CN 112346717A
- Authority
- CN
- China
- Prior art keywords
- micro
- service
- services
- adaptation layer
- code
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 33
- 230000006978 adaptation Effects 0.000 claims abstract description 71
- 238000003860 storage Methods 0.000 claims description 12
- 238000004590 computer program Methods 0.000 claims description 11
- 238000010586 diagram Methods 0.000 description 14
- 230000008569 process Effects 0.000 description 7
- 230000006870 function Effects 0.000 description 5
- 230000008878 coupling Effects 0.000 description 4
- 238000010168 coupling process Methods 0.000 description 4
- 238000005859 coupling reaction Methods 0.000 description 4
- 238000013461 design Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 230000003993 interaction Effects 0.000 description 4
- 238000011161 development Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 1
- 230000002776 aggregation Effects 0.000 description 1
- 238000004220 aggregation Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000013524 data verification Methods 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 238000002955 isolation Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
- 230000002688 persistence Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001131 transforming effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention discloses a micro service system creation method, a device, equipment, a medium and a micro service system. The method comprises the following steps: the original service is split, and during splitting, the splitting is carried out according to the service types contained in the original service, so that a plurality of micro services corresponding to different service types are obtained. And further, generating an adaptation layer containing interface identifiers corresponding to the micro services based on the original service. Splitting the micro services according to the code logic relationship corresponding to each micro service to generate a plurality of code layers; creating a microservice system based on the adaptation layer and the plurality of code layers. Through the technical scheme, the complex and huge original service is split into a plurality of micro services, so that each micro service can be flexibly expanded; meanwhile, when the micro-service system is established, the adaptation layer is used for realizing user calling, so that the user does not feel when the original service is split into the micro-services, and the establishment friendliness of the micro-service system is improved.
Description
Technical Field
The embodiment of the invention relates to the technical field of internet, in particular to a micro service system creating method, a micro service system creating device, micro service system creating equipment, micro service system creating media and micro service system.
Background
With the development of internet technology, more and more service types are supported by application software, and the number of users of each type of service is increased, so that the service becomes more and more bloated.
In the prior art, relevant expansion is carried out on services according to needs, so that the actual application requirements are met. However, if the service types included in the service are too many, the service logic is too cumbersome, and a large amount of manpower and material resources are required to be consumed when the related expansion work is performed, and the expansion effect is not ideal. Therefore, it is necessary to create a service system capable of satisfying the business diversification and business development requirements.
Disclosure of Invention
The embodiment of the invention provides a micro service system creation method, a device, equipment, a medium and a micro service system, which are used for realizing the micro service system convenient for expanding and maintaining.
In a first aspect, an embodiment of the present invention provides a method for creating a microservice system, where the method includes:
determining a plurality of micro services based on the service types contained in the original services;
splitting the plurality of microservices according to the code logic relationship to generate a plurality of code layers;
generating an adaptation layer containing interface identifiers respectively corresponding to the micro-services based on the plurality of code layers;
creating a microservice system based on the adaptation layer and the plurality of code layers.
Optionally, the generating an adaptation layer including interface identifiers corresponding to the multiple micro services includes:
generating an interface identifier corresponding to each micro service in the plurality of micro services according to the service type;
distributing the interface identification to the corresponding application layer;
and generating an adaptation layer containing the interface identification based on the plurality of micro services.
Optionally, the splitting the plurality of microservices according to the code logical relationship to generate a plurality of code layers includes:
and splitting each micro service in the plurality of micro services according to the code logic relationship to obtain a base layer, a field layer, an application layer and an adaptation layer.
Optionally, the creating a micro service system based on the adaptation layer and the plurality of code layers includes:
determining an association relationship between the application layer and the adaptation layer based on the adaptation layer;
and creating the micro service system according to the incidence relation, the adaptation layer and the plurality of code layers.
Optionally, after determining the plurality of micro services based on the service types included in the original service, the method further includes:
and splitting to obtain a sub-database corresponding to the micro-services according to the service types contained in the original services.
In a second aspect, an embodiment of the present invention provides a microservice system, including:
a plurality of code layers and an adaptation layer for microservice call requirements;
the adaptation layer is generated after micro-service splitting is carried out according to the service type contained in the original service; and the code layer is generated by splitting the micro service according to the code logic relationship.
In a third aspect, an embodiment of the present invention provides a microservice system creating apparatus, where the apparatus includes:
the determining module is used for determining a plurality of micro services based on the service types contained in the original services;
the generating module is used for splitting the micro services according to the code logic relationship to generate a plurality of code layers;
generating an adaptation layer containing interface identifiers respectively corresponding to the micro-services based on the plurality of code layers;
a creation module to create a microservice system based on the adaptation layer and the plurality of code layers.
In a fourth aspect, an embodiment of the present invention provides an electronic device, including a processor, and a memory, where the memory is configured to store one or more computer instructions, and when the one or more computer instructions are executed by the processor, the method for creating a microservice system according to the first aspect is implemented.
In a fifth aspect, embodiments of the present invention provide a computer-readable storage medium storing a computer program, which when executed by one or more processors causes the one or more processors to perform actions comprising: determining a plurality of micro services based on the service types contained in the original services; splitting the plurality of microservices according to the code logic relationship to generate a plurality of code layers; generating an adaptation layer containing interface identifiers respectively corresponding to the micro-services based on the plurality of code layers; creating a microservice system based on the adaptation layer and the plurality of code layers.
In the embodiment of the invention, the original service is split, and during splitting, the original service is split according to the service types contained in the original service, so that a plurality of micro services corresponding to different service types are obtained. And further, generating an adaptation layer containing interface identifiers corresponding to the micro services based on the original service. Splitting the micro services according to the code logic relationship corresponding to each micro service to generate a plurality of code layers; creating a microservice system based on the adaptation layer and the plurality of code layers. Through the technical scheme, the complex and huge original service is split into a plurality of micro services, so that each micro service can be flexibly expanded; meanwhile, when the micro-service system is established, the adaptation layer is used for realizing user calling, so that the user does not feel when the original service is split into the micro-services, and the establishment friendliness of the micro-service system is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic flowchart of a method for creating a microservice system according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a microserver system according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a microservice system creating apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device corresponding to the microservice system creating apparatus provided in the embodiment of fig. 3.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise, and "a plurality" typically includes at least two.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
It is also noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a good or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such good or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a commodity or system that includes the element.
In existing applications, some include a plurality of different types of services, but all are implemented by the same service. If the service needs to be expanded, for example, it is difficult to improve the diversity of service types, enrich the service functions, and meet the service requirements of more users. Due to the complexity of various types of services in the service, the service logic coupling is serious, and the whole body is moved by pulling one time. Therefore, a technical scheme for performing service expansion or optimization more lightly and conveniently is needed, and diversified service requirements of users can be met.
Fig. 1 is a schematic flowchart of a method for creating a microservice system according to an embodiment of the present application, and is applied to a server, as shown in fig. 1, the method includes the following steps:
101: and determining a plurality of micro services based on the service types contained in the original services.
102: and splitting the plurality of micro services according to the code logic relationship to generate a plurality of code layers.
103: and generating an adaptation layer containing interface identifiers respectively corresponding to the micro-services based on the plurality of code layers.
104: creating a microservice system based on the adaptation layer and the plurality of code layers.
The original service includes a plurality of complex service types, for example, the service types include a home service, a logistics distribution service, a home appliance maintenance service, and the like. These services have their own business processes, including generation, processing, receipt and payment from orders, and so on. When splitting the original service, ideally, multiple micro services without coupling relationship can be obtained, or the coupling ratio is relatively low.
The interface identifier referred to herein may be understood as an API interface for interaction between a user and a server. When the adaptation layer is generated, the interface identifier originally defined in the original service is used as much as possible, so that even if the service is split into the micro-services, the user side does not need to make any adjustment. If some micro services obtained by splitting are not defined and can be directly used, the user is required to define the micro services by himself and inform the client side of adjusting the calling interface identification.
After the plurality of micro services are obtained by splitting, a plurality of code layers are also obtained by splitting according to a code logic relationship, for example, a Domain-drive Design (DDD) method may be adopted, and the micro services include a UI layer, an application layer, a Domain layer, and a base layer. And by establishing a domain model and dividing a domain boundary, the code of the domain model is consistent with the design. The main advantages of the domain-driven design include: generally, the business type is used as guidance, the business logic of each micro service is cohesive, and the application boundary is clear; has good expansibility.
Through the scheme, when the original service is subjected to micro-service splitting, the adaptation layer which is used for interacting with the client and comprises the micro-service interface identification can be generated, so that even if the original service is split, the use of the client is not influenced, and the client can be subjected to micro-service splitting without perception. Each micro service obtained by splitting is weak in coupling, and the service can be conveniently expanded or modified.
In one or more embodiments of the present application, the generating an adaptation layer including interface identifiers corresponding to the multiple micro services includes: generating an interface identifier corresponding to each micro service in the plurality of micro services according to the service type; distributing the interface identification to the corresponding application layer; and generating an adaptation layer containing the interface identification based on the plurality of micro services.
As can be seen from the foregoing, the interface identifiers are used herein to implement client-server interaction. In the micro-service splitting process, in order to enable the client to be in an imperceptible state for micro-service splitting, the original interface identifier can be utilized, and the interface identifier can be redefined for each micro-service. And further, generating an adaptation layer according to the interface identifier corresponding to each micro service.
For example, generating the microservice interface identification includes: corresponding interface service is provided for data in basic data service of a new migrated worker, an interface participating in bid customId is optimized to adapt to a new data structure (part of data needs to go to a new interface and needs to be communicated with a business side), and an old interface in crm is changed into an adaptive interface identifier. In the process of upgrading and transforming the old interface, the interface with the bid custom Id is optimized to adapt to a new data structure (part of data needs to go to a new interface and needs to communicate with a service party).
In one or more embodiments of the present application, the splitting the multiple microservices according to the code logical relationship to generate multiple code layers includes: and splitting each micro service in the plurality of micro services according to the code logic relationship to obtain a base layer, a field layer, an application layer and an adaptation layer.
When splitting is carried out, splitting is carried out according to the business flow, the business strategy, the business rule, the integrity constraint and the like defined in the code logic. Thereby, a base layer, a domain layer, an application layer and an adaptation layer can be obtained.
Specifically, the base layer mainly includes two types of adaptation codes: active adaptation and passive adaptation. The active adaptation code mainly provides API gateway service for front-end application, and performs simple works such as front-end data verification, protocol and format conversion adaptation. The passive adaptation is mainly oriented to back-end basic resources (such as a database, a cache and the like), and provides data persistence and data access support for an application layer and a field layer by relying on inversion, so that decoupling of a resource layer is realized.
The application layer completes service combination and arrangement to form coarse-grained service by mainly calling field layer service or other middle application layer services, and provides API service for the foreground. The code of the layer can carry out the work of checking the service logic data, authority authentication, service combination and arrangement, distributed transaction management and the like.
The domain layer code mainly realizes the service domain logic of the core, and needs to make the logic isolation of the code between the layering and aggregation of the domain code.
In one or more embodiments of the present application, the creating a microservice system based on the adaptation layer and the plurality of code layers includes: determining an association relationship between the application layer and the adaptation layer based on the adaptation layer; and creating the micro service system according to the incidence relation, the adaptation layer and the plurality of code layers.
In practical applications, since the interface of the split micro service needs to be upgraded and modified (for example, based on the original interface upgrade or a new interface is established), and the code layer of the micro service also needs to be split, some changes therein need to be established in association relationship. Further, creation of the microservice system may be accomplished based on the newly established association, the adaptation layer, and the plurality of code layers. All the micro services in the new micro service system are mutually decoupled, and the expansion of all the micro services in the follow-up process is facilitated. In addition, an adaptation layer is added in the splitting process, the interaction requirement between the client and the server is met, and therefore the micro-service splitting can be achieved under the condition that a user does not sense the micro-service splitting.
In one or more embodiments of the present application, after determining a plurality of micro services based on a service type included in an original service, the method further includes: and splitting to obtain a sub-database corresponding to the micro-services according to the service types contained in the original services.
As described above, the original service includes micro services belonging to different service types, and the corresponding database also needs to be split to obtain sub databases corresponding to the micro services. For example, for a business field contacted with a client, the client dimension can be used as a data sub-base main key, all data associated with the client can be divided into one unit, and a consistent experience is provided for all clients through a middle service. Of course, the region dimension can also be used as the database sub-base main key in the database of the subsequent service link, so as to meet the management requirement of the service based on the region.
According to the scheme, the original service is split, and during splitting, the original service is split according to the service types contained in the original service, so that a plurality of micro services corresponding to different service types are obtained. And further, generating an adaptation layer containing interface identifiers corresponding to the micro services based on the original service. Splitting the micro services according to the code logic relationship corresponding to each micro service to generate a plurality of code layers; creating a microservice system based on the adaptation layer and the plurality of code layers. Through the technical scheme, the complex and huge original service is split into a plurality of micro services, so that each micro service can be flexibly expanded; meanwhile, when the micro-service system is established, the adaptation layer is used for realizing user calling, so that the user does not feel when the original service is split into the micro-services, and the establishment friendliness of the micro-service system is improved.
Based on the same idea, an embodiment of the present application further provides a micro service system, and fig. 2 is a schematic structural diagram of the micro service system provided in the embodiment of the present application. As can be seen from fig. 2, the microservice system comprises a plurality of code layers and an adaptation layer for microservice invocation requirements; the adaptation layer is generated after micro-service splitting is carried out according to the service type contained in the original service; and the code layer is generated by splitting the micro service according to the code logic relationship.
In particular, the plurality of code layers includes a base layer, a domain layer, an application layer, and an adaptation layer. Wherein, the adaptation layer mainly stores user interface layer codes. The front-end application acquires and displays required data to the application service through the layer. The layer is mainly used for processing Restful requests sent by users, analyzing configuration files input by the users and the like, and transmitting information to the Application layer. The main code forms are data assembly, a facede interface and the like.
The application layer mainly stores application layer codes. The application service code completes service orchestration and composition based on either domain services within the microservice or application services outside of the microservice. Various application data presentation support is provided for the user interface layer. The main code modalities are application services and domain events, etc.
The domain layer mainly stores domain layer codes. The layer code mainly realizes core field logic, the main code forms are an entity method, field service and the like, and meanwhile, a storage interface for data interaction with a basic layer is also provided.
The basic layer stores basic layer codes and provides general technical capability, three-party software packages, configuration, basic resource service and the like for other layers. Including, for example, warehousing implementations, databases, etc.
Based on the same idea, the embodiment of the application further provides a micro service system creation device, and the device is applied to a website server. Fig. 3 is a schematic structural diagram of a microservice system creating apparatus according to an embodiment of the present application. As can be seen from fig. 3, the apparatus comprises:
a determining module 31, configured to determine a plurality of microservices based on a service type included in an original service;
a generating module 32, configured to split the multiple microservices according to the code logic relationship, and generate multiple code layers;
generating an adaptation layer containing interface identifiers respectively corresponding to the micro-services based on the plurality of code layers;
a creating module 33 for creating a microservice system based on the adaptation layer and the plurality of code layers.
The generating module 32 is further configured to generate, according to the service type, an interface identifier corresponding to each micro service in the plurality of micro services;
distributing the interface identification to the corresponding application layer;
and generating an adaptation layer containing the interface identification based on the plurality of micro services.
The generating module 32 is further configured to split each microservice in the plurality of microservices to obtain a base layer, a field layer, an application layer, and an adaptation layer according to the code logic relationship.
A creating module 33, configured to determine, based on the adaptation layer, an association relationship between the application layer and the adaptation layer; and creating the micro service system according to the incidence relation, the adaptation layer and the plurality of code layers.
And the determining module 31 is configured to split the sub-database according to the service type included in the original service to obtain sub-databases corresponding to the multiple micro services.
The apparatus shown in fig. 3 may perform the steps related to the server in fig. 1, and the detailed execution process and technical effect refer to the description in the foregoing embodiment, which is not described herein again.
In a possible design, the structure of the information recommendation apparatus shown in fig. 3 may be implemented as an electronic device, and as shown in fig. 4, the electronic device corresponding to the target sorting apparatus provided in the embodiment shown in fig. 3 is a schematic structural diagram, and the electronic device may include: a processor 41, a memory 42, and the memory 42 is used for storing one or more computer instructions, wherein the one or more computer instructions, when executed by the processor 41, implement the steps performed by the server in the foregoing embodiments.
Optionally, the electronic device may further include a communication interface 43 for communicating with other devices.
In addition, an embodiment of the present invention provides a computer storage medium, which is used to store a computer program, and when the computer program is executed by a server, the method for creating a micro service system in the foregoing embodiments is implemented.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by adding a necessary general hardware platform, and of course, can also be implemented by a combination of hardware and software. With this understanding in mind, the above-described aspects and portions of the present technology which contribute substantially or in part to the prior art may be embodied in the form of a computer program product, which may be embodied on one or more computer-usable storage media having computer-usable program code embodied therein, including without limitation disk storage, CD-ROM, optical storage, and the like.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable resource updating apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable resource updating apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable resource updating apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable resource updating apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, 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. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (9)
1. A microservice system creation method, the method comprising:
determining a plurality of micro services based on the service types contained in the original services;
splitting the plurality of microservices according to the code logic relationship to generate a plurality of code layers;
generating an adaptation layer containing interface identifiers respectively corresponding to the micro-services based on the plurality of code layers;
creating a microservice system based on the adaptation layer and the plurality of code layers.
2. The method of claim 1, wherein the generating an adaptation layer containing interface identifiers corresponding to the micro services comprises:
generating an interface identifier corresponding to each micro service in the plurality of micro services according to the service type;
distributing the interface identification to the corresponding application layer;
and generating an adaptation layer containing the interface identification based on the plurality of micro services.
3. The method of claim 1, wherein splitting the plurality of microservices according to code logic relationships to generate a plurality of code layers comprises:
and splitting each micro service in the plurality of micro services according to the code logic relationship to obtain a base layer, a field layer, an application layer and an adaptation layer.
4. The method of claim 3, wherein creating a microservice system based on the adaptation layer and the plurality of code layers comprises:
determining an association relationship between the application layer and the adaptation layer based on the adaptation layer;
and creating the micro service system according to the incidence relation, the adaptation layer and the plurality of code layers.
5. The method of claim 1, wherein after determining the plurality of microservices based on the service types included in the original service, further comprising:
and splitting to obtain a sub-database corresponding to the micro-services according to the service types contained in the original services.
6. A microservice system, the microservice system comprising:
a plurality of code layers and an adaptation layer for microservice call requirements;
the adaptation layer is generated after micro-service splitting is carried out according to the service type contained in the original service; and the code layer is generated by splitting the micro service according to the code logic relationship.
7. A microservice system creation apparatus, the apparatus comprising:
the determining module is used for determining a plurality of micro services based on the service types contained in the original services;
the generating module is used for splitting the micro services according to the code logic relationship to generate a plurality of code layers;
generating an adaptation layer containing interface identifiers respectively corresponding to the micro-services based on the plurality of code layers;
a creation module to create a microservice system based on the adaptation layer and the plurality of code layers.
8. An electronic device, comprising: a processor, a memory for storing one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the microservice system creation method of any of claims 1-6.
9. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by one or more processors, causes the one or more processors to perform acts comprising:
determining a plurality of micro services based on the service types contained in the original services;
splitting the plurality of microservices according to the code logic relationship to generate a plurality of code layers;
generating an adaptation layer containing interface identifiers respectively corresponding to the micro-services based on the plurality of code layers;
creating a microservice system based on the adaptation layer and the plurality of code layers.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010987996.5A CN112346717A (en) | 2020-09-18 | 2020-09-18 | Micro service system creating method, device, equipment, medium and micro service system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010987996.5A CN112346717A (en) | 2020-09-18 | 2020-09-18 | Micro service system creating method, device, equipment, medium and micro service system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112346717A true CN112346717A (en) | 2021-02-09 |
Family
ID=74357913
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010987996.5A Pending CN112346717A (en) | 2020-09-18 | 2020-09-18 | Micro service system creating method, device, equipment, medium and micro service system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112346717A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113360133A (en) * | 2021-08-10 | 2021-09-07 | 北京能科瑞元数字技术有限公司 | Splitting and multiplexing method based on business microservice |
CN113722390A (en) * | 2021-09-03 | 2021-11-30 | 小马国炬(玉溪)科技有限公司 | Data storage method and system |
CN115061663A (en) * | 2022-06-17 | 2022-09-16 | 中国兵器工业信息中心 | Micro-service dividing method and device based on customer demands, electronic equipment and medium |
CN115310115A (en) * | 2022-10-11 | 2022-11-08 | 东方合智数据科技(广东)有限责任公司 | Privatization deployment encryption method, device, equipment and storage medium |
WO2024021793A1 (en) * | 2022-07-27 | 2024-02-01 | International Business Machines Corporation | Monolith-to-microservice refactoring via source-code-to-domain-model graph comparison |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106815016A (en) * | 2016-12-23 | 2017-06-09 | 四川大学 | A kind of MVVM based on Domain Driven Design designs a model |
CN107391142A (en) * | 2017-07-26 | 2017-11-24 | 北京中电普华信息技术有限公司 | The method and device that a kind of application is split |
CN107979635A (en) * | 2017-10-24 | 2018-05-01 | 广东康美通信息服务有限公司 | System, method and storage medium based on micro services |
CN108415944A (en) * | 2018-01-30 | 2018-08-17 | 长安大学 | Real time computation system and its implementation based on micro services under a kind of traffic environment |
CN109062940A (en) * | 2018-06-20 | 2018-12-21 | 北京爱蜂科技有限公司 | A kind of multi-mode transaction realizing system and method based on micro services framework |
CN109302321A (en) * | 2018-11-13 | 2019-02-01 | 珠海格力电器股份有限公司 | Server, service demand processing system, method and monitoring system |
CN111178782A (en) * | 2020-01-03 | 2020-05-19 | 广州博依特智能信息科技有限公司 | Micro-service architecture of process industrial data operation platform |
-
2020
- 2020-09-18 CN CN202010987996.5A patent/CN112346717A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106815016A (en) * | 2016-12-23 | 2017-06-09 | 四川大学 | A kind of MVVM based on Domain Driven Design designs a model |
CN107391142A (en) * | 2017-07-26 | 2017-11-24 | 北京中电普华信息技术有限公司 | The method and device that a kind of application is split |
CN107979635A (en) * | 2017-10-24 | 2018-05-01 | 广东康美通信息服务有限公司 | System, method and storage medium based on micro services |
CN108415944A (en) * | 2018-01-30 | 2018-08-17 | 长安大学 | Real time computation system and its implementation based on micro services under a kind of traffic environment |
CN109062940A (en) * | 2018-06-20 | 2018-12-21 | 北京爱蜂科技有限公司 | A kind of multi-mode transaction realizing system and method based on micro services framework |
CN109302321A (en) * | 2018-11-13 | 2019-02-01 | 珠海格力电器股份有限公司 | Server, service demand processing system, method and monitoring system |
CN111178782A (en) * | 2020-01-03 | 2020-05-19 | 广州博依特智能信息科技有限公司 | Micro-service architecture of process industrial data operation platform |
Non-Patent Citations (3)
Title |
---|
不夜DE星空: "基于DDD的微服务设计和开发实战", 《HTTPS://BLOG.CSDN.NET/IAMLAKE/ARTICLE/DETAILS/93327267》 * |
宁小庚黄晓芳: "一种基于领域驱动设计划分微服务的方法", 《西南科技大学学报》 * |
王卫东: "当中台遇上DDD,我们该如何设计微服务?", 《HTTPS://BLOG.CSDN.NET/WWD0501/ARTICLE/DETAILS/104160449》 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113360133A (en) * | 2021-08-10 | 2021-09-07 | 北京能科瑞元数字技术有限公司 | Splitting and multiplexing method based on business microservice |
CN113360133B (en) * | 2021-08-10 | 2021-12-28 | 北京能科瑞元数字技术有限公司 | Splitting and multiplexing method based on business microservice |
CN113722390A (en) * | 2021-09-03 | 2021-11-30 | 小马国炬(玉溪)科技有限公司 | Data storage method and system |
CN115061663A (en) * | 2022-06-17 | 2022-09-16 | 中国兵器工业信息中心 | Micro-service dividing method and device based on customer demands, electronic equipment and medium |
WO2024021793A1 (en) * | 2022-07-27 | 2024-02-01 | International Business Machines Corporation | Monolith-to-microservice refactoring via source-code-to-domain-model graph comparison |
CN115310115A (en) * | 2022-10-11 | 2022-11-08 | 东方合智数据科技(广东)有限责任公司 | Privatization deployment encryption method, device, equipment and storage medium |
CN115310115B (en) * | 2022-10-11 | 2023-01-24 | 东方合智数据科技(广东)有限责任公司 | Privatization deployment encryption method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112346717A (en) | Micro service system creating method, device, equipment, medium and micro service system | |
US8539514B2 (en) | Workflow integration and portal systems and methods | |
US9705758B2 (en) | Management of cloud provider selection | |
US12093966B2 (en) | Customer service representative dashboard with micro-applications | |
US10805228B2 (en) | Injection of information technology management process into resource request flows | |
US10182104B1 (en) | Automatic propagation of resource attributes in a provider network according to propagation criteria | |
CN112131504A (en) | Webpage editing and displaying method, device, equipment and storage medium | |
WO2022179342A1 (en) | Application deployment in computing environment | |
US12032991B2 (en) | Continuous liveness and integrity of applications during migration | |
CN107454138A (en) | The implementation method and device that business degrades | |
US11093477B1 (en) | Multiple source database system consolidation | |
CN113721893A (en) | Micro-service bus design method and device | |
US20130204964A1 (en) | Retrieving availability information from published calendars | |
Vijaykumar | Role of ICT in e-governance: Impact of Cloud Computing in Driving New initiatives | |
CN112035156A (en) | E-commerce platform docking device, method, equipment and medium | |
CN107395663A (en) | Data capture method and device | |
US9059992B2 (en) | Distributed mobile enterprise application platform | |
CN110417919A (en) | A kind of flow abduction method and device | |
CN112799744B (en) | Industrial APP calling method and device, computer readable medium and electronic equipment | |
CN114996577A (en) | Service management method, device, apparatus, storage medium, and program product | |
CN114282210A (en) | Sandbox automatic construction method and system, computer equipment and readable storage medium | |
CN112099976A (en) | Government affair data exchange task scheduling method and device | |
US20190325065A1 (en) | Enhanced action fulfillment using classification valency | |
CN117349261A (en) | Data storage method and system based on data playback | |
US20230281214A1 (en) | Actor-based information system |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210209 |