CN110032392A - Service administering method and device, storage medium and electronic equipment - Google Patents

Service administering method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN110032392A
CN110032392A CN201910299969.6A CN201910299969A CN110032392A CN 110032392 A CN110032392 A CN 110032392A CN 201910299969 A CN201910299969 A CN 201910299969A CN 110032392 A CN110032392 A CN 110032392A
Authority
CN
China
Prior art keywords
service
micro services
component
agent components
target micro
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
CN201910299969.6A
Other languages
Chinese (zh)
Other versions
CN110032392B (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.)
Hangzhou Netease Shuzhifan Technology Co ltd
Original Assignee
Hangzhou Langhe Technology 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 Hangzhou Langhe Technology Co Ltd filed Critical Hangzhou Langhe Technology Co Ltd
Priority to CN201910299969.6A priority Critical patent/CN110032392B/en
Publication of CN110032392A publication Critical patent/CN110032392A/en
Application granted granted Critical
Publication of CN110032392B publication Critical patent/CN110032392B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • 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/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephonic Communication Services (AREA)
  • Stored Programmes (AREA)

Abstract

Embodiments of the present invention are related to Internet technical field, more specifically, embodiments of the present invention are related to servicing administering method and device, storage medium and electronic equipment.The described method includes: obtaining the call instruction to target micro services;Calling the target micro services corresponding according to the call instruction includes to service the Agent components for administering component;Load includes to service the Agent components for administering component to the target micro services to call the target micro services.The disclosure can facilitate service corresponding to each micro services to administer the unified management and configuration of component, reduce the management cost of service improvement component by administering component generation Agent components previously according to service and being allocated to corresponding micro services.

Description

Service administering method and device, storage medium and electronic equipment
Technical field
Embodiments of the present invention are related to field of cloud computer technology, more specifically, embodiments of the present invention are related to servicing Administering method and device, storage medium and electronic equipment.
Background technique
This part intends to provides background or context for the embodiments of the present invention stated in claim, retouching herein It states and recognizes it is the prior art not because not being included in this section.
In face of complicated distributed system architecture, service governance mechanism can use, by application program according to different industry Business responsibility is split as multiple independent micro services applications.For the correlation function that service is administered, need for each micro services It is individually constantly debugged, each independent micro services can just be made to possess the correlation function that service is administered.
Summary of the invention
But in some technologies, on the one hand, after monomer applications split into multiple micro services, each micro services are required To each service administer component carry out Integrated Development work, this work include but is not limited to rely on conflict inspection, edition compatibility, Code adaptation and modification, Start-up and Adjustment etc., using upper adaptation process, there is big in different micro services for identical component The repetitive operation of amount;On the other hand, it all includes more configurable parameter, each single item parameter configuration that component is administered in each service It may cause to apply if configuration error and occur exception in calling process, therefore developer needs a large amount of exploitation of inquiry literary Shelves, configuration file, increase a large amount of development cost;On the other hand, in distributed system architecture, the micro services after fractionation can Can will disperse in different physical machines, virtual machine or container, cause user can not service improvement corresponding to each micro services match It sets file and carries out unified control and configuration.Moreover, because service is administered, component is various, and each component is corresponding to have portion independent Configuration, as portfolio increases, configuration file also can increasingly be grown, it becomes difficult to be safeguarded.
Therefore, in the prior art, each application service administers component in the presence of the cumbersome, configuration management of access under micro services framework The problems such as inconvenient.
Thus, it is also very desirable to the improved service administering method of one kind and device, storage medium and electronic equipment, it is micro- to solve Each application service improvement component access is cumbersome under service architecture, configures the problem of not manageability.
In the present context, embodiments of the present invention are intended to provide a kind of service administering method and device, storage medium And electronic equipment.
According to one aspect of the disclosure, a kind of service administering method is provided, comprising:
Obtain the call instruction to target micro services;
Calling the target micro services corresponding according to the call instruction includes to service the Agent components for administering component;
Load includes to service the Agent components for administering component to the target micro services to call the target micro- Service.
In a kind of exemplary embodiment of the disclosure, the call instruction includes that the target micro services correspondence acts on behalf of group The address information of part.
It is described that the target micro services pair are called according to the call instruction in a kind of exemplary embodiment of the disclosure The Agent components answered include:
The Agent components of the target micro services are read according to the address information;
The Agent components are preloaded.
In a kind of exemplary embodiment of the disclosure, the load Agent components to the target micro services packet It includes:
It registers the first converter and bytecode conversion is carried out to the Agent components using first converter;
Bytecode enhancing processing is carried out to the bytecode transformation result of the Agent components;
Call bytecode enhancing treated Agent components to be loaded onto the target micro services.
In a kind of exemplary embodiment of the disclosure, call bytecode enhancing treated Agent components to load Include: to the target micro services
Read the configuration file for respectively servicing in the Agent components and administering component;
The second converter is registered, and component is administered to the service using the second converter based on the configuration file and is carried out Bytecode conversion;
The bytecode transformation result for administering component to the service carries out bytecode enhancing processing, and the service is administered The operation logic of component is inserted into the service logic of the target micro services;
The Agent components for administering component logic after bytecode is enhanced and comprising the service are synchronized to the target in incognito Business.
In a kind of exemplary embodiment of the disclosure, the method also includes:
The operating parameter of micro services is acquired by the Agent components;
The operating parameter is sent to control backstage in order to micro services described in the control background monitoring.
In a kind of exemplary embodiment of the disclosure, the method also includes:
Component Configuration instruction is administered in the service for receiving control backstage;
Update is synchronized to the corresponding Agent components of each micro services according to the configuration-direct.
In a kind of exemplary embodiment of the disclosure, after the acquisition is to the call instruction of target micro services, the side Method further include:
Fault-tolerant verifying is carried out to the call instruction.
In a kind of exemplary embodiment of the disclosure, the method also includes:
Service is carried out to destination application to split to obtain multiple fractionation services;
Each shared service for splitting service is extracted to administer component and encapsulate to generate Agent components, and according to described The Service Component for splitting service generates micro services;
The Agent components are configured for each micro services.
In a kind of exemplary embodiment of the disclosure, it includes following any one or any more that component is administered in the service The combination of item:
Service registration finds component, routing and load balancing component, service call protection component, data monitoring and statistics group Part, service authentication and authentication component.
According to one aspect of the disclosure, a kind of service controlling device is provided, comprising:
Read module is instructed, for obtaining the call instruction to target micro services;
Component call module includes that service is controlled for calling the target micro services corresponding according to the call instruction Manage the Agent components of component;
Component loading module includes that service administers the Agent components of component to the target micro services for loading To call the target micro services.
In a kind of exemplary embodiment of the disclosure, the call instruction includes that the target micro services correspondence acts on behalf of group The address information of part.
In a kind of exemplary embodiment of the disclosure, the component call module includes:
Address read module, for reading the Agent components of the target micro services according to the address information;
Preloaded components, for being preloaded to the Agent components.
In a kind of exemplary embodiment of the disclosure, the component loading module includes:
First conversion module, for registering the first converter and being carried out using first converter to the Agent components Bytecode conversion;
First enhancing module, carries out bytecode enhancing processing for the bytecode transformation result to the Agent components;
Calling module, for calling bytecode enhancing treated Agent components to be loaded onto the target in incognito Business.
In a kind of exemplary embodiment of the disclosure, the calling module includes:
Read module is configured, respectively the configuration file of component is administered in service in the Agent components for reading;
Second conversion module utilizes the second converter to institute for registering the second converter, and based on the configuration file It states service and administers component progress bytecode conversion;
Second enhancing module, the bytecode transformation result for administering component to the service carry out at bytecode enhancing The operation logic that component is administered in the service is inserted into the service logic of the target micro services by reason;
Logic synchronization modules, for after bytecode is enhanced and comprising it is described service administer component logic Agent components it is same It walks to the target micro services.
In a kind of exemplary embodiment of the disclosure, described device further include:
Parameter collection module, for acquiring the operating parameter of micro services by the Agent components;
Parameter transmission module, for the operating parameter to be sent to control backstage in order to control background monitoring institute State micro services.
In a kind of exemplary embodiment of the disclosure, described device further include:
Component Configuration instruction is administered in configuration-direct receiving module, the service for receiving control backstage;
Synchronization module is configured, for synchronizing according to the configuration-direct to the corresponding Agent components of each micro services It updates.
In a kind of exemplary embodiment of the disclosure, described device further include:
Command verification module, for holding after obtaining to the call instruction of target micro services to the call instruction Mistake verifying.
In a kind of exemplary embodiment of the disclosure, described device further include:
Service splits module, splits for carrying out service to destination application to obtain multiple fractionations and service;
Micro services package module administers component and encapsulation for extracting each shared service for splitting service to generate generation Component is managed, and micro services are generated according to the Service Component for splitting service;
Agent components configuration module, for configuring the Agent components for each micro services.
In a kind of exemplary embodiment of the disclosure, it includes following any one or any more that component is administered in the service The combination of item:
Service registration finds component, routing and load balancing component, service call protection component, data monitoring and statistics group Part, service authentication and authentication component.
According to one aspect of the disclosure, a kind of storage medium is provided, computer program, the computer are stored thereon with Service administering method described in above-mentioned any one is realized when program is executed by processor.
According to one aspect of the disclosure, a kind of electronic equipment is provided, comprising:
Processor;And
Memory, for storing the executable instruction of the processor;
Wherein, the processor is configured to execute clothes described in above-mentioned any one via the executable instruction is executed Business administering method.
The service administering method of embodiment according to the present invention, when needing invocation target micro services, first according to calling The corresponding Agent components that component is administered comprising service of invocation target micro services are instructed, and it is micro- that the Agent components are loaded onto target Service to realize the calling to target micro services, and realizes the enhancing to micro services application program, and effective simplified service Administer the joining procedure of component.By administering component generation Agent components previously according to service and being allocated to corresponding micro services, Can facilitate it is corresponding to each micro services service administer component unified management and configuration, reduce service administer component management at This.
Detailed description of the invention
The following detailed description is read with reference to the accompanying drawings, above-mentioned and other mesh of exemplary embodiment of the invention , feature and advantage will become prone to understand.In the accompanying drawings, if showing by way of example rather than limitation of the invention Dry embodiment, in which:
Fig. 1 schematically shows a kind of flow chart of service administering method of embodiment according to the present invention;
Fig. 2 schematically shows the flow charts of another service administering method of embodiment according to the present invention;
Fig. 3 schematically shows the fractionation micro services of embodiment according to the present invention and the method stream of Configuration Agent component Cheng Tu;
Fig. 4 schematically shows the method flow diagrams of the load Agent components of embodiment according to the present invention;
Fig. 5 schematically shows the block diagram of the service controlling device of embodiment according to the present invention;
Fig. 6 shows the schematic diagram of the storage medium of embodiment according to the present invention;And
Fig. 7 diagrammatically illustrates the block diagram of the electronic equipment according to invention embodiment.
In the accompanying drawings, identical or corresponding label indicates identical or corresponding part.
Specific embodiment
The principle and spirit of the invention are described below with reference to several illustrative embodiments.It should be appreciated that providing this A little embodiments are used for the purpose of making those skilled in the art can better understand that realizing the present invention in turn, and be not with any Mode limits the scope of the invention.On the contrary, these embodiments are provided so that this disclosure will be more thorough and complete, and energy It is enough that the scope of the present disclosure is completely communicated to those skilled in the art.
One skilled in the art will appreciate that embodiments of the present invention can be implemented as a kind of system, device, equipment, method Or computer program product.Therefore, the present disclosure may be embodied in the following forms, it may be assumed that complete hardware, complete software The form that (including firmware, resident software, microcode etc.) or hardware and software combine.
Embodiment according to the present invention provides a kind of service administering method, service controlling device, storage medium and electronics Equipment.
Herein, any number of elements in attached drawing is used to example rather than limitation and any name are only used for It distinguishes, without any restrictions meaning.
Below with reference to several representative embodiments of the invention, the principle and spirit of the invention are elaborated.
Summary of the invention
The inventors discovered that in the prior art, when each micro services for monomer applications realize service abatement functions, needing Application program is split as multiple micro services, and individually develops and configure the relevant configuration text that service is administered for each micro services Part, component is administered in each service has independent configuration file.Since the service between each micro services there are identical function is controlled Manage component, and service administer configuration file it is more complicated, parameter configuration item is more, cause identical component it is different in incognito There is a large amount of repetitive operations for the upper adaptation process of business application, and configuration process is excessively cumbersome and complicated.In addition, being distributed In formula framework, the service after fractionation may be dispersed in different physical machines, virtual machine or container, and user also can not be to respectively in incognito Be engaged in corresponding service administers configuration file and carries out unified control.
In view of above content, basic thought of the invention is: when needing invocation target micro services, according to call instruction The corresponding Agent components that component is administered comprising service of invocation target micro services, and the Agent components are loaded onto target in incognito Business.On the one hand, the joining procedure that component is administered in service can effectively be simplified.On the other hand, by the way that improvement group will be serviced in advance Part generates independent Agent components, and is allocated to corresponding micro services, can facilitate service improvement group corresponding to each micro services The unified management and configuration of part, the service of reduction administer the management cost of component, avoid same services improvement group between each micro services The overlapping development of part.
After introduced the basic principles of the present invention, lower mask body introduces various non-limiting embodiment party of the invention Formula.
Illustrative methods
The service administering methods of illustrative embodiments according to the present invention described with reference to the accompanying drawings and embodiments.
With reference to Fig. 1, the service administering method be may comprise steps of:
S110, it obtains to the call instructions of target micro services;
S120, called according to the call instruction target micro services it is corresponding include service administer component agency Component;
S130, load include to service the Agent components for administering component to the target micro services to call the mesh Mark micro services.
In the service administering method of embodiment of the present invention, by when needing invocation target micro services, basis first The corresponding Agent components that component is administered comprising service of call instruction invocation target micro services, and the Agent components are loaded onto mesh Micro services are marked, to realize the calling to target micro services, and the effective joining procedure for simplifying service and administering component.By pre- Component generation Agent components are first administered according to service and are allocated to corresponding micro services, can be facilitated to the corresponding clothes of each micro services The unified management and configuration of component are administered in business, and the management cost of component is administered in the service of reduction, are simplified the corresponding service of micro services and are controlled Manage the development process of component.
Refering to what is shown in Fig. 2, above-mentioned service administering method can also include:
In the step s 100, micro services are split to destination application and configures corresponding Agent components.
In the illustrative embodiments of the disclosure, specifically, refering to what is shown in Fig. 3, above-mentioned step S100 can wrap Include following steps:
Step S1001 carries out service to destination application and splits to obtain multiple fractionations and service;
Step S1002, extract it is each it is described split service shared service administer component and encapsulate to generate Agent components, with And micro services are generated according to the Service Component for splitting service;
Step S1003 configures the Agent components for each micro services.
It, can be according to the rule such as business, function or condition by destination application for a monomer applications program It is split as multiple micro services.For example, an application program is split as the micro services such as user service, comment service and payment services. In general, micro services may include service logic and interrelated logic two parts are administered in service.For example, the industry of user service The service logic for the correlation functions such as business logic may include user's registration, user logs in;Service is administered interrelated logic and then be can wrap It includes: routing and load balancing, data monitoring and statistics etc..Therefore, for each micro services after splitting, it can be made only Retain the relevant service logic of own service, and service improvement logic that will be shared or general between each micro services splits out shape At Agent components, all services are integrated by Agent components and administer relevant function;And corresponding generation is configured for each micro services It manages component (Agent).
For example, Agent components can be embodied in the form of jar APMB package, and Agent components may include: service registration hair Existing component, routing and load balancing component, service call protection component, data monitoring and statistics component, service authentication and authentication Component is administered in the services such as component.Certainly, in other exemplary embodiments of the disclosure, Agent components can also include: fusing Protect component, current limiting component and fault-tolerant checking assembly etc..The related content of component, Ke Yigen are administered in service in Agent components It is limited according to the practical service order function being related to of each micro services.The disclosure does not do particular determination to this.
In step s 110, the call instruction to target micro services is obtained.
In the illustrative embodiments of the disclosure, the above-mentioned call instruction to target micro services, which can be user, to be made The call instruction to target micro services triggered when with application program, for example, user intelligent terminal submit comment information when, just The call instruction to comment service can be triggered;Alternatively, when registering new user, and can trigger to user service (i.e. target Micro services) call instruction.Alternatively, in other exemplary embodiments of the disclosure, the above-mentioned calling to target micro services Instruction is also possible in application program, the call instruction triggered between micro services;For example, user when submitting comment information, knows It is clipped to that user is not landed, can be initiated make user log in or infuse in intelligent terminal the calling of user service by comment service Volume.
In the step s 120, calling the target micro services corresponding according to the call instruction includes service improvement group The Agent components of part.
In the illustrative embodiments of the disclosure, specifically, above-mentioned call instruction can be used as opening for micro services Order is moved, may include the address information that the target micro services correspond to Agent components in the call instruction.
Specifically, above-mentioned step S120 may include:
S1201 reads the Agent components of the target micro services according to the address information;
S1202 preloads the Agent components.
The address information for corresponding to Agent components by adding target micro services in call instruction, can read according to the path The fixed Agent components of fetching.After the Agent components for reading target micro services, (Java Virtual Machine, Java are empty by jvm Quasi- machine) premain function can be executed, Agent components are preloaded.It, can be with by being preloaded to Agent components The load time for shortening Agent components, optimize the load process of Agent components.
In step s 130, load includes to service the Agent components for administering component to the target micro services to adjust With the target micro services.
In the illustrative embodiments of the disclosure, specifically, refering to what is shown in Fig. 4, loading the Agent components to institute Stating target micro services may comprise steps of:
Step S1301 registers the first converter and carries out bytecode to the Agent components using first converter Conversion;
Step S1302 carries out bytecode enhancing processing to the bytecode transformation result of the Agent components;
Step S1303 calls bytecode enhancing treated Agent components to be loaded onto the target micro services.
In this example embodiment, the first converter (transformer) can be registered in jvm, and utilize this first turn Parallel operation returns to the bytecode after conversion to respectively component progress bytecode conversion is administered in service in Agent components in call back function, Bytecode after the conversion is the modified bytecode for including service improvement logic.And jvm to the bytecode after conversion into Row bytecode enhancing processing, and generate corresponding class file.And treated that Agent components are loaded onto mesh by bytecode enhancing Micro services are marked, are realized in the external load to Agent components.For example, the tools pair such as ASM, Javaasist can be passed through Bytecode enhancing is carried out, detailed process can realize that the disclosure repeats no more this using conventional method.
Specifically, above-mentioned calling bytecode enhancing treated Agent components are to be loaded onto the target in incognito Business can specifically include the following contents:
Step S201 reads the configuration file for respectively servicing in the Agent components and administering component;
Step S202 is registered the second converter, and is controlled using the second converter the service based on the configuration file It manages component and carries out bytecode conversion;
Step S203, the bytecode transformation result for administering component to the service carries out bytecode enhancing processing, by institute The operation logic for stating service improvement component is inserted into the service logic of the target micro services;
Step S204, the Agent components for administering component logic after bytecode is enhanced and comprising the service are synchronized to described Target micro services.
In this example embodiment, after Agent components are loaded onto micro services, for Agent components inside, opening After dynamic Agent components, the configuration file that component is administered in each service can be read, which may include the phase that service is administered Close the contents such as parameter information, address information.Then the second converter can be registered, judges whether to need in Classloader to clothes Business administers component and carries out bytecode enhancing.If current service administers component currently to need service to be used to administer component, Just the corresponding class file of component is administered to the service and executes bytecode enhancing processing, realize the operation logic that service is administered to component It is inserted into the service logic of target micro services, and is synchronized to target micro services local, realize and component is administered with no intrusion to service The mode of formula is loaded into micro services.
In addition, target micro services can also lead to after obtaining call instruction in other exemplary embodiments of the disclosure It crosses Agent components and fault-tolerant verifying is carried out to call instruction.For example, can also include fault tolerant mechanism component in Agent components, for testing Call instruction is demonstrate,proved, and is retried when there is call error.Agent components can test call instruction by the component Card.
In addition, in some exemplary embodiments of the disclosure, above-mentioned method can also include:
Step S310 acquires the operating parameter of micro services by the Agent components;
Step S320, by the operating parameter be sent to control backstage in order to described in the control background monitoring in incognito Business.
It can also include monitor component in Agent components in this example embodiment.Each micro services in the process of running, can To administer the operating parameter of component by service each inside the operating parameter of the collect components micro services and Agent components.And By those monitoring parameters by real time or regularly in a manner of be uploaded to control backstage, make control backstage these data can be gathered Splitting or integrating analysis, and can corresponding database or report be generated according to these data according to the demand of user.
In some exemplary embodiments of the disclosure, above-mentioned method can also include:
Component Configuration instruction is administered in step S410, the service for receiving control backstage;
Step S420 synchronizes update to the corresponding Agent components of each micro services according to the configuration-direct.
In this example embodiment, each Agent components can be configured with communication module, and each Agent components can be with control Data communication is carried out in a manner of long connection between backstage, such as using grpc as communication mode.After user can be by control Platform issues configuration-direct to the corresponding Agent components of each micro services respectively or uniformly, may include in the configuration-direct and refers to service The configuration file or configuration modification data, increase service for enabling component administer component etc..Component is administered to service to realize Unified control, facilitates user to administer the unified management of component to the service of multiple micro services.
In conclusion by the way that the interrelated logic that the service in the micro services of application program is administered is pulled out come simultaneously shape in advance At independent Agent components, micro services is made only to retain the service logic of itself, and acts on behalf of group for the configuration of each micro services is corresponding Part can effectively reduce service and administer the management cost of component, and save the development process of micro services and service improvement component. Only need to add the start-up parameter of Agent components when disposing micro services, it can be so that micro services possess service and administer relevant function Can, simplify the joining procedure that component is administered in service.For existing micro services, can be realized in the case where not modifying code To the enhancing that service is administered, convenient for different micro services corresponding with service are administered with the unified control and configuration of component.
Exemplary means
After describing the service administering method of exemplary embodiment of the invention, next, with reference to Fig. 5 to the present invention The service controlling device of illustrative embodiments is described.
Refering to what is shown in Fig. 5, the service controlling device 500 of exemplary embodiment of the invention may include: that mould is read in instruction Block 501, component call module 502 and component loading module 503.Wherein,
Described instruction read module 501 can be used for obtaining the call instruction to target micro services.
The component call module 502 can be used for calling the corresponding packet of the target micro services according to the call instruction The Agent components of component are administered containing service.
It includes that service administers the Agent components of component to described that the component loading module 503, which can be used for loading, Target micro services are to call the target micro services.
In above-mentioned service controlling device, by obtaining the call instruction to target micro services in instruction reading device, and Make component call module according to the corresponding Agent components of call instruction invocation target micro services, and the Agent components are loaded onto Target micro services simplify service to realize that the interrelated logic for administering service is loaded onto the service logic of target micro services Administer the joining procedure of component.Independent Agent components are generated by the way that component is administered in service in advance, and are allocated to corresponding micro- Service can facilitate service corresponding to each micro services to administer the unified management and configuration of component, and component is administered in the service of reduction Management cost avoids the overlapping development of same services improvement component between each micro services.
According to an exemplary embodiment of the present disclosure, the call instruction includes that the target micro services correspond to Agent components Address information.
According to an exemplary embodiment of the present disclosure, the component call module 502 may include: address read module, it is pre- Loading module (not shown).Wherein,
The address read module can be used for reading the Agent components of the target micro services according to the address information.
The preloaded components can be used for preloading the Agent components.
By the way that preloaded components are arranged, Agent components can be preloaded, to optimize the load stream of Agent components Journey shortens the load time.
According to an exemplary embodiment of the present disclosure, the component loading module 503 may include: the first conversion module, One enhancing module and calling module (not shown).Wherein,
First conversion module can be used for registering the first converter and using first converter to the agency Component carries out bytecode conversion.
The first enhancing module can be used for carrying out bytecode enhancing to the bytecode transformation result of the Agent components Processing.
The calling module can be used for calling bytecode enhancing treated the Agent components to be loaded onto the mesh Mark micro services.
According to an exemplary embodiment of the present disclosure, the calling module may include: configuration read module, the second modulus of conversion Block, the second enhancing module and logic synchronization modules (not shown).Wherein,
The configuration read module can be used for reading the configuration file for respectively servicing in the Agent components and administering component.
Second conversion module can be used for registering the second converter, and utilize the second conversion based on the configuration file Device administers component to the service and carries out bytecode conversion.
The bytecode transformation result that the second enhancing module can be used for administering the service component carries out bytecode The operation logic that component is administered in the service is inserted into the service logic of the target micro services by enhancing processing.
The generation of component logic is administered after the logic synchronization modules can be used for enhancing bytecode and comprising the service Component synchronization is managed to the target micro services.
According to an exemplary embodiment of the present disclosure, described device further include: parameter collection module, parameter transmission module (figure In be not shown).Wherein,
The parameter collection module can be used for acquiring the operating parameter of micro services by the Agent components.
After the parameter transmission module can be used for for the operating parameter being sent to control backstage in order to the control Platform monitors the micro services.
By acquiring the operating parameter of micro services and being periodically sent to control backstage, control backstage can be passed through in order to user Micro services are monitored.
According to an exemplary embodiment of the present disclosure, described device further include: configuration-direct receiving module, configuration synchronization module (not shown).Wherein,
Component Configuration instruction is administered in the service that the configuration-direct receiving module can be used for receiving control backstage.
The configuration synchronization module can be used for according to the configuration-direct to the corresponding Agent components of each micro services Synchronize update.
Synchronization module is configured by setting, the corresponding Agent components of difference micro services is allowed to synchronize carry out configuration file Or the update of parameter.It is conveniently used for administering the service of each micro services the unified control of component.
According to an exemplary embodiment of the present disclosure, described device further include: command verification module (not shown).
Described instruction authentication module can be used for after obtaining to the call instruction of target micro services, to the call instruction Carry out fault-tolerant verifying.
According to an exemplary embodiment of the present disclosure, described device further include: service split module, micro services package module with And Agent components configuration module (not shown).Wherein,
The service, which splits module, can be used for carrying out destination application service fractionation to obtain multiple fractionations services.
The micro services package module can be used for extracting each shared service for splitting service and administer component and encapsulate To generate Agent components, and according to the Service Component generation micro services for splitting service.
The Agent components configuration module can be used for configuring the Agent components for each micro services.
According to an exemplary embodiment of the present disclosure, it includes following any one or any multinomial that component is administered in the service Combination:
Service registration finds component, routing and load balancing component, service call protection component, data monitoring and statistics group Part, service authentication and authentication component.
Since each functional module of the service controlling device of embodiment of the present invention and above-mentioned service administering method are invented It is identical in embodiment, therefore details are not described herein.
Exemplary storage medium
The audio frequency playing method and device, audio sharing method and device for describing exemplary embodiment of the invention it Afterwards, next, being illustrated with reference to storage medium of the Fig. 6 to exemplary embodiment of the invention.
Refering to what is shown in Fig. 6, describing the program product for realizing the above method of embodiment according to the present invention 600, can using portable compact disc read only memory (CD-ROM) and including program code, and can in equipment, such as It is run on PC.However, program product of the invention is without being limited thereto, in this document, readable storage medium storing program for executing, which can be, appoints What include or the tangible medium of storage program that the program can be commanded execution system, device or device use or and its It is used in combination.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letter Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or System, device or the device of semiconductor, or any above combination.The more specific example of readable storage medium storing program for executing is (non exhaustive List) include: electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-only Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, In carry readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal, Optical signal or above-mentioned any appropriate combination.Readable signal medium can also be any readable Jie other than readable storage medium storing program for executing Matter, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or and its The program of combined use.
The program code for including on readable medium can transmit with any suitable medium, including but not limited to wirelessly, have Line, optical cable, RF etc. or above-mentioned any appropriate combination.
The program for executing operation of the present invention can be write with any combination of one or more programming languages Code, described program design language include object oriented program language-Java, C++ etc., further include conventional mistake Formula programming language-such as " C " language or similar programming language.Program code can be calculated fully in user It is executed in equipment, part executes on a remote computing or sets completely in remote computation on the user computing device for part It is executed on standby or server.In the situation for being related to remote computing device, remote computing device can pass through the net of any kind Network, including local area network (LAN) or wide area network (WAN), are connected to user calculating equipment, or, it may be connected to outside calculates and sets Standby (such as being connected using ISP by internet).
Example electronic device
After describing the storage medium of exemplary embodiment of the invention, next, with reference to Fig. 7 to example of the present invention The electronic equipment of property embodiment is illustrated.
The electronic equipment 800 that Fig. 7 is shown is only an example, should not function and use scope to the embodiment of the present invention Bring any restrictions.
As shown in fig. 7, electronic equipment 800 is showed in the form of universal computing device.The component of electronic equipment 800 can wrap It includes but is not limited to: at least one above-mentioned processing unit 810, at least one above-mentioned storage unit 820, the different system components of connection The bus 830 of (including storage unit 820 and processing unit 810), display unit 840.
Wherein, the storage unit is stored with program code, and said program code can be held by the processing unit 810 Row, so that various according to the present invention described in the execution of the processing unit 810 above-mentioned " illustrative methods " part of this specification The step of illustrative embodiments.For example, the processing unit 810 can execute step S110 as shown in fig. 1 to step S130 or the processing unit 810 can execute step S100 to step S130 as shown in Figure 2.
Storage unit 820 may include volatile memory cell, for example, Random Access Storage Unit (RAM) 8201 and/or Cache memory unit 8202 can further include read-only memory unit (ROM) 8203.
Storage unit 820 can also include program/utility with one group of (at least one) program module 8205 8204, such program module 8205 includes but is not limited to: operating system, one or more application program, other program moulds It may include the realization of network environment in block and program data, each of these examples or certain combination.
Bus 830 may include data/address bus, address bus and control bus.
Electronic equipment 800 can also be with one or more external equipments 900 (such as keyboard, sensing equipment, bluetooth equipment Deng) communicate, this communication can be carried out by input/output (I/O) interface 850.Electronic equipment 800 further includes display unit 840, it is connected to input/output (I/O) interface 850, for being shown.Also, electronic equipment 800 can also pass through network Adapter 860 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, such as because of spy Net) communication.As shown, network adapter 860 is communicated by bus 830 with other modules of electronic equipment 800.It should be bright It is white, although not shown in the drawings, other hardware and/or software module can be used in conjunction with electronic equipment 800, including but not limited to: Microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and data are standby Part storage system etc..
It should be noted that although being referred to service controlling device in the above detailed description and servicing several moulds of controlling device Block or submodule, but it is this division be only exemplary it is not enforceable.In fact, embodiment party according to the present invention The feature and function of formula, two or more above-described units/modules can embody in a units/modules.Conversely, The feature and function of an above-described units/modules can be to be embodied by multiple units/modules with further division.
In addition, although describing the operation of the method for the present invention in the accompanying drawings with particular order, this do not require that or Hint must execute these operations in this particular order, or have to carry out shown in whole operation be just able to achieve it is desired As a result.Additionally or alternatively, it is convenient to omit multiple steps are merged into a step and executed by certain steps, and/or by one Step is decomposed into execution of multiple steps.
Although detailed description of the preferred embodimentsthe spirit and principles of the present invention are described by reference to several, it should be appreciated that, this It is not limited to the specific embodiments disclosed for invention, does not also mean that the feature in these aspects cannot to the division of various aspects Combination is benefited to carry out, this to divide the convenience merely to statement.The present invention is directed to cover appended claims spirit and Included various modifications and equivalent arrangements in range.

Claims (10)

1. a kind of service administering method characterized by comprising
Obtain the call instruction to target micro services;
Calling the target micro services corresponding according to the call instruction includes to service the Agent components for administering component;
Load includes to service the Agent components for administering component to the target micro services to call the target micro services.
2. the method according to claim 1, wherein the call instruction includes that the target micro services correspond to generation Manage the address information of component.
3. according to the method described in claim 2, it is characterized in that, described call the target in incognito according to the call instruction Corresponding Agent components of being engaged in include:
The Agent components of the target micro services are read according to the address information;
The Agent components are preloaded.
4. the method according to claim 1, wherein described load the Agent components to the target micro services Include:
It registers the first converter and bytecode conversion is carried out to the Agent components using first converter;
Bytecode enhancing processing is carried out to the bytecode transformation result of the Agent components;
Call bytecode enhancing treated Agent components to be loaded onto the target micro services.
5. according to the method described in claim 4, it is characterized in that, call bytecode enhancing treated Agent components with Being loaded onto the target micro services includes:
Read the configuration file for respectively servicing in the Agent components and administering component;
The second converter is registered, and component is administered to the service using the second converter based on the configuration file and carries out byte Code conversion;
The bytecode transformation result for administering component to the service carries out bytecode enhancing processing, and component is administered in the service Operation logic be inserted into the service logic of the target micro services;
The Agent components for administering component logic after bytecode is enhanced and comprising the service are synchronized to the target micro services.
6. the method according to claim 1, wherein the method also includes:
The operating parameter of micro services is acquired by the Agent components;
The operating parameter is sent to control backstage in order to micro services described in the control background monitoring.
7. the method according to claim 1, wherein the method also includes:
Component Configuration instruction is administered in the service for receiving control backstage;
Update is synchronized to the corresponding Agent components of each micro services according to the configuration-direct.
8. a kind of service controlling device characterized by comprising
Read module is instructed, for obtaining the call instruction to target micro services;
Component call module includes service improvement group for calling the target micro services corresponding according to the call instruction The Agent components of part;
Component loading module includes to service the Agent components for administering component to the target micro services to adjust for loading With the target micro services.
9. a kind of storage medium, is stored thereon with computer program, which is characterized in that the computer program is executed by processor Shi Shixian service administering method according to any one of claims 1 to 7.
10. a kind of electronic equipment characterized by comprising
Processor;And
Memory, for storing the executable instruction of the processor;
Wherein, the processor is configured to come described in any one of perform claim requirement 1~7 via the execution executable instruction Service administering method.
CN201910299969.6A 2019-04-15 2019-04-15 Service management method and device, storage medium and electronic equipment Active CN110032392B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910299969.6A CN110032392B (en) 2019-04-15 2019-04-15 Service management method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910299969.6A CN110032392B (en) 2019-04-15 2019-04-15 Service management method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN110032392A true CN110032392A (en) 2019-07-19
CN110032392B CN110032392B (en) 2023-05-09

Family

ID=67238421

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910299969.6A Active CN110032392B (en) 2019-04-15 2019-04-15 Service management method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN110032392B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111131193A (en) * 2019-12-10 2020-05-08 四川新网银行股份有限公司 Distributed service governance method supporting multi-protocol heterogeneous non-code intrusion
CN111917838A (en) * 2020-07-14 2020-11-10 浙江大华技术股份有限公司 Processing method and device based on micro service, storage medium and electronic device
CN111953735A (en) * 2020-07-15 2020-11-17 烽火通信科技股份有限公司 System microservice transformation method, device, equipment and storage medium
CN112463211A (en) * 2020-07-28 2021-03-09 上海汇招信息技术有限公司 System architecture transformation method compatible with multiple development architectures and system architecture
CN112612804A (en) * 2020-12-22 2021-04-06 新华三大数据技术有限公司 Service management parameter updating method and device
CN113315748A (en) * 2021-03-18 2021-08-27 阿里巴巴新加坡控股有限公司 Communication method and device
CN113312037A (en) * 2021-06-15 2021-08-27 北京百度网讯科技有限公司 Data processing method, device and equipment applied to microservice and storage medium
CN113590231A (en) * 2021-08-17 2021-11-02 上海微盟企业发展有限公司 Component loading method, system, device and storage medium
CN113765944A (en) * 2020-06-01 2021-12-07 中移(苏州)软件技术有限公司 Micro-service management method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106612188A (en) * 2015-10-21 2017-05-03 中兴通讯股份有限公司 Method and device for extending software function based on micro service architecture
CN106610836A (en) * 2016-12-23 2017-05-03 国网信息通信产业集团有限公司 Micro-service operation management tool
US20180027080A1 (en) * 2016-07-22 2018-01-25 Cisco Technology, Inc. Scaling service discovery in a micro-service environment
CN109150978A (en) * 2018-07-24 2019-01-04 北京百度网讯科技有限公司 The method and apparatus for debugging micro services
CN109491653A (en) * 2018-11-21 2019-03-19 泰康保险集团股份有限公司 Component sharing method under micro services framework, device, electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106612188A (en) * 2015-10-21 2017-05-03 中兴通讯股份有限公司 Method and device for extending software function based on micro service architecture
US20180027080A1 (en) * 2016-07-22 2018-01-25 Cisco Technology, Inc. Scaling service discovery in a micro-service environment
CN106610836A (en) * 2016-12-23 2017-05-03 国网信息通信产业集团有限公司 Micro-service operation management tool
CN109150978A (en) * 2018-07-24 2019-01-04 北京百度网讯科技有限公司 The method and apparatus for debugging micro services
CN109491653A (en) * 2018-11-21 2019-03-19 泰康保险集团股份有限公司 Component sharing method under micro services framework, device, electronic equipment

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111131193A (en) * 2019-12-10 2020-05-08 四川新网银行股份有限公司 Distributed service governance method supporting multi-protocol heterogeneous non-code intrusion
CN111131193B (en) * 2019-12-10 2022-05-20 四川新网银行股份有限公司 Distributed service management method supporting multi-protocol heterogeneous non-code intrusion
CN113765944A (en) * 2020-06-01 2021-12-07 中移(苏州)软件技术有限公司 Micro-service management method, device, equipment and storage medium
CN111917838A (en) * 2020-07-14 2020-11-10 浙江大华技术股份有限公司 Processing method and device based on micro service, storage medium and electronic device
CN111917838B (en) * 2020-07-14 2023-08-29 浙江大华技术股份有限公司 Micro-service-based processing method and device, storage medium and electronic device
CN111953735A (en) * 2020-07-15 2020-11-17 烽火通信科技股份有限公司 System microservice transformation method, device, equipment and storage medium
CN112463211A (en) * 2020-07-28 2021-03-09 上海汇招信息技术有限公司 System architecture transformation method compatible with multiple development architectures and system architecture
CN112612804A (en) * 2020-12-22 2021-04-06 新华三大数据技术有限公司 Service management parameter updating method and device
CN113315748A (en) * 2021-03-18 2021-08-27 阿里巴巴新加坡控股有限公司 Communication method and device
CN113312037A (en) * 2021-06-15 2021-08-27 北京百度网讯科技有限公司 Data processing method, device and equipment applied to microservice and storage medium
CN113312037B (en) * 2021-06-15 2023-11-24 北京百度网讯科技有限公司 Data processing method, device, equipment and storage medium applied to micro-service
CN113590231A (en) * 2021-08-17 2021-11-02 上海微盟企业发展有限公司 Component loading method, system, device and storage medium
CN113590231B (en) * 2021-08-17 2024-05-10 上海微盟企业发展有限公司 Component loading method, system, device and storage medium

Also Published As

Publication number Publication date
CN110032392B (en) 2023-05-09

Similar Documents

Publication Publication Date Title
CN110032392A (en) Service administering method and device, storage medium and electronic equipment
US11093216B2 (en) Automatic discovery of microservices from monolithic applications
CN108830720A (en) Intelligent contract operation method, device, system and computer readable storage medium
CN110088734A (en) Logical repositories service
US20120284696A1 (en) Method, Apparatuses and a System for Compilation
US10833955B2 (en) Dynamic delivery of software functions
CN104346184A (en) Application packaging device and application packaging method
CN103297381A (en) Service access method based on plugin and system thereof
CN108091384B (en) Medical image processing system based on micro-service framework
CN105814579A (en) Sandboxed application data redirection to datacenters
CN110515628A (en) Using dispositions method and device
CN112052013A (en) Software package generation method and device, storage medium and electronic device
CN108595187A (en) Method, device and the storage medium of Android installation kit integrated software development kit
CN106339237A (en) Plug-in loading frame for WEB application in field of JavaEE and method
US20170212775A1 (en) Program execution without the use of bytecode modification or injection
Saito et al. DevOps with Kubernetes: accelerating software delivery with container orchestrators
US20130227572A1 (en) Test device, a system, a program and a method
CN103729189A (en) Broadcast protocol conversion method, system and terminal based on LUA
CN105144085B (en) For the software frame of storage device
US20150220404A1 (en) Undo configuration transactional compensation
CN110333872A (en) A kind of processing method of application, device, equipment and medium
US11803786B2 (en) Enterprise integration platform
CN108052842B (en) Signature data storage and verification method and device
CN110413314A (en) A kind of file publishing method, device, equipment and storage medium
CN110275701A (en) Data processing method, device, medium and calculating equipment

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
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 310052 Room 301, Building No. 599, Changhe Street Network Business Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Hangzhou NetEase Shuzhifan Technology Co.,Ltd.

Address before: 310052 Room 301, Building No. 599, Changhe Street Network Business Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee before: HANGZHOU LANGHE TECHNOLOGY Ltd.