CN109840120A - Decouple micro services dissemination method, electronic device and computer readable storage medium - Google Patents

Decouple micro services dissemination method, electronic device and computer readable storage medium Download PDF

Info

Publication number
CN109840120A
CN109840120A CN201811574914.3A CN201811574914A CN109840120A CN 109840120 A CN109840120 A CN 109840120A CN 201811574914 A CN201811574914 A CN 201811574914A CN 109840120 A CN109840120 A CN 109840120A
Authority
CN
China
Prior art keywords
micro services
dependence
keyword
registration center
changed
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.)
Granted
Application number
CN201811574914.3A
Other languages
Chinese (zh)
Other versions
CN109840120B (en
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201811574914.3A priority Critical patent/CN109840120B/en
Publication of CN109840120A publication Critical patent/CN109840120A/en
Application granted granted Critical
Publication of CN109840120B publication Critical patent/CN109840120B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephonic Communication Services (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention relates to clouds, provide a kind of decoupling micro services dissemination method, comprising: resource is classified according to the rule of setting, is set as object storage to micro services;According to dependence between different objects according to Resource TOC hierarchical storage be contingency table;Each object is a subclass, and the note for relying on Service name is added in subclass statement;By issued micro services storage to registration center;When a micro services change, other micro services that the micro services are relied in subclass note are searched;Other described micro services are searched in registration center;If finding, determine that, when the micro services change, there are dependences for other micro services and the micro services changed in advance;If not finding, determine that, when the micro services change, dependence is not present with the micro services changed in advance in other micro services.The invention also provides a kind of electronic device and computer readable storage mediums.The present invention can adapt to more flexible business scenario.

Description

Decouple micro services dissemination method, electronic device and computer readable storage medium
Technical field
The present invention relates to cloud fields, more specifically, be related to a kind of decoupling micro services dissemination method, electronic device and Computer readable storage medium.
Background technique
With the development of cloud, micro services more and more have received the perfusion of people, and micro services are with one group of small clothes The mode of business constructs an application, is interacted between service by the communication mechanism of light weight.Yunmen family is needed when deleting resource Whether inquire has the object for relying on the resource.The types of objects for relying on the resource is distributed across in different micro services, It is called and is returned by remote interface.If issuing the service of A, there is the resource of the object dependency A service of B, then B must be serviced It issues together.Such status can not adapt to certain business scenarios without B service function.
Summary of the invention
In view of the above problems, the object of the present invention is to provide a kind of more flexible decouplings for adapting to various businesses scene in incognito Business dissemination method, electronic device and computer readable storage medium.
To achieve the goals above, the present invention provides a kind of electronic device, and the electronic device includes memory and processing Device, includes decoupling micro services release process in the memory, and the decoupling micro services release process is executed by the processor Shi Shixian following steps:
Resource is classified according to the rule of setting, resource settings are that object is stored into micro services after classification;
According to the dependence between different objects according to resource catalogue hierarchical storage be contingency table:
The note for relying on Service name, the Service name is added as a subclass in each object in the statement of subclass It is the identifier of the micro services relied on;
By issued micro services storage to registration center;
When micro services change, search subclass explain in rely on other micro services of the micro services, it is described in incognito It includes deleting resource, mobile resources, more new resources that business, which changes,;
Other described micro services are searched in registration center;
If finding other described micro services in registration center, determine when the micro services change, it is described other in incognito With the micro services changed in advance there are dependence, other described micro services also make corresponding variation for business;
If can not find other described micro services in registration center, determine when the micro services change, described other are micro- With the micro services changed in advance there is no dependence, other described micro services do not change for service.
Preferably, in the decoupling micro services program, the pre-release micro services are relied on according to other micro services The size of relationship issues other micro services having disclosed, and dependence is bigger, and the feasibility issued simultaneously is higher.
In addition, to achieve the goals above, the present invention also provides a kind of decoupling micro services dissemination methods, comprising:
Resource is classified according to the rule of setting, resource settings are that object is stored into micro services after classification;
According to the dependence between different objects according to resource catalogue hierarchical storage be contingency table;
The note for relying on Service name, the Service name is added as a subclass in each object in the statement of subclass It is the identifier of the micro services relied on;
By issued micro services storage to registration center;
When micro services change, search subclass explain in rely on other micro services of the micro services, it is described in incognito It includes deleting resource, mobile resources, more new resources that business, which changes,;
Other described micro services are searched in registration center;
If finding other described micro services in registration center, determine when the micro services change, it is described other in incognito With the micro services changed in advance there are dependence, other described micro services also make corresponding variation for business;
If can not find other described micro services in registration center, determine when the micro services change, described other are micro- With the micro services changed in advance there is no dependence, other described micro services do not change for service.
Preferably, further includes: the size for determining dependence between different micro services, when issuing a micro services, together Other big micro services of the dependence that Shi Fabu has disclosed.
Further, it is preferable that the dependence it is descending to be completely dependent on, partial dependency and transitive dependency, sending out When one micro services of cloth, while other micro services being completely dependent on that publication has disclosed.
In addition, to achieve the goals above, the present invention also provides a kind of computer readable storage medium, the computer can It reads to include decoupling micro services release process in storage medium, when the decoupling micro services release process is executed by processor, realize The step of above-mentioned decoupling micro services dissemination method.
Decoupling micro services dissemination method, electronic device and computer readable storage medium of the present invention according to other in incognito Enough whether publication determines whether other described micro services couple with a micro services for business, adapts to more flexible business scenario.
Detailed description of the invention
By reference to the explanation below in conjunction with attached drawing, and with a more complete understanding of the present invention, of the invention is other Purpose and result will be more clearly understood and understood.In the accompanying drawings:
Fig. 1 is the application environment schematic diagram of present invention decoupling micro services dissemination method preferred embodiment;
Fig. 2 is the module diagram that the preferred embodiment of micro services release process is decoupled in Fig. 1;
Fig. 3 is the flow chart of present invention decoupling micro services dissemination method preferred embodiment.
Identical label indicates similar or corresponding feature or function in all the appended drawings.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Hereinafter, specific embodiments of the present invention will be described in detail with reference to the accompanying drawings.
The present invention provides a kind of decoupling micro services dissemination method, is applied to a kind of electronic device 1.Shown in referring to Fig.1, for this The application environment schematic diagram of invention decoupling micro services dissemination method preferred embodiment.
In the present embodiment, electronic device 1 can be server, mobile phone, tablet computer, portable computer, desktop meter Calculation machine etc. has the terminal device of calculation function.
The electronic device 1 includes memory 11, processor 12, network interface 13 and communication bus 14.
Memory 11 includes the readable storage medium storing program for executing of at least one type.The readable storage medium storing program for executing of at least one type It can be the non-volatile memory medium of such as flash memory, hard disk, multimedia card, card-type memory 11.In some embodiments, described Readable storage medium storing program for executing can be the internal storage unit of the electronic device 1, such as the hard disk of the electronic device 1.At other In embodiment, the readable storage medium storing program for executing is also possible to the external memory 11 of the electronic device 1, such as the electronic device The plug-in type hard disk being equipped on 1, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) block, flash card (Flash Card) etc..
In the present embodiment, the readable storage medium storing program for executing of the memory 11 is installed on the electronic device commonly used in storage 1 decoupling micro services release process 10.The memory 11, which can be also used for temporarily storing, have been exported or will export Data.
Processor 12 can be in some embodiments a central processing unit (Central Processing Unit, CPU), microprocessor or other data processing chips, program code or processing data for being stored in run memory 11, example Such as execute decoupling micro services release process 10.
Network interface 13 may include radio network interface or wired network interface, which is commonly used in described Communication connection is established between electronic device 1 and other electronic devices.For example, the network interface 13 will be described for passing through network Electronic device 1 is connected with exterior terminal, establishes data transmission channel and communication between the electronic device 1 and exterior terminal Connection etc..The network can be intranet (Intranet), internet (Intemet), global system for mobile communications (Global System of Mobile communication, GSM), wideband code division multiple access (Wideband CodeDivision Multiple Access, WCDMA), 4G network, 5G network, bluetooth (Bluetooth), Wi-Fi etc. is wireless Or cable network.
Communication bus 14 is for realizing the connection communication between these components.
Fig. 1 illustrates only the electronic device 1 with component 11-14, it should be understood that being not required for implementing all show Component out, the implementation that can be substituted is more or less component.
Optionally, which can also include user interface, and user interface may include input unit such as keyboard (Keyboard), speech input device such as microphone (microphone) etc. has the equipment of speech identifying function, voice defeated Device such as sound equipment, earphone etc. out, optionally user interface can also include standard wireline interface and wireless interface.
Optionally, which can also include display, and display is referred to as display screen or display unit.
It can be light-emitting diode display, liquid crystal display, touch-control liquid crystal display and organic light emission in some embodiments Diode (Organic Light-Emitting Diode, OLED) touches device etc..Display is for showing in the electronic apparatus 1 The information of processing and for showing visual user interface.
Optionally, which further includes touch sensor.It is touched provided by the touch sensor for user The region for touching operation is known as touch area.In addition, touch sensor described here can be resistive touch sensor, capacitor Formula touch sensor etc..Moreover, the touch sensor not only includes the touch sensor of contact, proximity may also comprise Touch sensor etc..In addition, the touch sensor can be single sensor, or such as multiple biographies of array arrangement Sensor.
In Installation practice shown in Fig. 1, as may include in a kind of memory 11 of computer storage medium behaviour Make system and decoupling micro services release process 10, processor 12 execute the decoupling micro services release process stored in memory 11 Following steps are realized when 10:
Resource is classified according to the rule (for example, business model) of setting, resource settings are object storage after classification Into micro services;
According to the dependence (for example, mutual adduction relationship between object) between different objects according to the catalogue of resource Hierarchical storage is contingency table;
The note for relying on Service name, the Service name is added as a subclass in each object in the statement of subclass It is the identifier of the micro services relied on;
By issued micro services storage to registration center;
When micro services change, search subclass explain in rely on other micro services of the micro services, it is described in incognito It includes deleting resource, mobile resources, more new resources that business, which changes,;
Other described micro services are searched in registration center;
If finding other described micro services in registration center, determine when the micro services change, it is described other in incognito With the micro services changed in advance there are dependence, other described micro services also make corresponding variation for business;
If can not find other described micro services in registration center, determine when the micro services change, described other are micro- With the micro services changed in advance there is no dependence, other described micro services do not change for service.
The decoupling of micro services can be realized by easy configuration for above-mentioned electronic device, after decoupling, save unnecessary clothes Business publication bring spending, it is even more important, when computing resource relies on, calculated according to the service of publication, the clothes that do not issue Business does not calculate dependence, adapts to more flexible business scenario.
Preferably, in the decoupling micro services program, the pre-release micro services are relied on according to other micro services The size of relationship issues other micro services having disclosed, and dependence is bigger, and the feasibility issued simultaneously is higher.
In other embodiments, the decoupling micro services release process 10 can also be divided into one or more mould Block, one or more module are stored in memory 11, and are executed by processor 12, to complete the present invention.Institute of the present invention The module of title is the series of computation machine program instruction section for referring to complete specific function.Referring to shown in Fig. 2, to be decoupled in Fig. 1 The functional block diagram of 10 preferred embodiment of micro services release process.The decoupling micro services release process 10 can be divided into:
First memory module 110 classifies resource according to the rule of setting, and resource settings are object storage after classification Into micro services;
Contingency table generation module 120, according to the dependence between objects different in the first memory module 110 according to resource Catalogue hierarchical storage be contingency table;
Module 130 is explained, the note for relying on Service name is added as a subclass in each object in the statement of subclass Solution, the Service name are the identifiers of the micro services relied on;
Second memory module 140, by issued micro services storage to registration center;
First screening module 150 searches in the subclass note for explain module 130 when a micro services change and relies on institute Other micro services of micro services are stated, it includes deleting resource, mobile resources, more new resources that the micro services, which change,;
Second screening module 160 searches other described micro services in the registration center of the second memory module 140;
Judgment module 170 judges whether find other described micro services in registration center, if other are in incognito described in finding Business sends a signal to and changes module 180, and the signal includes the identifier of other micro services;
Module 180 is changed, the signal of judgment module 170 is received, is changed to other micro services corresponding in signal and in advance Micro services make variation simultaneously.
In addition, the present invention also provides a kind of decoupling micro services dissemination methods.Referring to shown in Fig. 3, in incognito for present invention decoupling The flow chart of business dissemination method preferred embodiment.This method can be executed by device, which can be by software and/or hard Part is realized.
In the present embodiment, decoupling micro services dissemination method includes:
Step S1 classifies resource according to the rule of setting, and resource settings are that object is stored to micro services after classification In;
Step S2, according to the dependence between different objects according to resource catalogue hierarchical storage be contingency table;
Step S3, the note for relying on Service name is added as a subclass in each object in the statement of subclass, described Service name is the identifier of the micro services relied on;
Step S4, by issued micro services storage to registration center;
When micro services change, in step s 5, search subclass explain in rely on the micro services other in incognito Business, it includes deleting resource, mobile resources, more new resources that the micro services, which change,;
Step S6 searches other described micro services in registration center, that is to say, that judge whether other described micro services are sent out Cloth;
If finding other described micro services in registration center, in the step s 7, determine when the micro services change, institute Other micro services are stated with the micro services that change in advance there are dependence, other described micro services also make corresponding variation;
If can not find other described micro services in registration center, in step s 8, determine when the micro services change, With the micro services changed in advance there is no dependence, other described micro services do not change other described micro services.
For example, being searched in the micro services for relying on A service in subclass note, such as the object of B service when issuing A service It is explained in the presence of the subclass for relying on A service, searches B service from registration center, it is public when announcing A service if B service can be found Cloth B service, when announcing A service, does not announce B service if not finding B service.
Preferably, in the step s 7, the size for determining dependence between different micro services is issuing a micro services When, while other big micro services of the dependence having disclosed are issued, other maximum micro services of dependence can be issued, Other micro services for the setting quantity that dependence sorts from large to small can also be issued, for example, the dependence by greatly to It is small to be completely dependent on, partial dependency and transitive dependency, when issue one micro services, while issuing being completely dependent on of having disclosed Other micro services.
In one alternate embodiment, the method for determining the size of dependence between different micro services includes:
When registration center also stores each micro services and changes, other micro services for accordingly changing;
When a micro services change, other micro services that the micro services are relied in subclass note are searched, according to the following formula (1) support that one micro services and other each micro services change simultaneously is obtained, support is bigger, and dependence is bigger,
Wherein, FiFor the micro services changed in advance, FjTo rely on F in subclass noteiOther micro services, support(Fj,Fi) it is FiAnd FjThe support changed simultaneously, | Fj| for F in registration centeriAnd FjTime of appearance is changed simultaneously Number, ∑ | Fj| to rely on F in note in registration centeriOther micro services and FiThe summation of the number of appearance is changed simultaneously.
In the second alternative embodiment, the method for determining the size of dependence between different micro services includes:
When a micro services change in advance, for the micro services, there are other micro services of dependence for screening;
According to be completely dependent on, partial dependency and transitive dependency assign and assign difference from big to small to other described micro services Weight;
When registration center also stores each micro services and changes, other micro services for accordingly changing;
(2) obtain the support that one micro services and other each micro services change simultaneously, support according to the following formula Bigger dependence is bigger,
Wherein, FiFor the micro services changed in advance, FjTo rely on F in subclass noteiOther micro services, support(Fj,Fi) it is FiAnd FjThe support changed simultaneously, | Fj| for F in registration centeriAnd FjTime of appearance is changed simultaneously Number, wjFor FjRely on FiWeight, ∑ wj|Fj| to rely on F in note in registration centeriOther micro services and FiIt changes simultaneously The summation of the product of the number of appearance and the weight of other micro services.
In third alternative embodiment, the method for determining the size of dependence between different micro services includes: root According to the size of the dependence between the different demand estimation difference micro services of client, the publication of different micro services combinations is carried out, Specifically, comprising:
Registration center's storage customer demand keyword and its corresponding issued micro services, the keyword are made For the first keyword;
The keyword of the customer demand of the micro services changed in advance is extracted, the keyword is as the second keyword;
By the keyword of the keyword of the customer demand of a micro services of the pre- variation and registration center storage Similarity mode is carried out, for example, based on dictionary (hownet, wordnet and Chinese thesaurus dictionary) or certain classification system Words similarity is calculated, for another example the method based on vector space model (word2vec) calculates Words similarity;
It filters out to meet and there are the micro services changed in advance in similarity threshold requirement and corresponding announced micro services Second keyword forms keyword group;
(3) determine the support of the micro services and other micro services that change in advance according to the following formula, so that it is determined that the micro services With the dependence size of other each micro services, support is bigger, and dependence is bigger,
Wherein, Fi' it is the micro services changed in advance, Fj' it is to rely on F during subclass is explainediOther micro services, support(Fj′,Fi') it is Fi' and Fj' the support changed simultaneously, | Fj' | it is corresponding for the keyword group of registration center Fi' and Fj' number of appearance is changed simultaneously, ∑ | Fj' | to rely on F in the corresponding note of the keyword group of registration centeri′ Other micro services and Fi' simultaneously change appearance number summation.
In the 4th alternative embodiment, the method for determining the size of dependence between different micro services includes:
Registration center's storage customer demand keyword and its corresponding issued micro services, the keyword are made For the first keyword;
The keyword of the customer demand of the micro services changed in advance is extracted, the keyword is as the second keyword;
By the keyword of the keyword of the customer demand of a micro services of the pre- variation and registration center storage Carry out similarity mode;
The second keyword that there are the micro services changed in advance in corresponding announced micro services is filtered out, keyword is formed Group;
In corresponding other micro services different from the micro services changed in advance of the keyword group according to the difference of similarity Different weights is assigned, similarity more high weight is bigger;
(4) determine the support of the micro services and other micro services that change in advance according to the following formula, so that it is determined that the micro services With the dependence size of other each micro services, support is bigger, and dependence is bigger,
Wherein, Fi' it is the micro services changed in advance, Fj' it is to rely on F during subclass is explainediOther micro services, support(Fj′,Fi') it is Fi' and Fj' the support changed simultaneously, | Fj' | it is corresponding for the keyword group of registration center Fi' and Fj' the number w of appearance is changed simultaneouslyj' it is the F assigned according to similarityj' rely on Fi' weight, ∑ wj′|Fj' | for note F is relied in the corresponding note of the keyword group at volume centeriOther micro services and FiChange simultaneously the number of appearance with it is described The summation of the product of the weight of other micro services.
It is above-mentioned to give the multiple embodiments for determining the size of dependence between different micro services, but the present invention is not It is limited to this, can be any combination form of above-mentioned various embodiments.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, the computer readable storage medium In include decoupling micro services release process, the decoupling micro services release process realizes following steps when being executed by processor:
Resource is classified according to the rule of setting, resource settings are that object is stored into micro services after classification;
According to the dependence between different objects according to resource catalogue hierarchical storage be contingency table;
The note for relying on Service name, the Service name is added as a subclass in each object in the statement of subclass It is the identifier of the micro services relied on;
By issued micro services storage to registration center;
When micro services change, search subclass explain in rely on other micro services of the micro services, it is described in incognito It includes deleting resource, mobile resources, more new resources that business, which changes,;
Other described micro services are searched in registration center;
If finding other described micro services in registration center, determine when the micro services change, it is described other in incognito With the micro services changed in advance there are dependence, other described micro services also make corresponding variation for business;
If can not find other described micro services in registration center, determine when the micro services change, described other are micro- With the micro services changed in advance there is no dependence, other described micro services do not change for service.
The specific embodiment of the computer readable storage medium of the present invention and above-mentioned decoupling micro services dissemination method, electronics The specific embodiment of device is roughly the same, and details are not described herein.
In the above embodiments, the note for being added in the statement by subclass and relying on Service name is given, so that in incognito Multiple embodiments of business decoupling mobilism, but the present invention is not limited thereto, makes micro services solution by adding other configurations item The embodiment of coupling mobilism is also within the scope of the present invention.
In the above embodiments, the pre- decoupling method for changing micro services and other micro services is given, but originally Invention is not limited to this, and when having multiple pre- variation micro services, can carry out decoupling publication point to multiple pre- variation micro services simultaneously Analysis successively can also carry out decoupling publication analysis to multiple pre- variation micro services, can also first judge multiple pre- variations in incognito Business is with the presence or absence of dependence, and there are the pre- variation micro services combination progress of the micro services of the pre- variation of dependence composition is above-mentioned respectively Analysis is issued in the decoupling of embodiment.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, device, article or the method that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, device, article or method institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, device of element, article or method.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.Pass through above embodiment party The description of formula, it is required general that those skilled in the art can be understood that above-described embodiment method can add by software The mode of hardware platform is realized, naturally it is also possible to which by hardware, but in many cases, the former is more preferably embodiment.It is based on Such understanding, substantially the part that contributes to existing technology can be with software product in other words for technical solution of the present invention Form embody, which is stored in a storage medium (such as ROM/RAM, magnetic disk, light as described above Disk) in, including some instructions use is so that a terminal device (can be mobile phone, computer, server or the network equipment Deng) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of decoupling micro services dissemination method characterized by comprising
Resource is classified according to the rule of setting, resource settings are that object is stored into micro services after classification;
According to the dependence between different objects according to resource catalogue hierarchical storage be contingency table;
The note for relying on Service name is added as a subclass in each object in the statement of subclass, the Service name be according to The identifier of bad micro services;
By issued micro services storage to registration center;
When a micro services change, other micro services that the micro services are relied in subclass note are searched, the micro services become Dynamic includes deleting resource, mobile resources, more new resources;
Other described micro services are searched in registration center;
If finding other described micro services in registration center, determine when the micro services change, other described micro services with There are dependence, other described micro services also to make corresponding variation for the micro services changed in advance;
If can not find other described micro services in registration center, determine when the micro services change, other described micro services Dependence is not present with the micro services changed in advance, other described micro services do not change.
2. decoupling micro services dissemination method according to claim 1, which is characterized in that further include:
The size for determining dependence between different micro services, when issuing a micro services, while publication have disclosed according to Other big micro services of the relationship of relying.
3. decoupling micro services dissemination method according to claim 2, which is characterized in that the dependence is descending to be It is completely dependent on, partial dependency and transitive dependency, when issuing a micro services, while its being completely dependent on that publication has disclosed His micro services.
4. decoupling micro services dissemination method according to claim 2, which is characterized in that described to determine between different micro services The method of the size of dependence includes:
When registration center also stores each micro services and changes, other micro services for accordingly changing;
When a micro services change, other micro services that the micro services are relied in subclass note are searched, (1) is obtained according to the following formula The support that one micro services and other each micro services change simultaneously is obtained, support is bigger, and dependence is bigger,
Wherein, FiFor the micro services changed in advance, FjTo rely on F in subclass noteiOther micro services, support (Fj,Fi) it is FiAnd FjThe support changed simultaneously, | Fj| for F in registration centeriAnd FjThe number of appearance is changed simultaneously, ∑ | Fj| To rely on F in note in registration centeriOther micro services and FiThe summation of the number of appearance is changed simultaneously.
5. decoupling micro services dissemination method according to claim 2, which is characterized in that described to determine between different micro services The method of the size of dependence includes:
When a micro services change in advance, for the micro services, there are other micro services of dependence for screening;
According to be completely dependent on, partial dependency and transitive dependency assign and assign different power from big to small to other described micro services Weight;
When registration center also stores each micro services and changes, other micro services for accordingly changing;
(2) obtain the support that one micro services and other each micro services change simultaneously according to the following formula, and support is bigger Dependence is bigger,
Wherein, FiFor the micro services changed in advance, FjTo rely on F in subclass noteiOther micro services, support (Fj,Fi) it is FiAnd FjThe support changed simultaneously, | Fj| for F in registration centeriAnd FjThe number of appearance, w are changed simultaneouslyjFor Fj Rely on FiWeight, ∑ wj|Fj| to rely on F in note in registration centeriOther micro services and FiThe number of appearance is changed simultaneously With the summation of the product of the weight of other micro services.
6. decoupling micro services dissemination method according to claim 2, which is characterized in that described to determine between different micro services The method of the size of dependence includes: according to the big of the dependence between the different demand estimation difference micro services of client It is small, carry out the publication of different micro services combinations, comprising:
Registration center storage customer demand keyword and its corresponding issued micro services, the keyword is as the One keyword;
The keyword of the customer demand of the micro services changed in advance is extracted, the keyword is as the second keyword;
The keyword of the keyword of the customer demand of one micro services of the pre- variation and registration center storage is carried out Similarity mode;
It filters out to meet and has the second of the micro services changed in advance in similarity threshold requirement and corresponding announced micro services Keyword forms keyword group;
(3) determine micro services for changing in advance and the support of other micro services according to the following formula, so that it is determined that micro services and every The dependence size of other a micro services, support is bigger, and dependence is bigger,
Wherein, Fi' it is the micro services changed in advance, Fj' it is to rely on F during subclass is explainediOther micro services, support (Fj′,Fi') it is Fi' and Fj' the support changed simultaneously, | Fj' | it is the corresponding F of the keyword group of registration centeri' and Fj′ The number of appearance is changed simultaneously, ∑ | Fj' | to rely on F in the corresponding note of the keyword group of registration centeri' other are micro- Service and Fi' simultaneously change appearance number summation.
7. decoupling micro services dissemination method according to claim 2, which is characterized in that described to determine between different micro services The method of the size of dependence includes:
Registration center storage customer demand keyword and its corresponding issued micro services, the keyword is as the One keyword;
The keyword of the customer demand of the micro services changed in advance is extracted, the keyword is as the second keyword;
The keyword of the keyword of the customer demand of one micro services of the pre- variation and registration center storage is carried out Similarity mode;
The second keyword that there are the micro services changed in advance in corresponding announced micro services is filtered out, keyword group is formed;
It is assigned in corresponding other micro services different from the micro services changed in advance of the keyword group according to the difference of similarity Different weights, similarity more high weight are bigger;
(4) determine micro services for changing in advance and the support of other micro services according to the following formula, so that it is determined that micro services and every The dependence size of other a micro services, support is bigger, and dependence is bigger,
Wherein, Fi' it is the micro services changed in advance, Fj' it is to rely on F during subclass is explainediOther micro services, support (Fj′,Fi') it is Fi' and Fj' the support changed simultaneously, | Fj' | it is the corresponding F of the keyword group of registration centeri' and Fj′ The number w of appearance is changed simultaneouslyj' it is the F assigned according to similarityj' rely on Fi' weight, ∑ wj′|Fj' | for registration center F is relied in the corresponding note of the keyword groupiOther micro services and FiSimultaneously change appearance number and it is described other in incognito The summation of the product of the weight of business.
8. a kind of electronic device, which is characterized in that the electronic device includes memory and processor, includes in the memory Micro services release process is decoupled, the decoupling micro services release process realizes following steps when being executed by the processor:
Resource is classified according to the rule of setting, resource settings are that object is stored into micro services after classification;
According to the dependence between different objects according to resource catalogue hierarchical storage be contingency table:
The note for relying on Service name is added as a subclass in each object in the statement of subclass, the Service name be according to The identifier of bad micro services;
By issued micro services storage to registration center;
When a micro services change, other micro services that the micro services are relied in subclass note are searched, the micro services become Dynamic includes deleting resource, mobile resources, more new resources;
Other described micro services are searched in registration center;
If finding other described micro services in registration center, determine when the micro services change, other described micro services with There are dependence, other described micro services also to make corresponding variation for the micro services changed in advance;
If can not find other described micro services in registration center, determine when the micro services change, other described micro services Dependence is not present with the micro services changed in advance, other described micro services do not change.
9. electronic device according to claim 8, which is characterized in that pre-release in the decoupling micro services program Micro services issue other micro services having disclosed according to the size of other micro services dependences, and dependence is bigger, quilt The feasibility of publication is higher simultaneously.
10. a kind of computer readable storage medium, which is characterized in that include decoupling in incognito in the computer readable storage medium Business release process when the decoupling micro services release process is executed by processor, is realized such as any one of claims 1 to 7 institute The step of decoupling micro services dissemination method stated.
CN201811574914.3A 2018-12-21 2018-12-21 Decoupling micro-service release method, electronic device and computer readable storage medium Active CN109840120B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811574914.3A CN109840120B (en) 2018-12-21 2018-12-21 Decoupling micro-service release method, electronic device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811574914.3A CN109840120B (en) 2018-12-21 2018-12-21 Decoupling micro-service release method, electronic device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109840120A true CN109840120A (en) 2019-06-04
CN109840120B CN109840120B (en) 2024-04-16

Family

ID=66883231

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811574914.3A Active CN109840120B (en) 2018-12-21 2018-12-21 Decoupling micro-service release method, electronic device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109840120B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112416459A (en) * 2020-11-23 2021-02-26 杭州当虹科技股份有限公司 System for solving version strong dependence between micro services
CN112540749A (en) * 2020-11-16 2021-03-23 南方电网数字电网研究院有限公司 Micro-service dividing method and device, computer equipment and readable storage medium
CN113778475A (en) * 2020-06-18 2021-12-10 北京京东振世信息技术有限公司 Information processing method and device
CN115733750A (en) * 2022-11-25 2023-03-03 中国工商银行股份有限公司 Method, device, equipment and storage medium for updating metadata in micro-service gateway

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106610836A (en) * 2016-12-23 2017-05-03 国网信息通信产业集团有限公司 Micro-service operation management tool
US20180032534A1 (en) * 2016-07-27 2018-02-01 Sap Se Analytics mediation for microservice architectures
CN107872525A (en) * 2017-11-09 2018-04-03 杭州东方通信软件技术有限公司 A kind of micro services call framework

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180032534A1 (en) * 2016-07-27 2018-02-01 Sap Se Analytics mediation for microservice architectures
CN106610836A (en) * 2016-12-23 2017-05-03 国网信息通信产业集团有限公司 Micro-service operation management tool
CN107872525A (en) * 2017-11-09 2018-04-03 杭州东方通信软件技术有限公司 A kind of micro services call framework

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
蒋勇;: "基于微服务架构的基础设施设计", 软件, vol. 37, no. 5, 15 May 2016 (2016-05-15), pages 93 - 97 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113778475A (en) * 2020-06-18 2021-12-10 北京京东振世信息技术有限公司 Information processing method and device
CN112540749A (en) * 2020-11-16 2021-03-23 南方电网数字电网研究院有限公司 Micro-service dividing method and device, computer equipment and readable storage medium
CN112540749B (en) * 2020-11-16 2023-10-24 南方电网数字平台科技(广东)有限公司 Micro-service dividing method, apparatus, computer device and readable storage medium
CN112416459A (en) * 2020-11-23 2021-02-26 杭州当虹科技股份有限公司 System for solving version strong dependence between micro services
CN112416459B (en) * 2020-11-23 2024-03-01 杭州当虹科技股份有限公司 System for solving version strong dependence among micro services
CN115733750A (en) * 2022-11-25 2023-03-03 中国工商银行股份有限公司 Method, device, equipment and storage medium for updating metadata in micro-service gateway

Also Published As

Publication number Publication date
CN109840120B (en) 2024-04-16

Similar Documents

Publication Publication Date Title
CN107436875B (en) Text classification method and device
CN109840120A (en) Decouple micro services dissemination method, electronic device and computer readable storage medium
KR101953303B1 (en) Identifying matching applications based on browsing activity
US9241242B2 (en) Information recommendation method and apparatus
CN107967135B (en) Calculation engine implementation method, electronic device and storage medium
CN110309405B (en) Project recommendation method and device and storage medium
CN107924679A (en) Delayed binding during inputting understanding processing in response selects
US20110136542A1 (en) Method and apparatus for suggesting information resources based on context and preferences
US20170249934A1 (en) Electronic device and method for operating the same
CN108369806B (en) Configurable generic language understanding model
CN108153909B (en) Keyword putting word-expanding method and device, electronic equipment and storage medium
CN110321544B (en) Method and device for generating information
AU2017216520A1 (en) Common data repository for improving transactional efficiencies of user interactions with a computing device
CN111522927A (en) Entity query method and device based on knowledge graph
KR20130122424A (en) Method and system for providing app service
CN113204691B (en) Information display method, device, equipment and medium
CN104423837A (en) Method for display control and electronic device thereof
US10185724B2 (en) Method for sorting media content and electronic device implementing same
CN110059172B (en) Method and device for recommending answers based on natural language understanding
GB2504610A (en) Managing data items using structured tags
CN113609308B (en) Knowledge graph construction method and device, storage medium and electronic equipment
CN113435523B (en) Method, device, electronic equipment and storage medium for predicting content click rate
US10643252B2 (en) Banner display method of electronic device and electronic device thereof
CN116758362A (en) Image processing method, device, computer equipment and storage medium
CN116450723A (en) Data extraction method, device, computer equipment and storage medium

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