Micro-service platform and implementation method thereof, electronic equipment and storage medium
An implementation method and technology of microservices, applied in the computer field, can solve the problems of lack of communication mechanism, inability to know the changes of the health status of microservices in time, etc., and achieve the effect of strong data throughput capacity.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0066] This embodiment provides a microservice platform, figure 1 A schematic diagram of the modules of this embodiment is shown. refer to figure 1 , the microservice platform of this embodiment includes an event publishing module 1 , an event subscription module 2 and an event bus 3 .
[0067]Specifically, in this embodiment, the event release module 1 is used to send several events including microservice information to the event bus 3, wherein the microservice information may include but not limited to: microservice ID, microservice group (in this embodiment For example, it can be set by the business application side, and the grouping dimensions can include but not limited to business type, machine room ID, etc.), microservice IP, instance process ID, microservice status (for example, online, offline), start time, event type (For example, microservice online event, microservice offline event), event source, computer room, etc. The event bus 3 is used to process several re...
Embodiment 2
[0079] This embodiment provides a method for implementing a microservice platform, wherein the microservice platform includes an event publishing module, an event subscription module, and an event bus, figure 2 A flowchart of this embodiment is shown. refer to figure 2 , the implementation method of this embodiment includes:
[0080] S1. The event publishing module sends several events including microservice information to the event bus.
[0081] Among them, the microservice information may include but not limited to: microservice ID, microservice grouping (in this embodiment, it can be set by the business application side, and the grouping dimension can include but not limited to business type, machine room identification, etc.), microservice IP , instance process ID, microservice status (for example, online, offline), startup time, event type (for example, microservice online event, microservice offline event), event source, computer room, etc.
[0082] S2. The event bu...
Embodiment 3
[0100] This embodiment provides an electronic device, which can be expressed in the form of a computing device (for example, it can be a server device), including a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the processor The implementation method of the microservice platform provided by Embodiment 2 can be realized when the computer program is executed.
[0101] Figure 5 A schematic diagram of the hardware structure of this embodiment is shown, as Figure 5 As shown, the electronic device 9 specifically includes:
[0102] At least one processor 91, at least one memory 92, and a bus 93 for connecting different system components, including the processor 91 and the memory 92, wherein:
[0103] The bus 93 includes a data bus, an address bus, and a control bus.
[0104] The memory 92 includes a volatile memory, such as a random access memory (RAM) 921 and / or a cache memory 922 , and may further include a read only me...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


