CN109587272A - A kind of optimization method of micro services, device and electronic equipment - Google Patents

A kind of optimization method of micro services, device and electronic equipment Download PDF

Info

Publication number
CN109587272A
CN109587272A CN201811648637.6A CN201811648637A CN109587272A CN 109587272 A CN109587272 A CN 109587272A CN 201811648637 A CN201811648637 A CN 201811648637A CN 109587272 A CN109587272 A CN 109587272A
Authority
CN
China
Prior art keywords
service
server
service item
item
registration
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
CN201811648637.6A
Other languages
Chinese (zh)
Other versions
CN109587272B (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.)
Shenzhen Intellifusion Technologies Co Ltd
Original Assignee
Shenzhen Intellifusion Technologies 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 Intellifusion Technologies Co Ltd filed Critical Shenzhen Intellifusion Technologies Co Ltd
Priority to CN201811648637.6A priority Critical patent/CN109587272B/en
Publication of CN109587272A publication Critical patent/CN109587272A/en
Application granted granted Critical
Publication of CN109587272B publication Critical patent/CN109587272B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/306User profiles
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a kind of optimization method of micro services, device and electronic equipments, the described method includes: adding the dependence data got from server in service item, it include service discovery framework in the server, which includes the corresponding relationship for relying on data and service item;According to the dependence data initialization application message manager;Obtain pre-configured configuration file;The configuration file is configured in application message manager and generates Register;Based on the Register by the service registration in service item into server.The present invention is can be by the service registration in service item into server, to reduce the destructiveness to the former service code logical construction of service item on the basis of changing service item Central Plains service code logical construction.

Description

A kind of optimization method of micro services, device and electronic equipment
Technical field
The present invention relates to field of computer technology more particularly to a kind of optimization methods of micro services, device and electronic equipment.
Background technique
Spring Cloud architectural framework is used in view of current most of company's project, however some service items are but still Using legacy system Spring Web architectural framework, for some legacy systems, to the service in service item is linked into Spring Cloud architectural framework then needs to carry out Spring Boot transformation to service item, needs to modify in transformation process Former service code logical construction in former service item could be combined realization service entry with Spring Cloud architectural framework Service in mesh be easy to cause the logical construction of the former service code of former service item to be destroyed in this way.
Summary of the invention
The purpose of the invention is in view of the above technical problems, provide a kind of optimization method of micro services, device and Electronic equipment.
In a first aspect, the embodiment of the present invention provides a kind of optimization method of micro services, which comprises
The dependence data got from server are added in service item, include service discovery frame in the server Frame, the service discovery framework include the corresponding relationship for relying on data and service item;
According to the dependence data initialization application message manager;
Obtain pre-configured configuration file;
The configuration file is configured in application message manager and generates Register;
Based on the Register by the service registration in service item into server.
Optionally, the configuration file includes the service discovery framework address, the local port of service item, Yi Jijian Listen device, wherein the monitor is for rewriteeing registration function and nullifying function.
Optionally, it is described according to the dependence data initialization application message manager before further include:
The application example that service discovery framework is obtained from server configures interface.
Optionally, described to include: according to the step of dependence data initialization application message manager
Application message manager is generated according to the dependence data and application example configuration interface.
Optionally, described to include: by step of the service registration in service item into server based on the Register
When service item starting, the Register calls the registration function by the clothes by the monitor Service registration in business project is into server.
Optionally, described to include: later into server by the service registration in service item based on the Register
When service item stops, the Register calls the cancellation function by the service entry by the monitor Service in the mesh de-registration from the server.
Optionally, the method also includes:
Respond the request for the service that user calls in service item;
Service in the service item is sent to the user.
Second aspect, the embodiment of the invention provides a kind of optimization devices of micro services, comprising:
Adding module, for adding the dependence data that get from server in service item, in the server Including service discovery framework, which includes the corresponding relationship for relying on data and service item;
Initialization module, for according to the dependence data initialization application message manager;
Module is obtained, for obtaining pre-configured configuration file;
Configuration module generates Register for the configuration file to be configured in application message manager;
Registration module, for based on the Register by the service registration in service item into server.
The third aspect, the embodiment of the present invention also provide a kind of electronic equipment, comprising: memory, processor and storage The computer program run on the memory and on the processor, when the processor executes the computer program The step of realizing a kind of optimization method of micro services provided in an embodiment of the present invention.
Fourth aspect, the embodiment of the invention also provides a kind of electronically readable storage mediums, are stored with computer program, institute When stating computer program and being executed by processor, so that the processor executes a kind of the excellent of micro services provided in an embodiment of the present invention The step of change method.
In embodiments of the present invention, described by adding the dependence data got from server in service item It include service discovery framework in server, which includes the corresponding relationship for relying on data and service item;According to The dependence data initialization application message manager;Obtain pre-configured configuration file;The configuration file is configured Register is generated into application message manager;Based on the Register by the service registration in service item into server. The present invention need to only add the dependence data of server in service item, and configure match corresponding with client and server It sets file to be attached client and server, thus by the service registration in the service item in client to server In, in this way can be by the service in service item on the basis of changing the service of service item Central Plains and having code logic structure It is registered in server, to reduce the destructiveness to the former service code logical construction of service item.
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.
Fig. 1 is a kind of flow chart of the optimization method of micro services provided in an embodiment of the present invention;
Fig. 2 is the flow chart of the optimization method of another micro services provided in an embodiment of the present invention;
Fig. 3 is a kind of optimization structure drawing of device of micro services provided in an embodiment of the present invention;
Fig. 4 is the structure chart of a kind of electronic equipment provided in an embodiment of the present invention.
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.
In a first aspect, in embodiments of the present invention, referring to Figure 1, Fig. 1 is a kind of micro services provided in an embodiment of the present invention Optimization method flow chart, as shown in Figure 1, comprising the following steps:
S101, the dependence data got from server are added in service item, include service in the server It was found that frame, which includes the corresponding relationship for relying on data and service item.
Wherein, in the client, the service item may include one or more services for the service item storage Service, for example, the service item includes the services such as search service, gate inhibition's service.Above-mentioned dependence data can be server Interface data is referred to as the port information etc. of server.Above-mentioned server can be the service between different architectural frameworks At switching, it is referred to as registration center, for example, Eureka server;Above-mentioned different architectural framework can be Spring Cloud architectural framework and Spring Web architectural framework.Above-mentioned service discovery framework can be Eureka, for realizing client Service discovery.The corresponding relationship of above-mentioned dependence data and service item, which can be in the interface message and service item of server, to be taken The corresponding relationship of business.Specifically, first putting the interface data in server in service item in the client, it is convenient in this way Connection between client and server.
S102, according to the dependence data initialization application message manager.
The application message manager is also referred to for be managed to the data in above-mentioned service item one Loader.For example, addition gets the project data of Maven dependence from the service discovery framework in the service item Afterwards, the application message manager is to getting Maven in the data and the service discovery framework in the service item Data etc. are relied on to be loaded.
Maven dependence data are got from the service discovery framework to described by adding in the service item Application message manager is initialized, so that the application message manager loads the data of the service item.
S103, pre-configured configuration file is obtained.
The configuration file also refers to user and is logging in computer or user when using software program, software systems The setting of environment is provided for user and set that file is loaded.The configuration file can be named as eureka- Client.propeties, and the configuration file can be placed on the classpath that can be perceived by the server In file.
After obtaining the pre-configured configuration file, require to come will pass through the program on the configuration file Complete the service of the service item.The service includes the dedicated configuration setting of all users, for example procedural item, screen connect It connects.
S104, it the configuration file is configured in application message manager generates Register.
The Register also refers to threshold of the user before the service using the service item and is arranged.Described After configuration file is configured to application message manager, the application message manager loads the data of the configuration file After generate the Register, the Register becomes according to the hardware of user or user in data encryptions such as dates using the equipment Change, generate log-in password, and the log-in password is supplied to user, so as to user the service using the service item it The preceding information for carrying out registering oneself, enables server to connect with client.For example, user is preparing to use the clothes Before the service of business project, is using the data encryptions such as the date of the equipment to convert according to the hardware of user or user, generating note Volume password, and the log-in password is supplied to user, so as to the information of user's registration oneself.
S105, based on the Register by the service registration in service item into server.
Specifically, client by the service registration provided in service item into server, so that third party user is logical The service of server calls client offer is provided.
In embodiments of the present invention, described by adding the dependence data got from server in service item It include service discovery framework in server, which includes the corresponding relationship for relying on data and service item;According to The dependence data initialization application message manager;Obtain pre-configured configuration file;The configuration file is configured Register is generated into application message manager;Based on the Register by the service registration in service item into server. The present invention need to only add the dependence data of server in service item, and configure match corresponding with client and server It sets file to be attached client and server, thus by the service registration in the service item in client to server In, in this way can be by the service in service item on the basis of changing the service of service item Central Plains and having code logic structure It is registered in server, to reduce the destructiveness to the former service code logical construction of service item.
In embodiments of the present invention, Fig. 2 is referred to, Fig. 2 is the optimization of another micro services provided in an embodiment of the present invention The flow chart of method, as shown in Figure 2, comprising the following steps:
S201, the dependence data got from server are added in service item, include service in the server It was found that frame, which includes the corresponding relationship for relying on data and service item.
S202, according to the dependence data initialization application message manager.
S203, pre-configured configuration file is obtained;The configuration file include: the service discovery framework address, The local port and monitor of service item, wherein the monitor is for rewriteeing registration function and nullifying function.
The service discovery framework address also refers to the address of the service discovery framework storage in the server;Institute It states local port and also refers to the port etc. that service is set in setting service item;Above-mentioned configuration file further includes connection Itself, is registered as frequency of ISP etc. at the frequency for obtaining ISP's list in the address of Eureka-Server.Institute It states monitor and also refers to one kind for rewriteeing registration function and nullifying functional unit.By to the registration function and Service registration in service item that client provides is also possible into server from clothes by the calling for nullifying function to realize It is unregistered in business device.After obtaining the pre-configured configuration file, pass through the service on the configuration file It was found that Framework addresses find the service discovery framework.Registration function is rewritten by the monitor and nullifies function, And the registration function and cancellation function can be called by the approach of the local port of the service item, thus real The registration and cancellation of the service of the present service item.For example, the Register can be with when service item starting Registration function is called by the approach of the local port to service item, by service registration into server.If with After family not when using the service of the service item, the Register can pass through the local port to service item Approach call and nullify function, realize and nullify the service in server of having already registered with.In this way, just not having with being able to use the clothes Business.
S204, it the configuration file is configured in application message manager generates Register.
S205, based on the Register by the service registration in service item into server.
In embodiments of the present invention, described by adding the dependence data got from server in service item It include service discovery framework in server, which includes the corresponding relationship for relying on data and service item;According to The dependence data initialization application message manager;Obtain pre-configured configuration file;The configuration file includes: institute State the local port and monitor of service discovery framework address, service item, wherein the monitor is for rewriteeing registration Function and cancellation function;The configuration file is configured in application message manager and generates Register;Based on the registration Device is by the service registration in service item into server.The present invention calls registration function will by the monitor in configuration file Into server, the monitor can monitor registration process, and rewrite registration function for service registration in service item, this Sample is can be by the service registration in service item on the basis of changing the service of service item Central Plains and having code logic structure Into server, to reduce the destructiveness to the former service code logical construction of service item.
In one embodiment, it is described according to the dependence data initialization application message manager before further include: from The application example that service discovery framework is obtained in server configures interface.Wherein, the application example configuration interface may refer to With emphasis on EurekalnstanceCongfig interface of application example, such as application name, the port of application etc..The application letter Breath manager is the load being managed by application example configuration interface to the data in above-mentioned service item, and described The application example configuration interface of service discovery framework is by obtaining in the server.For example, adding in the service item Add after getting the project data that Maven is relied in the service discovery framework, is serviced by described obtained from server It was found that the application example of frame configures interface, the application message manager is that interface is configured by the application example to above-mentioned Maven dependence data etc. are got in data and the service discovery framework in service item to be loaded.
In the above-described embodiment, data can will be relied on and application implementation configuration interface generates application message pipe jointly Device is managed, then generates Register together with the configuration information in configuration file, realizes the connection of client and server, being convenient for will be objective The service registration in service item in the end of family improves service registration success rate into server, and in service registration process In do not modify to the former service code logical construction in service item, reduce to the former service code logic of service item Structural damage.
In one embodiment, described according to the step of dependence data initialization application message manager includes: root Application message manager is generated according to the dependence data and application example configuration interface.
The application example configuration interface may refer to connect with emphasis on the EurekalnstanceCongfig of application example Mouthful, such as application name, port of application etc..Application is being generated according to the dependence data and application example configuration interface It, can be by above-mentioned configuration file and the dependence by the EurekalnstanceCongfig interface after information manager Data load.For example, can pass through when others are applied when calling the registration function and nullifying function The EurekalnstanceCongfig interface by above-mentioned configuration file registration function and nullify function transmit Deng.
In the above-described embodiment, data can will be relied on and application implementation configuration interface generates application message pipe jointly Device is managed, then generates Register together with the configuration information in configuration file, realizes the connection of client and server, being convenient for will be objective The service registration in service item in the end of family improves service registration success rate into server, and in service registration process In do not modify to the former service code logical construction in service item, reduce to the former service code logic of service item Structural damage.
In one embodiment, the step based on the Register by the service registration in service item into server It suddenly include: when service item starting, the Register calls the registration function by the clothes by the monitor Service registration in business project is into server.
Wherein, when calling the registration function by the monitor, the registration function can be by described Registration function in the configuration file is called by EurekalnstanceCongfig interface.For example, if user prepares Using the service item service when, user starts the service item, and the Register can be by right Registration function is called by the approach of the local port of service item or the EurekalnstanceCongfig interface, is used Family may be implemented to register in the service road server of itself.Above-mentioned registration function is set in registration function with pre-setting Being equipped with can be realized the registration code of the service in the service item in client being registered in server.In registration function The registration code of the service in the one or more of service items by client being registered in server can be set. And the service in each service item is corresponding with a registration function.The registration function can store in client database In, when starting the service in service item, it is only necessary to which the monitor in Register calls the service from client database Corresponding registration function, can be by the service registration sent out in service item in client into server.
It in the above-described embodiment, can be by the monitor in Register by calling the registration function pre-set By the service registration in service item into server, and the registration process is not to member's service code logic in service item Structure is modified, and the destructiveness to the former service code logical construction of service item is reduced.
In one embodiment, it is described based on the Register by the service registration in service item into server after Include:
When service item stops, the Register calls the cancellation function by the service entry by the monitor Service in the mesh de-registration from the server.
Wherein, when calling the cancellation function by the monitor, the cancellation function can be by described EurekalnstanceCongfig interface transmits the cancellation function in the configuration file.For example, if user prepares Using the service item service when, user stops the service item, and the Register can be by right The approach of the local port of service item or the EurekalnstanceCongfig interface is called function is nullified, and is used Family may be implemented to nullify the service of itself from server.Above-mentioned cancellation function, which can be, to be pre-set, and is nullified in function It is provided with the cancellation code that can be realized from the service nullified in service item in server.Nullifying in function can be set one Item or a plurality of cancellation code that can be realized from the service nullified in server in service item.And in each service item Service is corresponding with a cancellation function.The cancellation function can store in client database, when in stopping service item Service when, it is only necessary to the monitor in Register calls the corresponding cancellation function of the service from client database The service in service item is nullified from server from server.
In the above-described embodiment, the corresponding note of service in service item can be called by the monitor in Register Pin function service cancelled from server, nullify service during, to the former service code in service item not into Row modification, reduces the destructiveness to the former service code logical construction of service item.
In one embodiment, the method also includes:
Respond the request for the service that user calls in service item;
Service in the service item is sent to the user.
Wherein, in user the service item is started and when the service into the service item sends call request, The service item response user calls the request of the service in service item, and the service in the service item is sent to The user, to realize the service using the service item.By the service registration in service item into server after, Tripartite user can pass through the service in service item described in the server calls.The third party user can be need using The ordinary user of service in the service item, and the server is equivalent to be to provide the client of service item and third party Terminal between user, in this way, the third party user can send to server obtains service request, server mutually should After request, directly according to the dependence data and configuration file from the service called in client in service entry project.Also just real Service call between existing different architectural frameworks, improves the service availability between different architectural frameworks.
In the above-described embodiment, third party user can pass through the clothes in the service item in server calls client It is engaged in, during third party user calls service, service needs to pass through in from client registers to server, then from server It is sent to third party user, such user can use the service across different service system frameworks.In the process, do not have There is the former service code logical construction of modification, reduces the destructiveness to the former service code logical construction of service item.
Second aspect, as shown in figure 3, Fig. 3 is a kind of 300 structure of optimization device of micro services provided in an embodiment of the present invention Figure, comprising:
Adding module 301, for adding the dependence data got from server, the server in service item In include service discovery framework, the service discovery framework include rely on data and service item corresponding relationship;
Initialization module 302, for according to the dependence data initialization application message manager;
Module 303 is obtained, for obtaining pre-configured configuration file;
Configuration module 304 generates Register for the configuration file to be configured in application message manager;
Registration module 305, for based on the Register by the service registration in service item into server.
In one embodiment, above-mentioned Register further includes cancellation module, passes through the monitor for the Register Call the cancellation function by the service in the service item de-registration from the server.
In one embodiment, the configuration file includes the local side of the service discovery framework address, service item Mouth and monitor, wherein the monitor is for rewriteeing registration function and nullifying function.
In one embodiment, the optimization device 300 of the micro services further include:
Interface obtains module, and the application example for obtaining service discovery framework from server configures interface.
In one embodiment, the initialization module 302 is used for according to the dependence data and the application example It configures interface and generates application message manager.
In one embodiment, the registration module 305 is used for when service item starting, and the Register passes through The monitor calls the registration function by the service registration in the service item into server.
In one embodiment, the optimization device 300 of the micro services includes:
Cancellation module, for when service item stops, the Register to call the cancellation letter by the monitor Number de-registration from the server by the service in the service item.
In one embodiment, the optimization device 300 of the micro services further include:
Request module calls the request of the service in service item for responding user;
Sending module, for the service in the service item to be sent to the user.
A kind of optimization device 300 of micro services provided in an embodiment of the present invention can be realized the embodiment of the method for Fig. 1 and Fig. 2 In each embodiment and corresponding beneficial effect, to avoid repeating, which is not described herein again.
The third aspect, refers to Fig. 4, and Fig. 4 is a kind of optimization electronic equipment 400 of micro services provided in an embodiment of the present invention Structure chart, as shown in Figure 4, comprising: memory 402, processor 401 and be stored on the memory 402 and can be described The computer program run on processor 401, in which:
The computer program that processor 401 is used to that memory 402 to be called to store executes following steps:
The dependence data got from server are added in service item, include service discovery frame in the server Frame, the service discovery framework include the corresponding relationship for relying on data and service item;
According to the dependence data initialization application message manager;
Obtain pre-configured configuration file;
The configuration file is configured in application message manager and generates Register;
Based on the Register by the service registration in service item into server.
Optionally, the configuration file of the execution of processor 401 includes:
The service discovery framework address, service item local port and monitor, wherein the monitor is used In rewriting registration function and nullify function.
Optionally, the described of the execution of processor 401 is gone back according to before the dependence data initialization application message manager Include:
The application example that service discovery framework is obtained from server configures interface.
Optionally, processor 401 execute it is described according to the dependence data initialization application message manager the step of Include:
Application message manager is generated according to the dependence data and application example configuration interface.
Optionally, processor 401 execute it is described based on the Register by the service registration in service item to service Step in device includes:
When service item starting, the Register calls the registration function by the clothes by the monitor Service registration in business project is into server.
Optionally, processor 401 execute it is described based on the Register by the service registration in service item to service Include: after in device
When service item stops, the Register calls the cancellation function by the service entry by the monitor Service in the mesh de-registration from the server.
Optionally, processor 401 execute the method also includes:
Respond the request for the service that user calls in service item;
Service in the service item is sent to the user.
It should be noted that above-mentioned a kind of electronic equipment 400 can be a variety of server apparatus, and such as: computer, service The equipment such as device, mobile phone.
A kind of electronic equipment 400 provided in an embodiment of the present invention can be realized each in the embodiment of the method for Fig. 1 and Fig. 2 Embodiment and corresponding beneficial effect, to avoid repeating, which is not described herein again.
Fourth aspect, the embodiment of the present invention also provide a kind of computer readable storage medium, computer readable storage medium On be stored with computer program, which realizes the excellent of micro services provided in an embodiment of the present invention when being executed by processor Change each process of embodiment of the method, and identical technical effect can be reached, to avoid repeating, which is not described herein again.
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 computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, abbreviation RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.

Claims (10)

1. a kind of optimization method of micro services, which is characterized in that the described method includes:
The dependence data got from server are added in service item, include service discovery framework in the server, The service discovery framework includes the corresponding relationship for relying on data and service item;
According to the dependence data initialization application message manager;
Obtain pre-configured configuration file;
The configuration file is configured in application message manager and generates Register;
Based on the Register by the service registration in service item into server.
2. the method according to claim 1, wherein the configuration file includes:
The service discovery framework address, service item local port and monitor, wherein the monitor for weight It writes registration function and nullifies function.
3. according to the method described in claim 2, it is characterized in that, described according to the dependence data initialization application message pipe Before reason device further include:
The application example that service discovery framework is obtained from server configures interface.
4. according to the method described in claim 3, it is characterized in that, described according to the dependence data initialization application message pipe Manage device the step of include:
Application message manager is generated according to the dependence data and application example configuration interface.
5. according to the method described in claim 2, it is characterized in that, it is described based on the Register by the service in service item The step being registered in server includes:
When service item starting, the Register calls the registration function by the service entry by the monitor Service registration in mesh is into server.
6. method as claimed in claim 5, which is characterized in that described to be infused the service in service item based on the Register Volume into server after include:
When service item stops, the Register calls the cancellation function will be in the service item by the monitor Service from the server de-registration.
7. the method as described in claim 1, which is characterized in that the method also includes:
Respond the request for the service that user calls in service item;
Service in the service item is sent to the user.
8. a kind of optimization device of micro services characterized by comprising
Adding module includes in the server for adding the dependence data that get from server in service item Service discovery framework, the service discovery framework include the corresponding relationship for relying on data and service item;
Initialization module, for according to the dependence data initialization application message manager;
Module is obtained, for obtaining pre-configured configuration file;
Configuration module generates Register for the configuration file to be configured in application message manager;
Registration module, for based on the Register by the service registration in service item into server.
9. a kind of electronic equipment characterized by comprising memory, processor and be stored on the memory and described The computer program run on processor, the processor are realized when executing the computer program as appointed in claim 1-7 Step in one the method.
10. a kind of electronically readable storage medium, be stored with computer program makes when the computer program is executed by processor The processor is obtained to execute such as the step in any one of claim 1-7 the method.
CN201811648637.6A 2018-12-30 2018-12-30 Method and device for optimizing microservice and electronic equipment Active CN109587272B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811648637.6A CN109587272B (en) 2018-12-30 2018-12-30 Method and device for optimizing microservice and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811648637.6A CN109587272B (en) 2018-12-30 2018-12-30 Method and device for optimizing microservice and electronic equipment

Publications (2)

Publication Number Publication Date
CN109587272A true CN109587272A (en) 2019-04-05
CN109587272B CN109587272B (en) 2021-10-08

Family

ID=65915460

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811648637.6A Active CN109587272B (en) 2018-12-30 2018-12-30 Method and device for optimizing microservice and electronic equipment

Country Status (1)

Country Link
CN (1) CN109587272B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110162344A (en) * 2019-04-15 2019-08-23 深圳壹账通智能科技有限公司 A kind of method, apparatus, computer equipment and readable storage medium storing program for executing that current limliting is isolated
CN110324177A (en) * 2019-05-31 2019-10-11 中国人民解放军国防科技大学 Service request processing method, system and medium under micro-service architecture
CN112748915A (en) * 2020-12-30 2021-05-04 山东浪潮通软信息科技有限公司 Stimusoft-based method and device for dynamically extending business function
CN113254019A (en) * 2020-02-10 2021-08-13 北京沃东天骏信息技术有限公司 Method and device for registering front-end data stream state file
CN113568673A (en) * 2021-06-10 2021-10-29 北京旷视科技有限公司 Initialization method, initialization device, electronic equipment and computer-readable storage medium
CN113986254A (en) * 2020-07-27 2022-01-28 阿里巴巴集团控股有限公司 Micro front-end system, generation method and server system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150324187A1 (en) * 2003-03-14 2015-11-12 At&T Intellectual Property I, L.P. Run-time determination of application delivery
CN106612188A (en) * 2015-10-21 2017-05-03 中兴通讯股份有限公司 Method and device for extending software function based on micro service architecture
CN108279926A (en) * 2018-01-10 2018-07-13 浙江网新恒天软件有限公司 A kind of method of monomer applications micro services
CN108446111A (en) * 2018-03-26 2018-08-24 国家电网公司客户服务中心 A kind of micro services construction method based on Spring cloud
CN108667925A (en) * 2018-05-04 2018-10-16 北京天元创新科技有限公司 A kind of method and system of WEB application seamless access distributed system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150324187A1 (en) * 2003-03-14 2015-11-12 At&T Intellectual Property I, L.P. Run-time determination of application delivery
CN106612188A (en) * 2015-10-21 2017-05-03 中兴通讯股份有限公司 Method and device for extending software function based on micro service architecture
CN108279926A (en) * 2018-01-10 2018-07-13 浙江网新恒天软件有限公司 A kind of method of monomer applications micro services
CN108446111A (en) * 2018-03-26 2018-08-24 国家电网公司客户服务中心 A kind of micro services construction method based on Spring cloud
CN108667925A (en) * 2018-05-04 2018-10-16 北京天元创新科技有限公司 A kind of method and system of WEB application seamless access distributed system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
VAKINGE: "遗留非springboot传统项目接入eureka注册与服务发现", 《CSDN》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110162344A (en) * 2019-04-15 2019-08-23 深圳壹账通智能科技有限公司 A kind of method, apparatus, computer equipment and readable storage medium storing program for executing that current limliting is isolated
CN110162344B (en) * 2019-04-15 2023-03-31 深圳壹账通智能科技有限公司 Isolation current limiting method and device, computer equipment and readable storage medium
CN110324177A (en) * 2019-05-31 2019-10-11 中国人民解放军国防科技大学 Service request processing method, system and medium under micro-service architecture
CN110324177B (en) * 2019-05-31 2022-05-24 中国人民解放军国防科技大学 Service request processing method, system and medium under micro-service architecture
CN113254019A (en) * 2020-02-10 2021-08-13 北京沃东天骏信息技术有限公司 Method and device for registering front-end data stream state file
CN113986254A (en) * 2020-07-27 2022-01-28 阿里巴巴集团控股有限公司 Micro front-end system, generation method and server system
CN112748915A (en) * 2020-12-30 2021-05-04 山东浪潮通软信息科技有限公司 Stimusoft-based method and device for dynamically extending business function
CN112748915B (en) * 2020-12-30 2022-10-25 浪潮通用软件有限公司 Stimusoft-based method and device for dynamically extending business function
CN113568673A (en) * 2021-06-10 2021-10-29 北京旷视科技有限公司 Initialization method, initialization device, electronic equipment and computer-readable storage medium

Also Published As

Publication number Publication date
CN109587272B (en) 2021-10-08

Similar Documents

Publication Publication Date Title
CN109587272A (en) A kind of optimization method of micro services, device and electronic equipment
CN108510389B (en) Intelligent contract calling method and device based on block chain and readable storage medium
CN107005567B (en) Implementing communication events
US8788580B2 (en) Event broker for an improved application server platform for telecom-based applications
CN105553993B (en) A kind of remote service calling method, device and server
CN108989372A (en) Method, registration center and the equipment of service discovery
CN105338011B (en) A kind of ' In System Reconfiguration Method based on cloud service, device and Cloud Server
CN109408132A (en) A kind of configuration file processing method and server, user terminal, storage medium
CN109639782A (en) Message sends platform, method
CN104199957A (en) Redis universal agent implementation method
CN107635022A (en) Across intranet and extranet service access methods and device
CN103825950A (en) Contact synchronizing method and system based on cloud platform
CN105955792B (en) Start control method, device and equipment
CN109213792A (en) Method, server-side, client, device and the readable storage medium storing program for executing of data processing
CN111611091A (en) Service calling method, device and medium for business object
US20220232101A1 (en) Virtual workspace experience visualization and optimization
CN105516250B (en) Internet of Things service call platform and system
CN112202744B (en) Multi-system data communication method and device
CN107766149B (en) Method and device for ZooKeeper cluster configuration based on DUBBO
CN106357654B (en) Remote procedure calling method, device and communication system
CN110505318A (en) Uniform resource locator addressing method and device, network system
CN101004675A (en) Method, system for displaying menu, and client end
CN110730197B (en) Service discovery method and system
CN110392012A (en) The method and apparatus rebooted in lightweight machine to machine system
US11381665B2 (en) Tracking client sessions in publish and subscribe systems using a shared repository

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