CN109714319A - Management system, method, apparatus, computer equipment and the storage medium of micro services - Google Patents

Management system, method, apparatus, computer equipment and the storage medium of micro services Download PDF

Info

Publication number
CN109714319A
CN109714319A CN201811487536.5A CN201811487536A CN109714319A CN 109714319 A CN109714319 A CN 109714319A CN 201811487536 A CN201811487536 A CN 201811487536A CN 109714319 A CN109714319 A CN 109714319A
Authority
CN
China
Prior art keywords
micro services
registration
information
pond
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811487536.5A
Other languages
Chinese (zh)
Inventor
尚小伟
王俊威
赵雷
李利威
刘畅
孙炜
姜佰胜
熊浩敏
陈磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Zhongnong Network Co Ltd
Original Assignee
Shenzhen Zhongnong Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Zhongnong Network Co Ltd filed Critical Shenzhen Zhongnong Network Co Ltd
Priority to CN201811487536.5A priority Critical patent/CN109714319A/en
Publication of CN109714319A publication Critical patent/CN109714319A/en
Pending legal-status Critical Current

Links

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the invention discloses a kind of management system of micro services, method, apparatus, computer equipment and storage mediums, include: multiple micro services systems and the micro services pond with the multiple micro services system relationship, includes registration center's service and at least one micro services in each micro services system;For obtaining the registration request that the first micro services are sent when online, the registration request includes registration information for registration center's service;Registration center's service is also used to for the registration information being sent to the micro services pond, and the micro services pond is used to store the registration information of the micro services in the multiple micro services system.By the above-mentioned means, the micro services that can be improved between different micro services systems call efficiency.

Description

Management system, method, apparatus, computer equipment and the storage medium of micro services
Technical field
The present invention relates to micro services architecture technology field more particularly to a kind of management system of micro services, method, apparatus, Computer equipment and storage medium.
Background technique
With the continuous development of software technology, list application system was gradually to micro services system transition in the past.Wherein, micro services System is made of multiple micro services.For enterprise, an enterprise may have multiple micro services systems, different micro services systems It can mutually call, to complete each function services needed for enterprise.
Micro services in one micro services system need one when calling the micro services of another micro services system Portal service is authenticated and is distributed for external call, and called side needs to carry out data complicated encapsulation while called side Micro services system need to carry out a series of parsings verification again, lead to the calling inefficiency of micro services.
Summary of the invention
Based on this, it is necessary in view of the above-mentioned problems, propose a kind of micro services call high-efficient micro services management system, Method, apparatus, computer equipment and storage medium.
A kind of management system of micro services, the system comprises:
Multiple micro services systems and micro services pond with the multiple micro services system relationship are wrapped in each micro services system Include registration center's service and at least one micro services;
Registration center's service is for obtaining the registration request that the first micro services are sent when online, the registration request Including registration information;
Registration center's service is also used to for the registration information being sent to the micro services pond, and the micro services pond is used In the registration information for storing the micro services in the multiple micro services system.
A kind of management method of micro services, which comprises
The registration request sent when online by the first micro services of registration center's service acquisition in micro services system, institute Stating registration request includes registration information;
The registration information is sent to micro services pond, the micro services pond is for storing in the multiple micro services system Micro services registration information.
A kind of managing device of micro services, described device include:
Module is obtained, for sending when online by the first micro services of registration center's service acquisition in micro services system Registration request, the registration request includes registration information;
Sending module, for the registration information to be sent to micro services pond, the micro services pond is described more for storing The registration information of micro services in a micro services system.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the calculating When machine program is executed by the processor, so that the processor executes following steps:
The registration request sent when online by the first micro services of registration center's service acquisition in micro services system, institute Stating registration request includes registration information;
The registration information is sent to micro services pond, the micro services pond is for storing in the multiple micro services system Micro services registration information.
A kind of computer readable storage medium is stored with computer program, when the computer program is executed by processor, So that the processor executes following steps:
The registration request sent when online by the first micro services of registration center's service acquisition in micro services system, institute Stating registration request includes registration information;
The registration information is sent to micro services pond, the micro services pond is for storing in the multiple micro services system Micro services registration information.
The invention proposes a kind of management system of micro services, method, apparatus, computer equipment and storage mediums, including Multiple micro services systems and micro services pond with the multiple micro services system relationship include in registration in each micro services system Central server and at least one micro services;Registration center's service is asked for obtaining the registration that the first micro services are sent when online It asks, the registration request includes registration information;Registration center's service is also used to for the registration information being sent to described micro- Service pool, the micro services pond are used to store the registration information of the micro services in the multiple micro services system.Due to micro services Registration center in system, which services, has sent micro services pond for the registration information of the micro services in micro services system, so that in incognito Business pond can carry out unified management to the registration information of the micro services in each micro services system, specifically, in incognito at one Micro services in business system do not have to pass through the micro services system again when calling the micro services in another micro services system In portal service, and can be directly called by micro services pond, improve the efficiency of service call.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Wherein:
Fig. 1 is the composed structure schematic diagram of the management system of micro services in one embodiment;
Fig. 2 is the schematic diagram that micro services pond receives registration information acquisition request in one embodiment;
Fig. 3 is the implementation process schematic diagram of the management method of micro services in one embodiment;
Fig. 4 is the implementation process schematic diagram of the management method of micro services in one embodiment;
Fig. 5 is the implementation process schematic diagram of step 406 and step 408 in one embodiment;
Fig. 6 is the structural block diagram of the managing device of micro services in one embodiment;
Fig. 7 is the structural block diagram of the managing device of micro services in one embodiment;
Fig. 8 is the structural block diagram of computer equipment in one embodiment.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
As shown in Figure 1, in one embodiment, providing a kind of management system of micro services, comprising:
Multiple micro services systems and micro services pond with the multiple micro services system relationship are wrapped in each micro services system Include registration center's service and at least one micro services;
Registration center's service is for obtaining the registration request that the first micro services are sent when online, the registration request Including registration information;
Registration center's service is also used to for the registration information being sent to the micro services pond, and the micro services pond is used In the registration information for storing the micro services in the multiple micro services system.
The management system of above-mentioned micro services, including multiple micro services systems and micro- with the multiple micro services system relationship Service pool includes registration center's service and at least one micro services in each micro services system;Registration center's service is used for The registration request that the first micro services are sent when online is obtained, the registration request includes registration information;Registration center's clothes Business is also used to for the registration information being sent to the micro services pond, and the micro services pond is for storing the multiple micro services system The registration information of micro services in system.Since the registration center in micro services system services the micro services in micro services system Registration information has been sent to micro services pond, enables micro services pond to the registration informations of the micro services in each micro services system Unified management is carried out, specifically, micro- in another micro services system of calling in the micro services in a micro services system When service, without passing through the portal service in the micro services system again, and can directly it be called by micro services pond, Improve the efficiency of service call.
The micro services system is made of registration center's service and at least one micro services.
Wherein, registration center service, for in micro services system each micro services it is online, offline situations such as into The unified management of row;The micro services are a kind of emerging software architectures, exactly a large-scale application program and service are torn open Be divided into it is multiple can with stand-alone development, design, operation and O&M small application.
For a micro services system, wherein same services function may be capable of providing in incognito comprising two or more Business.It include 3 micro services WFWXT1-fw1, WFWXT1-fw2 and WFWXT1-fw3 for example, for micro services system WFWXT1, Wherein, WFWXT1-fw2 and WFWXT1-fw3 is capable of providing identical service function.
The micro services pond is stored for the registration information to the micro services in multiple micro services systems.In general, one A enterprise or school have multiple micro services systems, thus it is possible to establish a micro services pond for the enterprise or school, for pair The micro services in each micro services system in the enterprise or school carry out unified management.In embodiments of the present invention, described Micro services pond can be a shared cache database.
One micro services pond is associated with multiple micro services systems, due to micro services system pass relevant with micro services pond System, therefore, micro services pond can realize the unified management to this multiple micro services system by the association between them.
The registration information can include but is not limited to the tune of micro services name information, micro services address information, micro services With mode information, the port information of micro services and micro services functional information.
The title of micro services namely the identification information of micro services are used for one micro services of unique identification, the name of micro services Claim, the function that can be can be realized according to micro services is named, for example, the function of a certain micro services is timing, then can be with The micro services are named as jishiweifuwu according to its clocking capability, meanwhile, when a micro services system has multiple timing function Can micro services when, can be named in conjunction with digital number, for example, be named as jishiweifuwu-1 and jishiweifuwu-2;Micro services address, for the IP address of the micro services;The method of calling of micro services, such as the micro services Data format, different micro services have different method of calling;The port of micro services, the port numbers including micro services;In incognito Business functional information, is used to indicate the function of micro services, and micro services functional information can also be indicated with Function Identification, for example, It is all that the micro services of clocking capability, Function Identification jswfw, the micro services of all offer buzzer functions, function mark are provided Knowing is nzwfw.
First micro services take when online to the first registration center of the first micro services system where first micro services Business sends registration request, so that a certain service function in the first micro services of micro services pond system is informed in the service of the first registration center (i.e. the function that the first micro services can be realized) can be used, meanwhile, micro services pond is after receiving registration information, to note Volume information is stored, and guarantees the calling of other subsequent micro services.Optionally, registration center services, also to the registration of micro services Information is stored.
In order to guarantee the normal call of micro services, it is offline to avoid the occurrence of micro services, but has still carried out calling journey Sequence, so as to cause malloc failure malloc the case where, in order to solve this problem, in one embodiment, registration center service is also For:
When detecting that first micro services are offline, the offline information of first micro services, the offline letter are obtained Breath includes the identification information and down status identification information of first micro services, by the offline information be sent to it is described in incognito Business pond;
Micro services pond is also used to the identification information and the down status identification information according to first micro services, Delete the registration information of first micro services.
The down status identification information, is used to indicate the down status of micro services.The down status identification information can To be made of number and/or character and/or letter.
Optionally, for a micro services system, registration center's service therein in the micro services system other are micro- Timing, mutual transmission heartbeat message is understood between service, the heartbeat message can be by number and/or character and/or letter Composition, in this way, registration center's service can confirm whether the micro services are online according to the heartbeat message that micro services are sent.For example, If registration center's service is not received by the heartbeat message that a certain micro services are sent within the regular hour, then registration center takes It is automatically offline that business will be considered to the micro services, and then, registration center services the offline information that will generate and obtain the micro services, And offline information is sent to micro services pond, such micro services pond will find the micro services according to the identification information of the micro services, Meanwhile the registration information of the micro services is deleted according to down status identification information.
Optionally, micro services actively service to registration center before it wants offline and send offline request, in offline request Offline information, that is, identification information and down status identification information including the micro services, in this way, registration center's service is receiving It detects that the micro services are offline when the offline request, then, gets offline information from the offline request, and should Offline information is sent to micro services pond.Optionally, registration center services after the offline request for receiving micro services transmission, to The micro services send feedback information, which knows that registration center's service has been acknowledged after receiving the feedback information Its down status, then, the micro services are offline.In this way, micro services pond can be guaranteed preferably to micro services Registration information is managed.
Since micro services pond stores the registration information of first micro services to the first micro services when online, because This, when first micro services are offline, micro services pond needs to delete the registration information of first micro services, guarantees micro services just Often call.
In one embodiment, the micro services pond is also used to:
The funcall request of the second micro services transmission is obtained, includes Function Identification in the funcall request;
The micro services pond is also used to call corresponding micro services according to the Function Identification, call result is obtained, by institute It states call result and returns to second micro services.
Second micro services can be the micro services with the first micro services in the same micro services system, can also be with It is the micro services from the first micro services in different micro services systems.
Herein, registration information includes micro services functional information, and micro services functional information is indicated with Function Identification, institute Function Identification is stated, is used to indicate and needs to call the micro services for having what function.
It micro services pond, can be according to micro services functional information when receiving the registration information comprising micro services functional information Classify to each micro services, i.e., the micro services that can be realized same function are stored in same storage region, in this way, convenient The subsequent calling of micro services.Further, which can also be named as Function Identification.
The call result, including result mark data, the result mark data include that successfully calling is called in reflection The malloc failure malloc mark data of success flag data and reflection malloc failure malloc.When calling successfully, the call result can be with Including calling feedback data, the calling feedback data refers to the second micro services by calling the micro services of a certain function to need The data arrived.For example, when the second micro services calling function is the micro services of acquisition time, when calling feedback data is current Between.When malloc failure malloc, the call result can also include failure reason data, and the failure reason data is used to indicate this The reason of secondary malloc failure malloc.
Correspondingly, in embodiments of the present invention, when the Function Identification is corresponding with multiple target micro services, it is described in incognito Business pond is also used to:
The status information for obtaining the multiple target micro services, according to the status information of the multiple target micro services by institute State one that funcall request is sent in the multiple target micro services.
The target micro services are that the Function Identification in micro services pond in Function Identification and funcall request is identical micro- Service.
Micro services pond is that each micro services are provided with status information, and the status information includes called state and idle shape State.After a certain micro services in micro services pond are called, the status information of the micro services is set as being adjusted by micro services pond With state, when a certain micro services in micro services pond are in not called state, the state of the micro services is believed in micro services pond Breath is set as idle state, or after a certain micro services in micro services pond are called to be terminated, micro services pond by this in incognito It is idle state (service function called side is needed to be fed back) that the status information of business, which is arranged from called status modifier,.
When the Function Identification is corresponding with multiple target micro services, the state letter of multiple target micro services is obtained first Breath, is then called according to the status information of target micro services, i.e., if only one target in this multiple target micro services When micro services are in idle condition, then funcall request is directly sent to this target micro services to call the target micro- Service, if there are at least two target micro services to be in idle condition in this multiple target micro services, by the funcall The two target micro services are requested while being sent to, or funcall request is sent to the two target micro services at random In one of them, when by the funcall request and meanwhile be sent to the two target micro services, then increasing to a certain extent The big probability that service is invoked successfully, because while target micro services are in idle condition, but due to other reasons, it may Lead to malloc failure malloc, so the funcall is requested while being sent to the two target micro services, can guarantee to call successfully Probability can save when funcall request is sent to one of them in the two target micro services at random and be It unites resource, it, can be by there are also remaining micro services when guaranteeing that next time encounters other micro services again and to call the micro services of the function It calls.
In one embodiment, the micro services pond is also used to:
Registration information acquisition request is received, in the registration that registration center's service is obtained according to the registration information acquisition request Heart address information obtains the registration information of each micro services in micro services system according to registration center's address information.
Optionally, in micro services pond due to failure and after returning to normal condition, administrative staff can pass through micro services pond Operation interface click the button (virtual push button) for obtaining registration information, by clicking operation, generate registration information acquisition request, Micro services pond obtains registration center's address information of each micro services system when receiving registration information acquisition request first, Then it according to registration center's address information of each micro services system, is sent to the service of the registration center of each micro services system micro- Service pool registration information acquisition instruction, registration center service after receiving micro services pond registration information acquisition instruction, can be with The registration information of each micro services directly stored is sent to micro services pond, can also be to each micro services in its system Send micro services registration information acquisition instruction, so as to each micro services according to the micro services registration information acquisition instruction to the registration Center service sends registration information, and registration center's service, will be each after receiving the registration information that each micro services are sent The registration information of micro services is sent to micro services pond.
Optionally, registration micro services is missed since registration center's service fault may cause registration center's service Information is sent to micro services pond, so the management system of micro services further includes monitoring module, as shown in Fig. 2, the monitoring module is fixed Phase sends registration information acquisition request to micro services pond, and micro services pond is asked in the registration information acquisition for receiving monitoring module transmission After asking, registration center's address information of registration center's service is obtained according to the registration information acquisition request, according to the note Volume center address information obtains the registration information of each micro services in micro services system.
In an alternative embodiment, data are directly used for the ease of service call side and called side, raising is opened Efficiency and treatment effeciency are sent out, all data and information of the present invention are all made of clear text format, for example, registration information, target The status information and calling feedback data of micro services.
As shown in figure 3, in one embodiment, providing a kind of management method of micro services.This method is applied to registration Center service.The management method of the micro services specifically comprises the following steps:
Step 302, the note sent when online by the first micro services of registration center's service acquisition in micro services system Volume request, the registration request includes registration information.
Step 304, the registration information is sent to micro services pond, the micro services pond for store it is the multiple in incognito The registration information of micro services in business system.
The management method of above-mentioned micro services passes through the first micro services of registration center's service acquisition in micro services system first The registration request sent when online, the registration request include registration information;Then the registration information is sent in incognito Business pond, the micro services pond are used to store the registration information of the micro services in the multiple micro services system.Due to micro services system Registration center in system, which services, has sent micro services pond for the registration information of the micro services in micro services system, so that micro services Pond can carry out unified management to the registration information of the micro services in each micro services system, specifically, in a micro services Micro services in system do not have to again when calling the micro services in another micro services system by the micro services system Portal service, and can be directly called by micro services pond, improve the efficiency of service call.
In one embodiment, after the registration information being sent to micro services pond described in the step 304, further includes:
When registration center's service detection is offline to first micro services, the offline of first micro services is obtained Information, the offline information include the identification information and down status identification information of first micro services;
The offline information is sent to the micro services pond, indicates the micro services pond according to first micro services The identification information and the down status identification information delete the registration information of first micro services.
As shown in figure 4, in one embodiment it is proposed that a kind of management method of micro services.This method is applied in incognito Business pond.The management method of the micro services specifically comprises the following steps:
Step 402, the registration information that registration center's service in micro services system is sent is obtained, the registration information is from note It is obtained in volume request, the registration request is sent to the micro services system by first micro services when the first micro services are online Registration center service in system.
Step 404, the registration information that registration center's service in the micro services system is sent is stored.
The registration letter that the management method of above-mentioned micro services, first registration center's service in acquisition micro services system are sent Breath, the registration information obtains from registration request, the registration request when the first micro services are online by described first in incognito The registration center service that business is sent in the micro services system;Then the registration center in the micro services system is stored Service the registration information sent.Since micro services pond has not only got the note that the service of the registration center in micro services system is sent Volume information, also stores registration information, realizes the registration information progress to the micro services in each micro services system Unified management, specifically, calling the micro services in another micro services system in the micro services in a micro services system When, it without passing through the portal service in the micro services system again, and can be directly called, be improved by micro services pond The efficiency of service call.
In one embodiment, as shown in figure 5, the registration center in the storage micro services system described in step 404 takes It is engaged in after the registration information sent, further includes:
Step 406, the funcall request that the second micro services are sent is obtained, includes function mark in the funcall request Know;
Step 408, corresponding micro services are called according to the Function Identification, call result is obtained, by the call result Return to second micro services.
In one embodiment, when the Function Identification is corresponding with multiple target micro services, according to institute described in step 408 It states Function Identification and calls corresponding micro services, obtain call result, the call result is returned into second micro services, wrap It includes:
According to the Function Identification, the status information of multiple target micro services is obtained;
Funcall request is sent to the multiple target according to the status information of the multiple target micro services One in micro services, call result is obtained, the call result is returned into second micro services.
In one embodiment, the management method of the micro services, further includes:
Receive registration information acquisition request;
Registration center's address information of registration center's service is obtained according to the registration information acquisition request;
The registration information of each micro services in micro services system is obtained according to registration center's address information.
As shown in fig. 6, in one embodiment, providing a kind of managing device of micro services, which includes:
Module 602 is obtained, for passing through the first micro services of registration center's service acquisition in micro services system when online The registration request of transmission, the registration request include registration information;
Sending module 604, for the registration information to be sent to micro services pond, the micro services pond is described for storing The registration information of micro services in multiple micro services systems.
The managing device of above-mentioned micro services passes through the first micro services of registration center's service acquisition in micro services system first The registration request sent when online, the registration request include registration information;Then the registration information is sent in incognito Business pond, the micro services pond are used to store the registration information of the micro services in the multiple micro services system.Due to micro services system Registration center in system, which services, has sent micro services pond for the registration information of the micro services in micro services system, so that micro services Pond can carry out unified management to the registration information of the micro services in each micro services system, specifically, in a micro services Micro services in system do not have to again when calling the micro services in another micro services system by the micro services system Portal service, and can be directly called by micro services pond, improve the efficiency of service call.
In one embodiment, above-mentioned apparatus further include:
Offline information obtains module, for obtaining when registration center's service detection is offline to first micro services The offline information of first micro services is taken, the offline information includes the identification information and down status of first micro services Identification information;
Offline information sending module indicates the micro services for the offline information to be sent to the micro services pond Pond first micro services are deleted according to the identification information and the down status identification information of first micro services Registration information.
As shown in fig. 7, in one embodiment, providing a kind of managing device of micro services, which includes:
Registration information obtains module 702, the registration information sent for obtaining the service of the registration center in micro services system, The registration information is obtained from registration request, and the registration request is sent out when the first micro services are online by first micro services The registration center into the micro services system is sent to service.
Registration information memory module 704, the registration sent for storing the service of the registration center in the micro services system Information.
The registration letter that the managing device of above-mentioned micro services, first registration center's service in acquisition micro services system are sent Breath, the registration information obtains from registration request, the registration request when the first micro services are online by described first in incognito The registration center service that business is sent in the micro services system;Then the registration center in the micro services system is stored Service the registration information sent.Since micro services pond has not only got the note that the service of the registration center in micro services system is sent Volume information, also stores registration information, realizes the registration information progress to the micro services in each micro services system Unified management, specifically, calling the micro services in another micro services system in the micro services in a micro services system When, it without passing through the portal service in the micro services system again, and can be directly called, be improved by micro services pond The efficiency of service call.
In one embodiment, described device, further includes:
Funcall request module, for obtaining the funcall request of the second micro services transmission, the function tune With in request include Function Identification;
Function allocating module will be described for obtaining call result according to the corresponding micro services of Function Identification calling Call result returns to second micro services.
In one embodiment, when the Function Identification is corresponding with multiple target micro services, the function allocating module, Include:
State information acquisition module, for obtaining the status information of multiple target micro services according to the Function Identification;
Status information calling module, for being asked the funcall according to the status information of the multiple target micro services One be sent in the multiple target micro services is asked, call result is obtained, the call result is returned to described second Micro services.
In one embodiment, the managing device of the micro services, further includes:
Registration information acquisition request receiving module, for receiving registration information acquisition request;
Registration center's address information obtains module, for obtaining registration center's service according to the registration information acquisition request Registration center's address information;
Data obtaining module, for obtaining each micro services in micro services system according to registration center's address information Registration information.
Fig. 8 shows the internal structure chart of computer equipment in one embodiment.The computer equipment specifically can be clothes Business device.As shown in figure 8, the computer equipment includes processor, memory and the network interface connected by system bus.Its In, memory includes non-volatile memory medium and built-in storage.The non-volatile memory medium of the computer equipment is stored with Operating system can also be stored with computer program, when which is executed by processor, processor may make to realize in incognito The management method of business.Computer program can also be stored in the built-in storage, when which is executed by processor, can be made Obtain the management method that processor executes micro services.Network interface is for communication with the outside.Those skilled in the art can manage It solves, structure shown in Fig. 8, only the block diagram of part-structure relevant to application scheme, is not constituted to the application side The restriction for the computer equipment that case is applied thereon, specific computer equipment may include more more or less than as shown in the figure Component, perhaps combine certain components or with different component layouts.
In one embodiment, the management method of micro services provided by the present application can be implemented as a kind of computer program Form, computer program can be run in computer equipment as shown in Figure 8.Composition can be stored in the memory of computer equipment Each process template of the managing device of micro services.For example, obtaining module 602 and sending module 604.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the calculating When machine program is executed by the processor, so that the processor executes following steps:
The registration request sent when online by the first micro services of registration center's service acquisition in micro services system, institute Stating registration request includes registration information.
The registration information is sent to micro services pond, the micro services pond is for storing in the multiple micro services system Micro services registration information.
Above-mentioned computer equipment, first by the first micro services of registration center's service acquisition in micro services system online When the registration request that sends, the registration request includes registration information;Then the registration information is sent to micro services pond, institute Micro services pond is stated for storing the registration information of the micro services in the multiple micro services system.Due to the note in micro services system The registration information of the micro services in micro services system has been sent micro services pond by volume center service, enables micro services pond right The registration information of micro services in each micro services system carries out unified management, specifically, in a micro services system Micro services call another micro services system in micro services when, without again pass through the micro services system in enter it is oral Business, and can be directly called by micro services pond, improve the efficiency of service call.
In one embodiment, it when above-mentioned computer program is executed by the processor, is also used to execute following steps:
When registration center's service detection is offline to first micro services, the offline of first micro services is obtained Information, the offline information include the identification information and down status identification information of first micro services;
The offline information is sent to the micro services pond, indicates the micro services pond according to first micro services The identification information and the down status identification information delete the registration information of first micro services.
In one embodiment, it when above-mentioned computer program is executed by the processor, is also used to execute following steps:
The registration information that registration center's service in micro services system is sent is obtained, the registration information is from registration request It obtains, the registration request is sent to the institute in the micro services system by first micro services when the first micro services are online State registration center's service.
Store the registration information that registration center's service in the micro services system is sent.
In one embodiment, it when above-mentioned computer program is executed by the processor, is also used to execute following steps:
The funcall request of the second micro services transmission is obtained, includes Function Identification in the funcall request;
Corresponding micro services are called according to the Function Identification, call result is obtained, the call result is returned into institute State the second micro services.
In one embodiment, described according to the function when the Function Identification is corresponding with multiple target micro services Mark calls corresponding micro services, obtains call result, the call result is returned to second micro services, comprising:
According to the Function Identification, the status information of multiple target micro services is obtained;
Funcall request is sent to the multiple target according to the status information of the multiple target micro services One in micro services, call result is obtained, the call result is returned into second micro services.
In one embodiment, it when above-mentioned computer program is executed by the processor, is also used to execute following steps:
Receive registration information acquisition request;
Registration center's address information of registration center's service is obtained according to the registration information acquisition request;
The registration information of each micro services in micro services system is obtained according to registration center's address information.
A kind of computer readable storage medium is stored with computer program, when the computer program is executed by processor, So that the processor executes following steps:
The registration request sent when online by the first micro services of registration center's service acquisition in micro services system, institute Stating registration request includes registration information.
The registration information is sent to micro services pond, the micro services pond is for storing in the multiple micro services system Micro services registration information.
Above-mentioned computer readable storage medium, first in incognito by registration center's service acquisition first in micro services system The registration request that business is sent when online, the registration request includes registration information;Then the registration information is sent to micro- Service pool, the micro services pond are used to store the registration information of the micro services in the multiple micro services system.Due to micro services Registration center in system, which services, has sent micro services pond for the registration information of the micro services in micro services system, so that in incognito Business pond can carry out unified management to the registration information of the micro services in each micro services system, specifically, in incognito at one Micro services in business system do not have to pass through the micro services system again when calling the micro services in another micro services system In portal service, and can be directly called by micro services pond, improve the efficiency of service call.
In one embodiment, it when above-mentioned computer program is executed by the processor, is also used to execute following steps:
When registration center's service detection is offline to first micro services, the offline of first micro services is obtained Information, the offline information include the identification information and down status identification information of first micro services;
The offline information is sent to the micro services pond, indicates the micro services pond according to first micro services The identification information and the down status identification information delete the registration information of first micro services.
In one embodiment, it when above-mentioned computer program is executed by the processor, is also used to execute following steps:
The registration information that registration center's service in micro services system is sent is obtained, the registration information is from registration request It obtains, the registration request is sent to the institute in the micro services system by first micro services when the first micro services are online State registration center's service.
Store the registration information that registration center's service in the micro services system is sent.
In one embodiment, it when above-mentioned computer program is executed by the processor, is also used to execute following steps:
The funcall request of the second micro services transmission is obtained, includes Function Identification in the funcall request;
Corresponding micro services are called according to the Function Identification, call result is obtained, the call result is returned into institute State the second micro services.
In one embodiment, described according to the function when the Function Identification is corresponding with multiple target micro services Mark calls corresponding micro services, obtains call result, the call result is returned to second micro services, comprising:
According to the Function Identification, the status information of multiple target micro services is obtained;
Funcall request is sent to the multiple target according to the status information of the multiple target micro services One in micro services, call result is obtained, the call result is returned into second micro services.
In one embodiment, it when above-mentioned computer program is executed by the processor, is also used to execute following steps:
Receive registration information acquisition request;
Registration center's address information of registration center's service is obtained according to the registration information acquisition request;
The registration information of each micro services in micro services system is obtained according to registration center's address information.
It should be noted that management method, device, computer equipment and the meter of the micro services that each inventive embodiments propose The management system for the micro services that calculation machine readable storage medium storing program for executing and present system embodiment propose is based on identical inventive concept, side Relevant art content in method, device, computer equipment and computer readable storage medium embodiment and system embodiment can It is applicable in mutually, and will not be described here in detail.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a non-volatile computer and can be read In storage medium, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, provided herein Each embodiment used in any reference to memory, storage, database or other media, may each comprise non-volatile And/or volatile memory.Nonvolatile memory may include that read-only memory (ROM), programming ROM (PROM), electricity can be compiled Journey ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) directly RAM (RDRAM), straight Connect memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously The limitation to the application the scope of the patents therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the concept of this application, various modifications and improvements can be made, these belong to the guarantor of the application Protect range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (10)

1. a kind of management system of micro services, which is characterized in that including multiple micro services systems and with the multiple micro services system It unites associated micro services pond, includes registration center's service and at least one micro services in each micro services system;
For obtaining the registration request that the first micro services are sent when online, the registration request includes for registration center's service Registration information;
Registration center's service is also used to for the registration information being sent to the micro services pond, and the micro services pond is for depositing Store up the registration information of the micro services in the multiple micro services system.
2. the system as claimed in claim 1, which is characterized in that registration center's service, which is also used to work as, detects described first When micro services are offline, the offline information of first micro services is obtained, the offline information includes the mark of first micro services Know information and down status identification information, the offline information is sent to the micro services pond;
Micro services pond is also used to the identification information and the down status identification information according to first micro services, deletes The registration information of first micro services.
3. the system as claimed in claim 1, which is characterized in that the micro services pond is also used to obtain the transmission of the second micro services Funcall is requested, and includes Function Identification in the funcall request;
The micro services pond is also used to call corresponding micro services according to the Function Identification, call result is obtained, by the tune Second micro services are returned to result.
4. system as claimed in claim 3, which is characterized in that when the Function Identification is corresponding with multiple target micro services, The micro services pond is also used to obtain the status information of the multiple target micro services, according to the shape of the multiple target micro services The funcall is requested one be sent in the multiple target micro services by state information.
5. the system as claimed in claim 1, which is characterized in that the micro services pond is also used to receive registration information acquisition and asks It asks, registration center's address information of registration center's service is obtained according to the registration information acquisition request, according in the registration The registration information of each micro services in the acquisition of information micro services system of heart location.
6. a kind of management method of micro services, which is characterized in that the described method includes:
The registration request sent when online by the first micro services of registration center's service acquisition in micro services system, the note Volume request includes registration information;
The registration information is sent to micro services pond, the micro services pond is micro- in the multiple micro services system for storing The registration information of service.
7. method as claimed in claim 6, which is characterized in that it is described by the registration information be sent to micro services pond it Afterwards, further includes:
When registration center's service detection is offline to first micro services, the offline letter of first micro services is obtained Breath, the offline information includes the identification information and down status identification information of first micro services;
The offline information is sent to the micro services pond, indicates the micro services pond according to first micro services Identification information and the down status identification information delete the registration information of first micro services.
8. a kind of managing device of micro services, which is characterized in that described device includes:
Obtain module, the note for sending when online by the first micro services of registration center's service acquisition in micro services system Volume request, the registration request includes registration information;
Sending module, for the registration information to be sent to micro services pond, the micro services pond is the multiple micro- for storing The registration information of micro services in service system.
9. a kind of computer equipment, including memory and processor, the memory is stored with computer program, the computer When program is executed by the processor, so that the processor executes the step such as any one of claim 6 or 7 the method Suddenly.
10. a kind of computer readable storage medium is stored with computer program, when the computer program is executed by processor, So that the processor is executed such as the step of any one of claim 6 or 7 the method.
CN201811487536.5A 2018-12-06 2018-12-06 Management system, method, apparatus, computer equipment and the storage medium of micro services Pending CN109714319A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811487536.5A CN109714319A (en) 2018-12-06 2018-12-06 Management system, method, apparatus, computer equipment and the storage medium of micro services

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811487536.5A CN109714319A (en) 2018-12-06 2018-12-06 Management system, method, apparatus, computer equipment and the storage medium of micro services

Publications (1)

Publication Number Publication Date
CN109714319A true CN109714319A (en) 2019-05-03

Family

ID=66254054

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811487536.5A Pending CN109714319A (en) 2018-12-06 2018-12-06 Management system, method, apparatus, computer equipment and the storage medium of micro services

Country Status (1)

Country Link
CN (1) CN109714319A (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110278284A (en) * 2019-07-10 2019-09-24 中国民航信息网络股份有限公司 A kind of service calling method and device
CN110377431A (en) * 2019-07-29 2019-10-25 中国工商银行股份有限公司 Service calling method and device under more registration center's scenes
CN110708356A (en) * 2019-09-06 2020-01-17 国云科技股份有限公司 Method and system for managing third-party application by registry
CN111200651A (en) * 2019-12-31 2020-05-26 优刻得科技股份有限公司 Method, system, device and medium for timed calling of microservice
CN111371840A (en) * 2020-02-14 2020-07-03 平安科技(深圳)有限公司 Micro-service deployment method, device, computer equipment and storage medium
CN111464592A (en) * 2020-03-09 2020-07-28 平安科技(深圳)有限公司 Load balancing method, device, equipment and storage medium based on microservice
CN111885168A (en) * 2020-07-24 2020-11-03 高新兴科技集团股份有限公司 High-availability access system and access method thereof
CN112217847A (en) * 2019-07-11 2021-01-12 北京京东尚科信息技术有限公司 Micro service platform, implementation method thereof, electronic device and storage medium
CN112217864A (en) * 2020-09-04 2021-01-12 微民保险代理有限公司 Micro-service monitoring method, device, system, computer equipment and storage medium
CN112311869A (en) * 2020-10-28 2021-02-02 苏州万店掌网络科技有限公司 Multi-type micro-service registration center management system and method
CN112804315A (en) * 2020-12-31 2021-05-14 北京知因智慧科技有限公司 Micro application integration method and device
CN112988405A (en) * 2019-12-02 2021-06-18 中国移动通信集团浙江有限公司 Micro-service automatic degradation method and device and computing equipment
CN113391820A (en) * 2021-06-16 2021-09-14 浙江百应科技有限公司 High-performance micro-service registration calling system and method
CN114401303A (en) * 2021-12-20 2022-04-26 苏州众言网络科技股份有限公司 Service registration and discovery method, system and device applied to micro-service
WO2022134358A1 (en) * 2020-12-24 2022-06-30 平安科技(深圳)有限公司 Microservice data processing method, apparatus, microservice processing platform, and medium
CN114928635A (en) * 2021-02-02 2022-08-19 嘉联支付有限公司 Micro-service calling method and related equipment
CN115150457A (en) * 2022-06-28 2022-10-04 亿咖通(湖北)技术有限公司 Micro-service management method, vehicle-mounted system and vehicle-mounted equipment
CN115361437A (en) * 2022-10-24 2022-11-18 太平金融科技服务(上海)有限公司 Micro-service calling method and device, computer equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106453288A (en) * 2016-09-29 2017-02-22 上海和付信息技术有限公司 Asynchronous mode supporting distributed micro service framework system and implementation method thereof
CN107612955A (en) * 2016-07-12 2018-01-19 深圳市远行科技股份有限公司 Micro services provide method, apparatus and system
US20180157928A1 (en) * 2016-12-07 2018-06-07 General Electric Company Image analytics platform for medical data using expert knowledge models
CN108234666A (en) * 2018-01-16 2018-06-29 云宏信息科技股份有限公司 A kind of micro services calling system, method and computer storage media
WO2018144581A1 (en) * 2017-01-31 2018-08-09 Pivotal Software, Inc. Invocation path security in distributed systems
CN108415758A (en) * 2018-03-27 2018-08-17 深圳市买买提信息科技有限公司 Distributed transaction coordination approach and device
EP3311548B1 (en) * 2016-05-11 2019-04-10 Oracle International Corporation Multi-tenant identity and data security management cloud service

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3311548B1 (en) * 2016-05-11 2019-04-10 Oracle International Corporation Multi-tenant identity and data security management cloud service
CN107612955A (en) * 2016-07-12 2018-01-19 深圳市远行科技股份有限公司 Micro services provide method, apparatus and system
CN106453288A (en) * 2016-09-29 2017-02-22 上海和付信息技术有限公司 Asynchronous mode supporting distributed micro service framework system and implementation method thereof
US20180157928A1 (en) * 2016-12-07 2018-06-07 General Electric Company Image analytics platform for medical data using expert knowledge models
WO2018144581A1 (en) * 2017-01-31 2018-08-09 Pivotal Software, Inc. Invocation path security in distributed systems
CN108234666A (en) * 2018-01-16 2018-06-29 云宏信息科技股份有限公司 A kind of micro services calling system, method and computer storage media
CN108415758A (en) * 2018-03-27 2018-08-17 深圳市买买提信息科技有限公司 Distributed transaction coordination approach and device

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110278284B (en) * 2019-07-10 2021-09-14 中国民航信息网络股份有限公司 Service calling method and device
CN110278284A (en) * 2019-07-10 2019-09-24 中国民航信息网络股份有限公司 A kind of service calling method and device
CN112217847A (en) * 2019-07-11 2021-01-12 北京京东尚科信息技术有限公司 Micro service platform, implementation method thereof, electronic device and storage medium
CN110377431A (en) * 2019-07-29 2019-10-25 中国工商银行股份有限公司 Service calling method and device under more registration center's scenes
CN110377431B (en) * 2019-07-29 2022-02-01 中国工商银行股份有限公司 Service calling method and device under multi-registry scene
CN110708356A (en) * 2019-09-06 2020-01-17 国云科技股份有限公司 Method and system for managing third-party application by registry
CN110708356B (en) * 2019-09-06 2024-01-05 国云科技股份有限公司 Method and system for managing third party application by registry
CN112988405A (en) * 2019-12-02 2021-06-18 中国移动通信集团浙江有限公司 Micro-service automatic degradation method and device and computing equipment
CN112988405B (en) * 2019-12-02 2023-12-26 中国移动通信集团浙江有限公司 Automatic degradation method and device for micro-service and computing equipment
CN111200651A (en) * 2019-12-31 2020-05-26 优刻得科技股份有限公司 Method, system, device and medium for timed calling of microservice
CN111371840A (en) * 2020-02-14 2020-07-03 平安科技(深圳)有限公司 Micro-service deployment method, device, computer equipment and storage medium
CN111464592A (en) * 2020-03-09 2020-07-28 平安科技(深圳)有限公司 Load balancing method, device, equipment and storage medium based on microservice
CN111464592B (en) * 2020-03-09 2023-07-25 平安科技(深圳)有限公司 Load balancing method, device, equipment and storage medium based on micro-service
CN111885168A (en) * 2020-07-24 2020-11-03 高新兴科技集团股份有限公司 High-availability access system and access method thereof
CN112217864A (en) * 2020-09-04 2021-01-12 微民保险代理有限公司 Micro-service monitoring method, device, system, computer equipment and storage medium
CN112311869A (en) * 2020-10-28 2021-02-02 苏州万店掌网络科技有限公司 Multi-type micro-service registration center management system and method
WO2022134358A1 (en) * 2020-12-24 2022-06-30 平安科技(深圳)有限公司 Microservice data processing method, apparatus, microservice processing platform, and medium
CN112804315A (en) * 2020-12-31 2021-05-14 北京知因智慧科技有限公司 Micro application integration method and device
CN112804315B (en) * 2020-12-31 2023-08-22 北京知因智慧科技有限公司 Micro-application integration method and device
CN114928635A (en) * 2021-02-02 2022-08-19 嘉联支付有限公司 Micro-service calling method and related equipment
CN113391820A (en) * 2021-06-16 2021-09-14 浙江百应科技有限公司 High-performance micro-service registration calling system and method
CN114401303A (en) * 2021-12-20 2022-04-26 苏州众言网络科技股份有限公司 Service registration and discovery method, system and device applied to micro-service
CN115150457A (en) * 2022-06-28 2022-10-04 亿咖通(湖北)技术有限公司 Micro-service management method, vehicle-mounted system and vehicle-mounted equipment
CN115361437B (en) * 2022-10-24 2023-03-24 太平金融科技服务(上海)有限公司 Micro-service calling method and device, computer equipment and storage medium
CN115361437A (en) * 2022-10-24 2022-11-18 太平金融科技服务(上海)有限公司 Micro-service calling method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109714319A (en) Management system, method, apparatus, computer equipment and the storage medium of micro services
EP3461087B1 (en) Network-slice resource management method and apparatus
CN110351342A (en) Service order processing method, device, computer equipment and storage medium
US8074230B2 (en) Method and system for dynamic context based contact service
CN108829485A (en) Update method, device, storage medium and the computer equipment of application interface layout
CN110266872B (en) Address book data management and control method and device, cloud address book system, computer equipment and computer readable storage medium
CN110908812B (en) Service data processing method, device, readable storage medium and computer equipment
CN109656778A (en) Data capture method, device, computer equipment and storage medium
CN112260863A (en) Organization-level network equipment connection management method and device and computer equipment
CN107294832A (en) A kind of method and device for adding good friend
CN108595505A (en) The method and apparatus of data query
CN113849266A (en) Service deployment method and device for multiple Kubernetes clusters
CN111552568A (en) Cloud service calling method and device
CN109491772A (en) Business serial number gencration method, apparatus, computer equipment and storage medium
CN104660689A (en) Distributed computing system
CN110457132B (en) Method and device for creating functional object and terminal equipment
WO2022007908A1 (en) Method for service collaboration between network element devices, and network element device
CN109032685A (en) A kind of method and terminal accelerating Android system starting
CN108376154B (en) System base table synchronization method and device, computer equipment and storage medium
CN110083782A (en) Inspection method, device, computer equipment and the storage medium of electronic insurance policy
CN110166528B (en) Method and device for preventing node change notification from being lost and computer equipment
CN108156071A (en) To method, terminal device and the computer readable storage medium of community's addition member
CN114493185A (en) Approval processing method, device, system, electronic equipment, storage medium and product
CN115529310A (en) Communication method, communication device, related equipment and storage medium
CN109921940A (en) System and method based on the offline layout processing of SDWAN Scene realization network service

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: 20190503