CN107612955A - Micro services provide method, apparatus and system - Google Patents

Micro services provide method, apparatus and system Download PDF

Info

Publication number
CN107612955A
CN107612955A CN201610547884.1A CN201610547884A CN107612955A CN 107612955 A CN107612955 A CN 107612955A CN 201610547884 A CN201610547884 A CN 201610547884A CN 107612955 A CN107612955 A CN 107612955A
Authority
CN
China
Prior art keywords
service
micro services
module
gateway
access request
Prior art date
Application number
CN201610547884.1A
Other languages
Chinese (zh)
Inventor
何明璐
Original Assignee
深圳市远行科技股份有限公司
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 深圳市远行科技股份有限公司 filed Critical 深圳市远行科技股份有限公司
Priority to CN201610547884.1A priority Critical patent/CN107612955A/en
Publication of CN107612955A publication Critical patent/CN107612955A/en

Links

Abstract

The invention discloses a kind of micro services to provide method, apparatus and system, wherein, this method includes:Micro services gateway receives the service access request that service consumer is sent;The service available address information list pre-set according to service access request inquiry, it is determined that providing the micro services module of the service;The address information of the micro services module is fed back into the service consumer, service access is carried out for the service consumer, solve in correlation technique for micro services module when by container dynamic expansion and deployment, the problem of being required for going to configure and managing the issue of micro services by hand, realization service is realized from registration, and supports controlling stream and data stream separation.

Description

Micro services provide method, apparatus and system

Technical field

The present invention relates to the communications field, more particularly to a kind of micro services to provide method, apparatus and system.

Background technology

Currently it is substantially in enterprises and is independently built according to system, mould is built according to single application for operation system Under formula, operation system carries out that resilient expansion ability is quite weaker, and current monomer applications are mainly brought as follows in itself again in itself Some problems are difficult to solve:

1. system complex:Internal multiple module close coupling, association rely on complexity, pulled one hair and move the whole body.

2. O&M is difficult:The impact analysis of change or upgrading is difficult, and any one small modifications may all cause monomer applications Overall operation breaks down.

3. it can not extend:Deployment can not be split, is often merely able to increase server after there is performance bottleneck or increases cluster Node, but DB problems are difficult to resolve certainly.

Inside it is entirely black box currently for each operation system, although also having divided multiple moulds inside operation system Block and component, but independent deployment and management can not be accomplished between modules.Simultaneously because all modules are all in an exploitation All it is often that (Application is programmed by point-to-point related application inside engineering project, between module Programming Interface, referred to as API) interface carry out intermodule business and data interaction, Fig. 1 is according to related skill The schematic diagram of micro services system in art, as shown in figure 1, concrete technical scheme is described as follows:Modules inside operation system Component close coupling, modularization and serviceization can not be realized.Carried out inside operation system between modules by point-to-point interface Interaction.Each component call of current business internal system, most of system are directly to be carried out by the api interface inside Java Call, for currently used similar dynamic modeling system (the Open Service towards Java of individual other operation system Gateway Initiative, referred to as OSGI) internal services flexible bus pattern, i.e., by api interface issue be registered to OSGI On carry out service issue again.Interface currently has what is realized using WebService modes, the operation system having by preliminary inves-tigation Simple Object Access Protocol (Simple Object Access Protocol, referred to as SOAP) WebService is employed to disappear Agreement is ceased, some operation systems employ Restful WebService message, but the use of such interface service is also only Being confined to operation system needs issuing interface to service scene when being used to external service system.

For current technical scheme, after operation system modularization and micro services, module can expose into reaches the standard grade in vain Service, these services are required for carrying out safety in itself, daily record, cached, load, the ability such as dynamic expansion.If still use point To a service call, each service will be caused to be required for realizing these abilities.After operation system micro services, micro services Module can be deployed in similar Docker receptacles, wherein, Docker is the application container an increased income engine, then for micro- Service module is required for going to configure by hand and managing the issue of micro services when by container dynamic expansion and deployment.It is right In some specific scenes, generally require multiple fine-grained micro services being combined into an industry service ability, but currently Technology realizes that aspect does not have special component and module to realize the ability.The API and IP address that micro services module provides can be straight Connect and be exposed to consumption module, that is, cause micro services module all to have influence on consumer when Dynamical Deployment and IP adjust.

For in correlation technique for micro services module by container dynamic expansion and deployment when, be required for craft The problem of going to configure and managing the issue of micro services, not yet proposes solution at present.

The content of the invention

It is a primary object of the present invention to propose that a kind of micro services provide method, apparatus and system, it is intended to solve related skill In art in correlation technique for micro services module by container dynamic expansion and deployment when, be required for by hand go configuration and The problem of managing the issue of micro services.

To achieve the above object, a kind of micro services provided in an embodiment of the present invention provide method, and methods described includes:In incognito Business gateway receives the service access request that service consumer is sent;The micro services gateway is inquired about according to the service access request The service available address information list pre-set, it is determined that providing the micro services module of the service;The micro services gateway is by institute The address information for stating micro services module feeds back to the service consumer, and service access is carried out for the service consumer.

Preferably, the service available address that the micro services gateway is pre-set according to service access request inquiry is believed List is ceased, it is determined that providing the micro services module of the service includes:The micro services gateway is inquired about according to the service access request The service available address information list, it is determined that multiple micro services modules of the service can be provided;The micro services gateway passes through Poll or hash algorithm carry out load balance process to the service access request, determine to provide from the multiple micro services module The micro services module of the service.

Preferably, the service access request load by poll or hash algorithm in the micro services gateway Weighing apparatus processing, after the determination of the multiple micro services module provides the micro services module of the service, methods described also includes:It is described Micro services gateway is by the route service access requests by the micro services module to determination;Described in the micro services gateway receives The service output information that micro services module returns;The micro services gateway returns to the service consumption by output information is serviced Side.

Preferably, methods described also includes:The micro services gateway disappearing the service output information storage to internal Cease middleware;The micro services gateway is held the data logging that micro services access by the record of the message-oriented middleware Longization records.

Preferably, before the service access request that micro services gateway receives that service consumer is sent, methods described is also wrapped Include:Micro services gateway be respectively each micro services module provide SDK (Software Development Kit, Referred to as SDK) agency's bag, wherein, the SDK agencies bag carries the interface of service dynamic registration, and the SDK acts on behalf of bag and is used for Micro services module calls the interface to complete service dynamic registration.

Preferably, it is respectively that methods described is also wrapped after each micro services module provides SDK agency's bags in micro services gateway Include:Micro services gateway receives the service registration information of micro services module, and service registration information dynamic is written into service In registry.

Preferably, after service registration information dynamic is written in service registry storehouse, methods described also includes: Service providing state after micro services gateway is disposed to micro services module is verified;The service module is carried after being proved to be successful The service registration information of confession is written in service load balancing and routing table.

Preferably, after service registration information dynamic is written in service registry storehouse, methods described also includes: The micro services gateway gets the current status information of micro services module by the api interface in SDK agency's bags in real time; When the status information exception, the micro services gateway can by the service that the micro services module provides from service available address Removed in information list.

Another aspect according to embodiments of the present invention, additionally provide a kind of micro services and device is provided, applied to micro services net Close, methods described includes:

Receiving module, for receiving the service access request of service consumer transmission;

Determining module, for inquiring about the service available address information list pre-set according to the service access request, It is determined that provide the micro services module of the service;

Feedback module, for the address information of the micro services module to be fed back into the service consumer, for the clothes Business consumer carries out service access.

Another further aspect according to embodiments of the present invention, additionally provide a kind of micro services and system is provided, including:It is one or more Micro services module, Docker containers and micro services gateway, wherein, one or more of micro services modules are respectively by described Docker containers Dynamical Deployment or by hand deployment;

One or more of micro services modules, for service registration request to occur to the micro services gateway;

The micro services gateway, noted for receiving the service registration request of the micro services module, and according to the service The registration to one or more of micro services modules is completed in volume request.

Preferably, the micro services gateway, it is additionally operable to receive the service access request that service consumer is sent, according to described The service available address information list that service access request inquiry is pre-set, it is determined that providing the micro services module of the service;Will The address information of the micro services module feeds back to the service consumer, and service access is carried out for the service consumer.

By the embodiment of the present invention, micro services gateway receives the service access request that service consumer is sent;According to described The service available address information list that service access request inquiry is pre-set, it is determined that providing the micro services module of the service;Will The address information of the micro services module feeds back to the service consumer, and service access, solution are carried out for the service consumer In correlation technique of having determined for micro services module by container dynamic expansion and deployment when, be required for by hand go configuration and The problem of managing the issue of micro services, realization service is realized from registration, and support controlling stream and data stream separation.

Brief description of the drawings

The schematic diagram of micro services systems of the Fig. 1 in correlation technique;

Fig. 2 is the flow chart that micro services according to embodiments of the present invention provide method;

Fig. 3 is the block diagram that micro services according to embodiments of the present invention provide device;

Fig. 4 is the schematic diagram of micro services system according to embodiments of the present invention.

The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.

Embodiment

It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.

Describe to realize the mobile terminal of each embodiment of the present invention referring now to accompanying drawing.In follow-up description, use For represent element such as " module ", " part " or " unit " suffix only for be advantageous to the present invention explanation, itself Not specific meaning.Therefore, " module " can be used mixedly with " part ".

With reference to the micro services framework thought of currently most main flow, the embodiment of the present invention uses for reference the core of traditional ESB service bus Design logic and construction characteristic, with reference to, for high-performance, height extends and Docker container dynamic integrities in micro services framework Demand, propose a kind of high performance micro services net of light weight for meeting operator's internal business systems modularization and serviceization and transforming Close.

The content bag of service access and the unified management and control, wherein management and control of all micro services modules is realized by micro services gateway Service broker is included, service safe, dynamic load leveling, service is from registration, the core competence such as service invocation message records.Pass through Micro services gateway, the operation system modularization transformation inside operator and ability can be preferably promoted to provide.

Based on above-mentioned micro services gateway, a kind of micro services provided in an embodiment of the present invention provide method, and Fig. 2 is according to this hair The micro services of bright embodiment provide the flow chart of method, and as indicated with 2, this method includes:

Step S202, micro services gateway receive the service access request that service consumer is sent;

Step S204, the service available address information that micro services gateway is pre-set according to service access request inquiry arrange Table, it is determined that providing the micro services module of the service;

The address information of the micro services module is fed back to the service consumer by step S206, micro services gateway, for the clothes Business consumer carries out service access.

By above-mentioned steps, due to introducing micro services gateway, solve in correlation technique for micro services module logical When crossing container dynamic expansion and deployment, the problem of being required for going to configure and managing the issue of micro services by hand, reality is realized Now service supports controlling stream and data stream separation from registration.

Preferably, the service available address information that the micro services gateway is pre-set according to service access request inquiry arranges Table, it is determined that providing the micro services module of the service includes:The micro services gateway inquires about the service according to the service access request can With address information list, it is determined that multiple micro services modules of the service can be provided;The micro services gateway is calculated by poll or Hash Method carries out load balance process to the service access request, determines to provide the micro services mould of the service from the plurality of micro services module Block.

Preferably, the service access request is carried out at load balancing by poll or hash algorithm in the micro services gateway Reason, after the determination of the plurality of micro services module provides the micro services module of the service, this method also includes:The micro services gateway By the route service access requests by the micro services module to determination;The micro services gateway receives the clothes of micro services module return Business output information;The micro services gateway returns to the service consumer by output information is serviced.

Preferably, this method also includes:The micro services gateway is by among service output information storage to internal message Part;The micro services gateway is by the record of the message-oriented middleware, the data logging progress persistence record that micro services are accessed.

Preferably, before the service access request that micro services gateway receives that service consumer is sent, this method also includes: Micro services gateway is respectively each micro services module offer SDK agency's bags, wherein, the SDK acts on behalf of bag and carries service dynamic note The interface of volume, SDK agencies bag call the interface to complete service dynamic registration for micro services module.

Preferably, it is respectively that this method is also wrapped after each micro services module provides SDK agency's bags in micro services gateway Include:Micro services gateway receives the service registration information of micro services module, and service registration information dynamic is written into service note In volume storehouse.

Preferably, after service registration information dynamic is written in service registry storehouse, this method also includes:In incognito Service providing state after business gateway is disposed to micro services module is verified;The service module is provided after being proved to be successful Service registration information is written in service load balancing and routing table.

Preferably, after service registration information dynamic is written in service registry storehouse, this method also includes:This is micro- Gateway gets the current status information of micro services module by the api interface in SDK agency's bags in real time;When the state During Information abnormity, the micro services gateway can by service that the micro services module provides from service available address information list it is clear Remove.

The embodiment of the present invention additionally provides a kind of micro services and provides device, and Fig. 3 is micro services according to embodiments of the present invention The block diagram of device is provided, as indicated at 3, applied to micro services gateway, the device includes:

Receiving module 32, for receiving the service access request of service consumer transmission;

Determining module 34, for inquiring about the service available address information list pre-set according to the service access request, It is determined that provide the micro services module of the service;

Feedback module 36, for the address information of the micro services module to be fed back into the service consumer, disappear for the service Fei Fang carries out service access.

The micro services framework (being substantially still the single application modularization of itself and serviceization) that the embodiment of the present invention introduces, One micro services typically completes some specific function, such as order management, customer account management etc..Each micro services are one micro- Type application, there are oneself hexagon framework, including business logic and various interfaces.Some micro services are other by exposure API Used in micro services or applications client;Some micro services are then realized by webpage UI.Operationally, each example is typically one Individual cloud virtual machine or Docker containers.

The main of the core of micro services framework includes, and one forms the small application of an independence (from DB to UI) enough, its It can only be interacted between the application of two micro services by Service API, thirdly typically operating in cloud virtual machine or lighter On Docker containers.

In order to solve the above problems, a core emphasis is just the introduction of cloud platform and SOA core architecture thought, will pass Multiple micro services modules for self-government are broken in the polymeric monomer application of system, to realize high-performance and resilient expansion ability.

In the implementation process of operation system modularization and serviceization, because operation system has been broken up as multiple autonomies Micro services module, can only interact and communicate by exposed service between each micro services module, in such a scenario Quantity of service can be exponentially growth.

A kind of micro services being additionally provided according to embodiments of the present invention system being provided, Fig. 4 is according to embodiments of the present invention micro- The schematic diagram of service system, as shown in figure 4, including:One or more micro services modules, Docker containers and micro services net Close, wherein, one or more micro services modules are disposed by the Docker containers Dynamical Deployment or by hand respectively;

One or more micro services modules, for service registration request to occur to the micro services gateway;

The micro services gateway, for receiving the service registration request of the micro services module, and according to the service registration request Complete the registration to one or more micro services modules.

Preferably, the micro services gateway, it is additionally operable to receive the service access request that service consumer is sent, according to the service The service available address information list that access request inquiry is pre-set, it is determined that providing the micro services module of the service;This is micro- The address information of service module feeds back to the service consumer, and service access is carried out for the service consumer.

By being wrapped in SDK service brokers built in micro services inside modules, realize micro services module automatic by Docker When deployment, the registration service dynamically provided by micro services gateway carries out the registration of micro services module.By in incognito Load-balancing algorithm built in business intra-gateway (including polling algorithm and HASH algorithms realize the dynamic to micro services call request Load balancing).By being wrapped in SDK service brokers built in micro services inside modules, the quasi real time heartbeat to micro services module is realized Detection, once micro services module provides service fault, i.e., it is registered in inventory from available service and disabled.Realize that micro services access The separation of controlling stream and data flow, i.e., call for micro services and carried out by the two-stage, the first stage conducts interviews control, authenticates And route;Second stage carries out actual data flow and accesses and transmit.

Include as shown in figure 4, service dynamic registration is realized:When micro services Development of Module, micro services gateway can carry Micro services Development of Module side is given for SDK agency's bags of a local.This is acted on behalf of SDK and provides the Rest API for calling micro services gateway Service the interface of dynamic registration.Micro services module is designed and developed.Micro services module can after the completion of designing and developing To carry out Dynamical Deployment by Docker containers, also support module is disposed by hand.When micro services module starts, meeting The service registry interface in SDK bags is called in triggering, and the interface can get the IP address of the micro services module of Dynamical Deployment completion Information, there is provided Rest api interface address informations etc..After micro services gateway receives log-on message again, reversely service registry is believed Breath dynamic is written in service registry storehouse.After service registry is successfully written, micro services gateway is disposed to micro services module Service providing state afterwards is verified, the service registration information that the service module provides is written into service after being proved to be successful (table is managed by the caching management module of gateway, i.e., dynamically refreshes in micro services gateway for load balancing and routing table Available service list cache information.

Illustrate below and service registry process is described in detail.

Connect as currently there are OrderManage order management micro services modules to provide QueryOrderInfoSrv services API Mouthful.I.e. whole interior logic is as follows when the micro services module is registered first:

OrderManage components are packaged as independent EAR or WAR bags, built-in wherein micro services SDK bags. OrderManage components complete the automatically dispose of micro services module by Docker containers.

It is the module assignment dynamic IP addressing information after the completion of the deployment of Docker containers, such as 10.0.0.1, SDK bags pass through GetModuleIP api interfaces get the dynamic IP addressing information of micro services module.

SDK bags call the dynamic Service registration interface of micro services gateway, it is assumed that and the address of micro services gateway is 12.0.0.1, I.e. call request is http://12.0.0.1/Register/Service.jsonIP=10.0.0.1&name= QueryOrderInfoSrv&AddressPath=***.

Registration request is written in available service registration table by micro services gateway after call request is received.When in incognito Module of being engaged in is because under big concurrent access request, when there is dynamic expansion, i.e. OrderManage passes through Docker automatic deployments One new calculate node, it is same that order data inquiry API service ability is provided.OrderManage components (node 2) pass through Docker containers complete the automatically dispose of micro services module.After the completion of the deployment of Docker containers for the module assignment dynamic IP Location information, such as 10.0.0.2, the dynamic IP addressing that SDK bags get micro services module by GetModuleIP api interfaces are believed Breath.

SDK bags call the dynamic Service registration interface of micro services gateway, it is assumed that and the address of micro services gateway is 12.0.0.1, I.e. call request is http://12.0.0.1/Register/Service.jsonIP=10.0.0.2&name= QueryOrderInfoSrv&AddressPath=***.

Registration request is written in available service registration table by micro services gateway after call request is received.Complete After above step, being serviced for QueryOrderInfoSrv in service can be with information in registration table:

And the address that now micro services gateway is exposed to outside is:http://12.0.0.1/OrderManage/ QueryOrderInfoSrv, i.e., when consumer calls gateway address, it be able to will be taken come dynamic according to load-balancing algorithm Business request is forwarded in available micro services module.As balanced dynamic by request assignment to 10.0.0.1 or 10.0.0.2 it is different Micro services module.

The implementation process (record data daily record scene) of micro services consumption mainly includes:Service and visit under log scene The controlling stream and data flow asked all will be by micro services gateways.The micro services that service consumer calls micro services gateway to provide provide Rest API address informations.For micro services gateway after service access request is received, dynamic inquiry can currently provide the clothes The micro services module's address information list of business.Micro services gateway enters service access request by poll or HASH algorithms and loaded Equilibrium, i.e., service access request is evenly distributed to different multiple micro services modules.Micro services gateway is by service access Message storage is inputted to the message-oriented middleware of intra-gateway.The step is asynchronous process, and the calling for not interfering with normal service is rung Should.Micro services gateway after load balancing by route service access requests by providing module to original micro services.Micro services There is provided module to be handled according to service response request, and return to service output information and give micro services gateway.Micro services gateway will Return information storage is serviced to internal message-oriented middleware.Service return information is returned to final service and disappeared by micro services gateway Fei Fang.Micro services gateway is by the record of message-oriented middleware, the data logging progress persistence record (file that micro services are accessed Or database table)

Service access controlling stream and data stream separation under the scene.It is micro- that service consumer calls micro services gateway to provide Service provides Rest API address informations.For micro services gateway after service access request is received, dynamic inquiry currently can be with The micro services module's address information list of the service is provided.Micro services gateway enters service access request by poll or HASH algorithms Load balancing is carried out, by the original micro services API address informations for needing finally to access to service consumption after load balancing is carried out Side.The address information that service message root returns according to micro services module, the consumption and access of micro services are directly carried out, getting needs The service to be returned output.

Micro services gateway dynamic monitors, and the local SDK that micro services gateway provides acts on behalf of bag can be with micro services module together Deployment.SDK agency's bags provide the probe api interface of the currently available state of service of micro services module offer.Micro services gateway The current health status of micro services module quasi real time can be got by the api interface.When the status information exception of acquisition Wait, micro services gateway can remove the service that the micro services module provides from service available address list information.

By the embodiment of the present invention, following effect is realized:Because using Docker, easily and service arrangement process is close Carry out, realize service from registration;Controlling stream and data stream separation, current ESB buses is supported not to support the pattern;Realize to micro- Quasi real time healthy heartbeat detection and the failure transfer of service.

It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those key elements, and And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Other identical element also be present in the process of key element, method, article or device.

The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.

Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, computer, clothes Business device, air conditioner, or network equipment etc.) perform the method that each embodiment of the present invention is somebody's turn to do.

The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (11)

1. a kind of micro services provide method, it is characterised in that methods described includes:
Micro services gateway receives the service access request that service consumer is sent;
The service available address information list that the micro services gateway is pre-set according to service access request inquiry, it is determined that The micro services module of the service is provided;
The address information of the micro services module is fed back to the service consumer by the micro services gateway, is disappeared for the service Fei Fang carries out service access.
2. according to the method for claim 1, it is characterised in that the micro services gateway is looked into according to the service access request The service available address information list pre-set is ask, it is determined that providing the micro services module of the service includes:
The micro services gateway is according to the service access request inquiry service available address information list, it is determined that can provide Multiple micro services modules of the service;
The micro services gateway carries out load balance process by poll or hash algorithm to the service access request, from described Multiple micro services modules determine to provide the micro services module of the service.
3. according to the method for claim 2, it is characterised in that pass through poll or hash algorithm pair in the micro services gateway The service access request carries out load balance process, determines to provide the micro services mould of the service from the multiple micro services module After block, methods described also includes:
The micro services gateway is by the route service access requests by the micro services module to determination;
The micro services gateway receives the service output information that the micro services module returns;
The micro services gateway returns to the service consumer by output information is serviced.
4. according to the method for claim 3, it is characterised in that methods described also includes:
The service output information storage is arrived internal message-oriented middleware by the micro services gateway;
The micro services gateway is by the record of the message-oriented middleware, the data logging progress persistence note that micro services are accessed Record.
5. according to the method for claim 1, it is characterised in that receive the service of service consumer transmission in micro services gateway Before access request, methods described also includes:
Micro services gateway is respectively that each micro services module provides SDK SDK agency's bags, wherein, the SDK generations Reason bag carries the interface of service dynamic registration, and the SDK agencies bag is used for micro services module and calls the interface to complete service Dynamic registration.
6. according to the method for claim 5, it is characterised in that in micro services gateway be respectively that each micro services module provides After SDK agency's bags, methods described also includes:
Micro services gateway receives the service registration information of micro services module, and service registration information dynamic is written into service In registry.
7. according to the method for claim 6, it is characterised in that service registration information dynamic is being written to service note After in volume storehouse, methods described also includes:
Service providing state after micro services gateway is disposed to micro services module is verified;
The service registration information that the service module provides is written in service load balancing and routing table after being proved to be successful.
8. according to the method for claim 6, it is characterised in that service registration information dynamic is being written to service note After in volume storehouse, methods described also includes:
The micro services gateway gets micro services mould by the application programming api interface in SDK agency's bags in real time The current status information of block;
When the status information exception, the micro services gateway can be available from service by the service that the micro services module provides Removed in address information list.
9. a kind of micro services provide device, it is characterised in that applied to micro services gateway, described device includes:
Receiving module, for receiving the service access request of service consumer transmission;
Determining module, for the service available address information list pre-set according to service access request inquiry, it is determined that The micro services module of the service is provided;
Feedback module, for the address information of the micro services module to be fed back into the service consumer, disappear for the service Fei Fang carries out service access.
10. a kind of micro services provide system, it is characterised in that including:One or more micro services modules, Docker containers and Micro services gateway, wherein, one or more of micro services modules pass through the Docker containers Dynamical Deployment or craft respectively Deployment;
One or more of micro services modules, for service registration request to occur to the micro services gateway;
The micro services gateway, for receiving the service registration request of the micro services module, and please according to the service registry Ask the registration completed to one or more of micro services modules.
11. system according to claim 10, it is characterised in that the micro services gateway, be additionally operable to receive service consumption The service access request just sent, the service available address information list pre-set according to service access request inquiry, It is determined that provide the micro services module of the service;The address information of the micro services module is fed back into the service consumer, supplied The service consumer carries out service access.
CN201610547884.1A 2016-07-12 2016-07-12 Micro services provide method, apparatus and system CN107612955A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610547884.1A CN107612955A (en) 2016-07-12 2016-07-12 Micro services provide method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610547884.1A CN107612955A (en) 2016-07-12 2016-07-12 Micro services provide method, apparatus and system

Publications (1)

Publication Number Publication Date
CN107612955A true CN107612955A (en) 2018-01-19

Family

ID=61055079

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610547884.1A CN107612955A (en) 2016-07-12 2016-07-12 Micro services provide method, apparatus and system

Country Status (1)

Country Link
CN (1) CN107612955A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108965442A (en) * 2018-07-23 2018-12-07 珠海宏桥高科技有限公司 A kind of micro services infrastructure services dissemination system and model-based optimization method
CN109067862A (en) * 2018-07-23 2018-12-21 北京邮电大学 The method and apparatus of API Gateway automatic telescopic
CN109150957A (en) * 2018-06-29 2019-01-04 中译语通科技股份有限公司 A kind of micro services concurrent control system
CN109359449A (en) * 2018-10-17 2019-02-19 郑州云海信息技术有限公司 A kind of method for authenticating based on micro services, device, server and storage medium
CN109522682A (en) * 2018-11-15 2019-03-26 郑州云海信息技术有限公司 A kind of method for authenticating and device
CN109688005A (en) * 2018-12-24 2019-04-26 华中科技大学 A kind of system architecture of the High Availabitity without intrusion
WO2020147331A1 (en) * 2019-01-18 2020-07-23 苏宁云计算有限公司 Micro-service monitoring method and system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109150957A (en) * 2018-06-29 2019-01-04 中译语通科技股份有限公司 A kind of micro services concurrent control system
CN108965442A (en) * 2018-07-23 2018-12-07 珠海宏桥高科技有限公司 A kind of micro services infrastructure services dissemination system and model-based optimization method
CN109067862A (en) * 2018-07-23 2018-12-21 北京邮电大学 The method and apparatus of API Gateway automatic telescopic
CN109067862B (en) * 2018-07-23 2020-10-16 北京邮电大学 Method and device for automatic extension and retraction of API Gateway
CN109359449A (en) * 2018-10-17 2019-02-19 郑州云海信息技术有限公司 A kind of method for authenticating based on micro services, device, server and storage medium
CN109359449B (en) * 2018-10-17 2020-10-30 苏州浪潮智能科技有限公司 Authentication method, device, server and storage medium based on micro service
CN109522682A (en) * 2018-11-15 2019-03-26 郑州云海信息技术有限公司 A kind of method for authenticating and device
CN109688005A (en) * 2018-12-24 2019-04-26 华中科技大学 A kind of system architecture of the High Availabitity without intrusion
WO2020147331A1 (en) * 2019-01-18 2020-07-23 苏宁云计算有限公司 Micro-service monitoring method and system

Similar Documents

Publication Publication Date Title
CN104219127B (en) A kind of creation method and equipment of virtual network example
US10110429B2 (en) Enabling planned upgrade/downgrade of network devices without impacting network sessions
US20170310596A1 (en) Load distribution in data networks
CN104781802B (en) User Defined Resource in resource stack
CN103401917B (en) A kind of mixing cloud computing system and its implementation method based on cloud bus
Lemlouma et al. Context-aware adaptation for mobile devices
CN1499395B (en) Service appts. integration
CA2471855C (en) Java application framework for use in a content delivery network (cdn)
US7366752B2 (en) Communication system of an automation equipment based on the soap protocol
KR100830940B1 (en) Remote control system for home network using universal plug and play
US7428597B2 (en) Content-based routing system and method
CN105979009B (en) A kind of increase load automatic balancing method for cloud application container
US8875135B2 (en) Assigning component operations of a task to multiple servers using orchestrated web service proxy
CA2556862C (en) System and method for communicating asynchronously with web services using message set definitions
US8027922B2 (en) Integration infrastructure
CN101065947B (en) Web service registry and method of operation
CN100466651C (en) Methods and systems for application instance level workload distribution affinities
AlShahwan et al. Providing soap web services and restful web services from mobile hosts
US9094436B2 (en) Methods and systems for interfacing with a vehicle computing system over multiple data transport channels
AU2012228693B2 (en) Method and system for synchronization mechanism on multi-server reservation system
US8612406B1 (en) Sharing business data across networked applications
CN102938731B (en) Exchange and integration device and method based on proxy cache adaptation model
CN106603592B (en) A kind of method and moving apparatus for the application cluster migration based on service model
DE60301202T2 (en) Method and device for transporting a web farm
CN102124449B (en) Method and system for low-overhead data transfer

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