CN110750307B - Micro-service architecture construction method and device - Google Patents
Micro-service architecture construction method and device Download PDFInfo
- Publication number
- CN110750307B CN110750307B CN201910833879.0A CN201910833879A CN110750307B CN 110750307 B CN110750307 B CN 110750307B CN 201910833879 A CN201910833879 A CN 201910833879A CN 110750307 B CN110750307 B CN 110750307B
- Authority
- CN
- China
- Prior art keywords
- micro
- service
- loader
- class loader
- child
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/448—Execution paradigms, e.g. implementations of programming paradigms
- G06F9/4488—Object-oriented
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45562—Creating, deleting, cloning virtual machine instances
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Stored Programmes (AREA)
Abstract
The invention relates to the technical field of micro services, provides a micro service architecture construction method and device, and solves the problem that the existing micro service architecture occupies a large amount of hardware equipment resources. A method for constructing a micro-service architecture, wherein the micro-service architecture comprises a parent class loader and a child class loader, and comprises the following steps: creating one or more child class loaders within a process based on a parent class loader; each of the one or more subclass loaders loads one microservice in the same workflow. The micro-service architecture constructed by the micro-service architecture construction method provided by the disclosure only comprises one process, so that hardware equipment resources occupied by the micro-service architecture are reduced.
Description
Technical Field
The present invention relates generally to the field of microservices, and in particular, to a microservice architecture construction method and apparatus.
Background
In the current microservice architecture, the same workflow is divided into a plurality of microservices, wherein each microservice is assigned a Java virtual machine class loader, and each Java virtual machine class loader corresponds to a separate process, that is, each microservice corresponds to a process. The mutual calling between each micro-service in the same work flow, namely the mutual calling of different processes, needs to pass through the serialization, network transmission and deserialization processes. The Java virtual machine class loader loads Java classes into a Java virtual machine, wherein the loading refers to reading class files of the classes into a memory and creating a class object for the class files. The object in each micro service is converted into bytes for network transmission in the serialization process, and the bytes after the network transmission are converted into the object and stored in the micro service in the deserialization process.
However, since each microservice corresponds to a process, each process can occupy server resources, and therefore, the microservice architecture can occupy a large amount of server resources. Moreover, each microservice in the same workflow is remotely called, that is, the mutual calling of different processes needs to go through the serialization, network transmission and deserialization processes, and a large amount of hardware equipment resources are occupied when the serialization, network transmission and deserialization processes are executed.
Disclosure of Invention
In order to solve the above problems in the prior art, the present invention provides a method and an apparatus for constructing a micro service architecture.
In a first aspect, an embodiment of the present invention provides a method for constructing a micro-service architecture, where the service architecture includes a parent class loader and a child class loader, and the method includes: creating one or more child class loaders in one process based on the parent class loader; each of the one or more subclass loaders loads one microservice in the same workflow.
In one example, creating multiple child class loaders within a process based on a parent class loader comprises: calling a child class loader creating interface of the parent class loader; one or more child class loaders are created based on the create child class loader interface of the parent class loader.
In one example, the number of subclass loaders corresponds to the number of microservices in the same workflow.
In one example, one or more child class loaders share common resources loaded in a parent class loader, wherein the common resources include: server resources, database resources, general tool class library resources, and general resources are not included in the subclass loader.
In one example, the parent class loader comprises a Java virtual machine class loader.
In a second aspect, an embodiment of the present invention provides a method for invoking a microservice, where the method includes: the micro-services in the same workflow are mutually invoked based on a micro-service architecture, wherein the micro-service architecture is the micro-service architecture constructed by the micro-service architecture construction method in the first aspect, the micro-service architecture comprises a parent class loader and a plurality of sub class loaders, and the sub class loaders comprise a first sub class loader and a second sub class loader.
In one example, the micro services in the same workflow invoke each other based on the micro service architecture, including: a first sub-class loader loading the producer micro-service registers the producer micro-service with a parent class loader; the parent loader records the registration information of the producer micro-service, wherein the registration information of the producer micro-service comprises the following steps: a producer microservice and a first subclass loader for loading the producer microservice; a second sub-class loader for loading the micro service of the consumer sends the micro service to be called to a parent class loader; based on the registration information of the micro-services of the producer, the second sub-class loader finds the micro-services to be called and determines a first sub-class loader corresponding to the micro-services to be called; and the consumer micro-service loaded by the second sub-class loader calls the producer micro-service loaded by the first sub-class loader corresponding to the micro-service needing to be called.
In a third aspect, an embodiment of the present invention provides a microservice architecture building apparatus, where the apparatus includes: the microservice architecture comprises a parent class loader and a child class loader, and the microservice architecture comprises the following components: the creating unit is used for creating one or more child class loaders in one process based on the parent class loader; and the loading unit is used for loading one micro service in the same workflow by each of the one or more sub-class loaders.
In a fourth aspect, an embodiment of the present invention provides a micro service invoking device, where the device includes: a calling unit, configured to call micro services in the same workflow based on a micro service architecture, where the micro service architecture is the micro service architecture constructed by the micro service architecture construction method according to the first aspect, the micro service architecture includes a parent class loader and multiple child class loaders, and the child class loaders include a first child class loader and a second child class loader.
In a fifth aspect, an embodiment of the present invention provides an electronic device, where the electronic device includes: a memory to store instructions; and a processor for calling the instructions stored in the memory to execute the micro-service architecture construction method of the first aspect and the micro-service calling method of the second aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where the computer-readable storage medium stores computer-executable instructions, and when executed by a processor, the computer-executable instructions perform a micro-service architecture building method according to the first aspect and a micro-service invoking method according to the second aspect.
On one hand, the micro service architecture constructed by the micro service architecture construction method provided by the invention only comprises one process, and compared with a plurality of processes in the existing micro service architecture, the micro service architecture reduces hardware equipment resources occupied by the micro service architecture. On the other hand, the micro-service architecture constructed by the construction method based on the micro-service architecture calls the micro-services in the micro-service architecture, and because each micro-service is in the same process, the calling among the micro-services does not need to be subjected to serialization, network transmission and deserialization processes, and hardware equipment resources are not occupied in the micro-service mutual calling process.
Drawings
The above and other objects, features and advantages of embodiments of the present invention will become readily apparent from the following detailed description read in conjunction with the accompanying drawings. Several embodiments of the invention are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which:
fig. 1 is a schematic diagram illustrating a method for constructing a micro service architecture according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a microservice architecture provided by an embodiment of the present invention;
FIG. 3 is a diagram illustrating a method for invoking a micro-service according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a micro-service invocation process provided by an embodiment of the invention;
FIG. 5 is a schematic diagram of a microservice architecture building apparatus according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a microservice invoking device according to an embodiment of the present invention;
fig. 7 is a schematic diagram of an electronic device according to an embodiment of the present invention.
In the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
Detailed Description
The principles and spirit of the present invention will be described with reference to several exemplary embodiments. It is understood that these embodiments are given solely for the purpose of enabling those skilled in the art to better understand and to practice the invention, and are not intended to limit the scope of the invention in any way.
It should be noted that although the terms "first", "second", etc. are used herein to describe various subfiles, steps, data, etc. of embodiments of the invention, the terms "first", "second", etc. are merely used to distinguish between the various subfiles, steps, data, etc. and do not indicate a particular order or degree of importance. Indeed, the terms "first," "second," etc. are used interchangeably throughout.
The hardware device herein may be a server, a memory, or other hardware devices with a storage function, and the disclosure is not particularly limited.
Fig. 1 is a schematic diagram of a method for constructing a microservice architecture according to an embodiment of the present disclosure. The method shown in FIG. 1 is suitable for micro-service architecture construction, which can load programming languages such as Java in a Java virtual machine class loader, is written based on the programming languages such as Java and is used for micro-service mutual calling in the same program. As shown in fig. 1, in one example, the micro service architecture includes a parent class loader and a child class loader, and a method for constructing the micro service architecture includes steps S110 to S120:
in step S110: one or more child class loaders are created within a process based on a parent class loader.
In this example, the parent class loader is a Java virtual machine class loader, and the Java virtual machine class loader is a basis for writing a program to run based on a programming language such as Java.
In this example, one parent class loader, i.e., one process, implements creating one or more child class loaders within one process.
In this example, the parent loader and child loader are in a parent-child relationship, the child loaders can share the shared resources loaded by the parent loader, and the parent loader is also aware of the microservices loaded by each child loader.
In step S120: each of the one or more subclass loaders loads one microservice in the same workflow.
In this example, the number of subclass loaders corresponds to the number of microservices in the same workflow, and each subclass loader loads only one microservice in the same workflow. If a microservice is deleted in the same workflow, the subclass loader that loads the deleted microservice is also deleted. If one or more micro-services are added in the same workflow, the parent loader correspondingly creates a child loader in real time to load each micro-service in the one or more added micro-services.
Fig. 2 is a micro service architecture constructed based on the micro service architecture construction method. As shown in fig. 2, the micro-service architecture constructed based on the micro-service construction method has only one parent class loader, the parent class loader creates a plurality of child class loaders, and each child class loader correspondingly loads one micro-service. The parent loader loads shared resources, each child loader can load the shared resources to the parent loader, and the parent loader can acquire related information of the micro-service corresponding to each child loader in the multiple child loaders, for example, functions that can be realized by the micro-service.
The micro-service architecture constructed by the micro-service architecture construction method based on the embodiment of the disclosure only comprises one parent class loader, namely only one process, and reduces hardware equipment resources occupied by the micro-service architecture compared with a plurality of processes in the existing micro-service architecture. And the parent loader loads the shared resources, the micro-service corresponding to each child loader does not need to store the shared resources, so that a plurality of micro-services are prevented from having a large number of repeated shared resources, and the occupation of hardware equipment resources by the micro-service architecture is further reduced.
In an embodiment of the present disclosure, creating multiple child loaders within one process based on a parent loader includes: calling a creating child loader interface of the parent loader, and creating one or more child loaders based on the creating child loader interface of the parent loader.
In this example, the parent loader is a Java virtual machine class loader having an interface to create a child loader, and one or more child loaders may be created by calling to create a child loader interface. Since the Java virtual machine class loader has only one interface for creating the subclass loader, one or more created subclass loaders are in the same process.
The mechanism of the Java virtual machine class loader itself can isolate one or more child class loaders created within a process. The micro-services loaded by the plurality of sub-class loaders are isolated from each other, and meanwhile, the micro-services loaded by the plurality of sub-class loaders do not need to be subjected to serialization, network transmission and deserialization in the process of calling each other, so that the occupation of hardware equipment resources in the process of calling the micro-services loaded by the plurality of sub-class loaders from each other is saved.
In an embodiment of the present disclosure, one or more child class loaders share a common resource loaded in a parent class loader, where the common resource includes: server resources, database resources, general tool class library resources, and general resources are not included in the subclass loader.
The micro-service architecture constructed based on the micro-service architecture construction method provided by the embodiment of the disclosure is based on a parent class loader and shared resources among micro-services loaded by a sub class loader. Because the child class loader can share the parent class loader resources, if the micro-service in the same workflow needs to share the resources, the required shared resources can be acquired from the parent class node. That is, each micro service loaded by each subclass loader in the same workflow does not need to store shared resources repeatedly, and hardware equipment resources occupied by the micro service architecture are further reduced.
In the micro-service calling process based on the micro-service architecture, the micro-services are divided into producer micro-services and consumer micro-services. The producer micro-service needs to be registered, and the consumer micro-service goes to the place where the producer micro-service is registered to know the producer micro-service which provides the required service for the consumer micro-service, so that the consumer micro-service calls the producer micro-service which can provide the required service for the consumer micro-service.
Fig. 3 is a schematic diagram of a method for invoking a micro service according to an embodiment of the present disclosure. In the method shown in fig. 3, micro services in the same workflow are mutually invoked based on a micro service architecture, where the micro service architecture is a micro service architecture constructed based on the construction method of the micro service architecture, the micro service architecture includes a parent class loader and a plurality of child class loaders, and the child class loaders include a first child class loader and a second child class loader. As shown in fig. 3, the micro-service calling method includes steps S210 to S240.
In step S210, the first child class loader that loads the producer microservice registers the producer microservice with the parent class loader.
In step S220, the parent loader records producer microservice registration information.
In this example, the producer microservice registration information includes: the system includes a service type of a producer microservice and a first subclass loader to load the producer microservice.
In step S230, the second child class loader loading the consumer micro-service sends the micro-service to be called to the parent class loader.
In step S240, based on the registration information of the producer micro service, the second sub-class loader finds the micro service that needs to be called, and determines the first sub-class loader corresponding to the micro service that needs to be called.
In this example, the second subclass loader finds the micro-service to be called based on the service type of the producer micro-service in the producer micro-service registration information, and finds the first subclass loader corresponding to the micro-service to be called based on the first subclass loader corresponding to the producer micro-service loaded in the producer micro-service registration information.
In step S250, the consumer micro-service loaded by the second sub-class loader calls the producer micro-service loaded by the first sub-class loader corresponding to the micro-service that needs to be called.
The micro-service architecture constructed based on the construction method of the micro-service architecture calls the micro-services in the micro-service architecture, and because each micro-service is in the same process, the calling among the micro-services does not need to be subjected to serialization, network transmission and deserialization processes, and hardware equipment resources are not occupied in the micro-service calling process.
Fig. 4 is a diagram illustrating a microservice calling process. In the micro-service invocation process shown in fig. 4, there is only one example of a producer micro-service and a consumer micro-service, and the micro-service invocation process is as follows: the producer microservice loaded by the child loader 1 registers producer microservice with the parent loader, and the parent loader records information, wherein the recorded information comprises: the producer microservice type and subclass loader 1 are loaded by subclass loader 1. The consumer micro-service loaded by the sub-class loader 2 finds the consumer micro-service to be called on the parent class loader, finds the sub-class loader 1 corresponding to the consumer micro-service to be called according to the information recorded by the parent class loader, and then the consumer micro-service loaded by the sub-class loader 2 can initiate consumer micro-service calling to the sub-class loader 1. Since the subclass loader 2 and the subclass loader 1 are located in the same process, the call between the two micro services loaded by the subclass loader 2 and the subclass loader 1 is a call in the same process, and hardware device resource overhead of serialization, network transmission and deserialization is not needed any more.
Based on the same inventive concept as a micro-service architecture construction method, the embodiment of the disclosure also provides a micro-service architecture construction device.
Fig. 5 shows a schematic diagram of a microservice architecture building apparatus provided by an embodiment of the present disclosure. As shown in fig. 5, a microservice architecture building apparatus includes:
a creating unit 110, configured to create one or more child class loaders within a process based on the parent class loader.
And a loading unit 120, configured to load one micro service in the same workflow by each of the one or more sub-class loaders.
In this example, the creating unit 110 creates a plurality of child class loaders within one process based on a parent class loader in the following manner:
a create class loader interface of the parent class loader is invoked.
And creating one or more child class loaders based on the creation class loader interface of the parent class loader.
In this example, the number of subclass loaders corresponds to the number of microservices in the same workflow.
In this example, one or more child class loaders share common resources loaded in a parent class loader, where the common resources include: server resources, database resources, general tool class library resources, and general resources are not included in the subclass loader.
In this example, the parent class loader is one.
In this example, the parent class loader comprises a Java virtual machine class loader.
Based on the same inventive concept as a micro-service calling method, the embodiment of the disclosure further provides a micro-service calling device.
Fig. 6 shows a schematic diagram of a micro service invocation device provided by an embodiment of the present disclosure. As shown in fig. 6, a micro-service invocation apparatus includes:
the invoking unit 210 is configured to invoke, based on a micro service architecture, micro services in the same workflow, where the micro service architecture is a micro service architecture constructed by the construction method of the micro service architecture, the micro service architecture includes a parent class loader and multiple child class loaders, and the child class loaders include a first child class loader and a second child class loader.
In one example, the calling unit 210 is used for micro-services in the same workflow to call each other based on the micro-service architecture in the following manner:
a first child class loader loading the producer microservices registers the producer microservices with a parent class loader.
The parent loader records the registration information of the producer micro-service, wherein the registration information of the producer micro-service comprises the following steps: a producer microservice and a first subclass loader to load the producer microservice.
The second child class loader, which loads the consumer microservice, sends the microservice that needs to be called to the parent class loader.
Based on the registration information of the micro-services of the producer, the second sub-class loader finds the micro-services needing to be called and determines the first sub-class loader corresponding to the micro-services needing to be called.
The consumer micro-service loaded by the second sub-class loader calls the producer micro-service loaded by the first sub-class loader corresponding to the micro-service required to be called.
As shown in fig. 7, one embodiment of the present invention provides an electronic device 40. The electronic device 40 includes a memory 410, a processor 420, and an Input/Output (I/O) interface 430. Memory 410, for storing instructions. And the processor 420 is used for calling the instructions stored in the memory 410 to execute the micro service architecture construction method and the micro service calling method of the embodiment of the invention. The processor 420 is connected to the memory 410 and the I/O interface 430, respectively, for example, via a bus system and/or other type of connection mechanism (not shown). The memory 410 may be used to store programs and data, including programs for microservice architecture building and microservice calling according to embodiments of the present invention, and the processor 420 executes various functional applications and data processing of the electronic device 40 by executing the programs stored in the memory 410.
In the embodiment of the present invention, the processor 420 may be implemented in at least one hardware form of a Digital Signal Processor (DSP), a Field-Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), and the processor 420 may be one or a combination of several Central Processing Units (CPUs) or other Processing units with data Processing capability and/or instruction execution capability.
In the embodiment of the present invention, the I/O interface 430 may be used to receive input instructions (e.g., numeric or character information, and generate key signal inputs related to user settings and function control of the electronic device 40, etc.), and may also output various information (e.g., images or sounds, etc.) to the outside. The I/O interface 430 may comprise one or more of a physical keyboard, function buttons (e.g., volume control buttons, switch buttons, etc.), a mouse, a joystick, a trackball, a microphone, a speaker, a touch panel, and the like.
In some embodiments, the invention provides a computer-readable storage medium having stored thereon computer-executable instructions that, when executed by a processor, perform any of the methods described above.
Although operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in serial order, or that all illustrated operations be performed, to achieve desirable results. In certain environments, multitasking and parallel processing may be advantageous.
The methods and apparatus of the present invention can be accomplished with standard programming techniques with rule based logic or other logic to accomplish the various method steps. It should also be noted that the words "means" and "subfile" as used herein and in the claims is intended to encompass implementations using one or more lines of software code, and/or hardware implementations, and/or equipment for receiving inputs.
Any of the steps, operations, or procedures described herein may be performed or implemented using one or more hardware or software subfiles, alone or in combination with other devices. In one embodiment, the software subfiles are implemented using a computer program product comprising a computer readable medium embodying computer program code which is executable by a computer processor for performing any or all of the described steps, operations or procedures.
The foregoing description of the implementation of the invention has been presented for purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise form disclosed, and modifications and variations are possible in light of the above teachings or may be acquired from practice of the invention. The embodiments were chosen and described in order to explain the principles of the invention and its practical application to enable one skilled in the art to utilize the invention in various embodiments and with various modifications as are suited to the particular use contemplated.
Claims (11)
1. A method for constructing a micro-service architecture, wherein the micro-service architecture comprises a parent class loader and a child class loader, and the method comprises the following steps:
creating one or more child class loaders within a process based on the parent class loader;
each of the one or more subclass loaders loads one micro-service in the same workflow, wherein the number of the subclass loaders corresponds to the number of the micro-services in the same workflow.
2. The method of claim 1, wherein the creating a plurality of child class loaders within one process based on the parent class loader comprises:
calling a creating child loader interface of the parent loader;
creating the one or more child class loaders based on a create child class loader interface of the parent class loader.
3. The method of claim 1, wherein the one or more child loaders share common resources loaded in the parent loader, wherein the common resources comprise: server resources, database resources, and general tool class library resources, wherein the subclass loader does not include the general resources.
4. The method of any of claims 1-3, wherein the parent class loader is one.
5. The method of claim 4, wherein the parent class loader comprises a Java virtual machine class loader.
6. A micro-service calling method, wherein the method comprises the following steps:
micro-services in the same workflow are mutually invoked based on a micro-service architecture, wherein the micro-service architecture is the micro-service architecture constructed by the micro-service architecture construction method of any one of claims 1 to 5, the micro-service architecture comprises one parent class loader and a plurality of child class loaders, and the child class loaders comprise a first child class loader and a second child class loader.
7. The method of claim 6, wherein the microservices in the same workflow invoke each other based on microservice architecture, comprising:
the first child class loader loading the producer microservice registers the producer microservice with the parent class loader;
the parent loader records the registration information of the producer micro service, wherein the registration information of the producer micro service comprises: the producer microservice and the first subclass loader loading the producer microservice;
the second sub-class loader for loading the micro service of the consumer sends the micro service to be called to the parent class loader;
based on the registration information of the producer micro-service, the second sub-class loader finds the micro-service needing to be called and determines a first sub-class loader corresponding to the micro-service needing to be called;
and the consumer micro-service loaded by the second sub-class loader calls the producer micro-service loaded by the first sub-class loader corresponding to the micro-service needing to be called.
8. A microservice architecture building apparatus, wherein a microservice architecture comprises a parent class loader and a child class loader, the apparatus comprising:
a creating unit, configured to create one or more child class loaders within one process based on the parent class loader;
and the loading unit is used for loading one micro service in the same workflow by each of the one or more subclass loaders, wherein the number of the subclass loaders corresponds to the number of the micro services in the same workflow.
9. A micro-service invocation apparatus, wherein the apparatus comprises:
a calling unit, configured to call each other microservices in the same workflow based on a microservice architecture, where the microservice architecture is the microservice architecture built by the microservice architecture building method according to any one of claims 1 to 5, the microservice architecture includes one parent class loader and a plurality of child class loaders, and the child class loaders include a first child class loader and a second child class loader.
10. An electronic device, wherein the electronic device comprises:
a memory to store instructions; and
a processor for calling the memory-stored instructions to execute a microservice architecture construction method of any one of claims 1-5 and a microservice calling method of claim 6 or 7.
11. A computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions that, when executed by a processor, perform a microservice architecture construction method of any of claims 1-5 and a microservice invocation method of claims 6 or 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910833879.0A CN110750307B (en) | 2019-09-04 | 2019-09-04 | Micro-service architecture construction method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910833879.0A CN110750307B (en) | 2019-09-04 | 2019-09-04 | Micro-service architecture construction method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110750307A CN110750307A (en) | 2020-02-04 |
CN110750307B true CN110750307B (en) | 2023-04-11 |
Family
ID=69276148
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910833879.0A Active CN110750307B (en) | 2019-09-04 | 2019-09-04 | Micro-service architecture construction method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110750307B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112035192B (en) * | 2020-09-02 | 2024-02-23 | 中国银行股份有限公司 | Java class file loading method and device supporting component hot deployment |
CN112328329A (en) * | 2020-11-25 | 2021-02-05 | 深圳市欢太科技有限公司 | Data processing method and device, electronic equipment and storage medium |
CN115185700B (en) * | 2022-09-13 | 2022-12-20 | 深圳市瓴码云计算有限公司 | High-integration single-process container management method |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105933448A (en) * | 2016-06-29 | 2016-09-07 | 江苏电力信息技术有限公司 | Self-managed micro-service architecture and service method thereof |
US9792163B1 (en) * | 2016-06-28 | 2017-10-17 | Vmware, Inc. | Decentralized control plane for a computing system |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101296204B (en) * | 2007-04-25 | 2010-11-03 | 财团法人工业技术研究院 | System and method for sharing digital household electronic service resource |
US10356161B2 (en) * | 2014-01-21 | 2019-07-16 | Oracle International Corporation | System and method for classloading in a multitenant application server environment |
US10860390B2 (en) * | 2017-06-28 | 2020-12-08 | Intel Corporation | Microservices architecture |
-
2019
- 2019-09-04 CN CN201910833879.0A patent/CN110750307B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9792163B1 (en) * | 2016-06-28 | 2017-10-17 | Vmware, Inc. | Decentralized control plane for a computing system |
CN105933448A (en) * | 2016-06-29 | 2016-09-07 | 江苏电力信息技术有限公司 | Self-managed micro-service architecture and service method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN110750307A (en) | 2020-02-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110750307B (en) | Micro-service architecture construction method and device | |
US8276116B2 (en) | Algebra operation method, apparatus, and storage medium thereof | |
US8510712B1 (en) | Testing in-container software objects | |
CN100511156C (en) | Apparatus for compulsively terminating thread blocked on input/output operation and method for the same | |
US20150012911A1 (en) | Interface simulator for test rig in data distribution service | |
US8813051B2 (en) | Running multiple copies of native code in a Java Virtual Machine | |
CN111223036B (en) | GPU (graphics processing unit) virtualization sharing method and device, electronic equipment and storage medium | |
US8751872B2 (en) | Separation of error information from error propagation information | |
US20160054986A1 (en) | Composable context menus | |
CN114115838A (en) | Data interaction method and system based on distributed components and cloud platform | |
CN113986402A (en) | Function calling method and device, electronic equipment and storage medium | |
US6757679B1 (en) | System for building electronic queue(s) utilizing self organizing units in parallel to permit concurrent queue add and remove operations | |
JP7025104B2 (en) | Information processing equipment, methods and programs | |
US8898625B2 (en) | Optimized storage of function variables | |
CN111738591A (en) | Task execution method, device and equipment and readable storage medium | |
CN111580938A (en) | Transaction processing method, device, equipment and medium for work unit | |
CN113126982B (en) | Application program generation and operation method and device | |
US20090144752A1 (en) | Unmanaged-to-managed aggregation | |
CN110737533B (en) | Task scheduling method and device, electronic equipment and storage medium | |
CN106934555B (en) | Workflow organization method and device, computer equipment and storage medium | |
CN112764729A (en) | Application software development method and device, computer equipment and readable storage medium | |
CN112041817B (en) | Method and node for managing requests for hardware acceleration by means of an accelerator device | |
CN112506592A (en) | Method, device, equipment and storage medium for determining page loading duration | |
CN111861381B (en) | Access method and system of multi-fund channel | |
CN117216135A (en) | ETL execution template generation method |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |