CN106686094A - Micro-service architecture - Google Patents
Micro-service architecture Download PDFInfo
- Publication number
- CN106686094A CN106686094A CN201611265027.9A CN201611265027A CN106686094A CN 106686094 A CN106686094 A CN 106686094A CN 201611265027 A CN201611265027 A CN 201611265027A CN 106686094 A CN106686094 A CN 106686094A
- Authority
- CN
- China
- Prior art keywords
- service
- controller
- address
- information
- routing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/02—Topology update or discovery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/12—Avoiding congestion; Recovering from congestion
- H04L47/125—Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1004—Server selection for load balancing
- H04L67/1025—Dynamic adaptation of the criteria on which the server selection is based
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/63—Routing a service request depending on the request content or context
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a micro-service architecture. The micro-service architecture comprises a service routing controller, a service providing controller and a service calling controller, wherein the service calling controller is used for sending a service calling request corresponding to a service calling party to the service routing controller, receiving service address information returned by the service routing controller, converting the service address information into a network calling request and afterwards sending the network calling request to the service providing controller; the service routing controller is used for determining the service address information of a service provider corresponding to the service calling request based on a dynamic load balancing strategy; the service providing controller is used for converting the network calling request into the service address information and providing services corresponding to the service address information. In this way, the purpose of service calling based on the network can be achieved; meanwhile, it is based on the dynamic load balancing strategy that the service routing controller determines the service address information corresponding to the service calling request, and thus the high availability of the micro-service architecture can be comprehensively achieved.
Description
Technical field
The present invention relates to field of cloud computer technology, more particularly, it relates to a kind of micro services framework.
Background technology
At present, cloud computing becomes one of most popular technology of IT field;With the development of Information technology, cloud computing progressively into
For the Hot spots for development of industry, the cloud computing service platform of domestic and international all big enterprises also begins to put into science, education, text one after another
The multiple fields such as change, health, government, high-performance calculation, ecommerce, Internet of Things are used.
With the continuous expansion of cloud scale, cloud platform user's is on the increase, and system high-available requires also more and more higher;
But the system architecture based on cloud computing for providing at present cannot meet the high availability for increasingly increasing to be required.
In sum, how a kind of architectural schemes of the high availability requirement that disclosure satisfy that and increasingly increase are provided, are current
Those skilled in the art's problem demanding prompt solution.
The content of the invention
It is an object of the invention to provide a kind of micro services framework, is required with meeting the high availability for increasingly increasing.
To achieve these goals, the present invention provides following technical scheme:
A kind of micro services framework, including service routing controller, service offer controller and service call controller, its
In:
The service call controller, for sending the corresponding service invocation request in service call side to the service routing
Controller, and for receiving the address of service information that the service routing controller is returned, and by the address of service information
It is converted into being sent to the service after network call request and controller is provided;
The service routing controller, for being determined and the service invocation request pair based on Dynamic Load-Balancing Strategy
The address of service information of the ISP for answering;
The service provides controller, for network call request to be converted into into the address of service information, and carries
For service corresponding with the address of service information.
Preferably, also including service registry controller,
The service registry controller is used for the service for obtaining the recalls information of the service call side and offer service
The offer information of provider is simultaneously stored.
Preferably, the offer information includes registration type, service API Name, ISP's IP address, port, clothes
Business API all methods names.
Preferably, the recalls information includes registration type, service API Name, service caller IP address and service API
All methods name.
Preferably, the service routing controller includes memory element, and the memory element is used to store all service tune
User and the corresponding routing address table of ISP, so that the service routing controller is determined based on the routing address table
Address of service corresponding with service invocation request information.
Preferably, also including service monitoring controller, the service monitoring controller is used for the state of real-time monitoring service,
And when being canceled in the service of monitoring or be unavailable, the corresponding informance in the routing address table is updated.
Preferably, the ISP includes the computing module and mixed-media network modules mixed-media in cloud management platform.
A kind of micro services framework that the present invention is provided, including service routing controller, service provide controller and service is adjusted
With controller, wherein:The service call controller, for sending the corresponding service invocation request in service call side to the clothes
Business path control deivce, and for receiving the address of service information that the service routing controller is returned, and service ground by described
Location information is converted into being sent to the service after network call request and provides controller;The service routing controller, for base
The address of service information of ISP corresponding with the service invocation request is determined in Dynamic Load-Balancing Strategy;It is described
Service provides controller, for network call request to be converted into into the address of service information, and provides and the service
The corresponding service of address information.In technical scheme disclosed in the present application, service call controller is that service call side initiates correspondence
Service invocation request, service routing controller determines the clothes of the ISP of the service of offer based on Dynamic Load-Balancing Strategy
The address of service information is converted into network call request and is sent to service call control by business address information, service call controller
Device, network call request is restored to after the information of address of service and provides corresponding with service, by service call controller so as to realize base
In the service call of network, and service routing controller is it is determined that be base during address of service information corresponding with service invocation request
Realize in Dynamic Load-Balancing Strategy, so as to the comprehensive high availability for realizing the micro services framework, meet cloud platform clothes
Expansible, High Availabitity the demand of business.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this
Inventive embodiment, for those of ordinary skill in the art, on the premise of not paying creative work, can be with basis
The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 is a kind of structural representation of micro services framework provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
Fig. 1 is referred to, a kind of structural representation of micro services framework provided in an embodiment of the present invention is it illustrates, can be wrapped
Include service routing controller 12, service and controller 11 and service call controller 13 are provided, wherein:
Service call controller 13, for sending the corresponding service invocation request in service call side to service routing controller
12, and for receiving the address of service information of the return of service routing controller 12, and address of service information is converted into into network
Send after call request to service and controller 11 is provided;
Service routing controller 12, for determining clothes corresponding with service invocation request based on Dynamic Load-Balancing Strategy
The address of service information of business supplier;
Service provides controller 11, for network call request to be converted into into address of service information, and provides and service ground
The corresponding service of location information.
It should be noted that micro services framework provided in an embodiment of the present invention includes that service routing controller, service are provided
Controller and service call controller, the course of work of each part can be described as follows:Service call controller is by service call
The service invocation request of Fang Faqi is sent to service routing controller, and service routing controller is true based on Dynamic Load-Balancing Strategy
Determine and the address of service information with the ISP of service invocation request can be provided, service call controller believes the address
Breath is converted into sending after network call request to service and provides controller, and service provides controller by the network call request conversion
Into original address of service information and corresponding service is provided, thus, based on calling for real-time performance service.Wherein, service is carried
Include the service for providing ISP with network mode offer for the function of controller so that service call controller can
Realize calling service by way of network call is asked, and network call request be converted into into address of service information,
And corresponding service is provided;The function of service call controller includes that address of service information is converted into into web services call asks
Ask, wherein it should be noted that it can be converted into address of service information that address of service information is converted into into network service request
The call request of the form being transmitted according to procotol set in advance (such as http protocol), it is corresponding, network is adjusted
Be converted into address of service information with request also will be transmitted according to procotol set in advance (such as http protocol etc.)
Form is restored to former form;And the Dynamic Load-Balancing Strategy that service routing controller is used can be set according to actual needs
Determine, such as polling mechanism.
In technical scheme disclosed in the present application, service call controller is called for service call side's initiation corresponding with service please
Ask, service routing controller determines the address of service letter of the ISP of the service of offer based on Dynamic Load-Balancing Strategy
The address of service information is converted into network call request and is sent to service call controller by breath, service call controller, by taking
Business is called controller that network call request is restored to after the information of address of service and provides corresponding with service, network so as to realize
Service call, and service routing controller is it is determined that be negative based on dynamic during address of service information corresponding with service invocation request
Carry what balance policy was realized, so as to the comprehensive high availability for realizing the micro services framework, meet expanding for cloud platform service
Exhibition, the demand of High Availabitity.
A kind of micro services framework provided in an embodiment of the present invention, can also include service registry controller, service registry control
Device processed is used for the offer information of the service provider for obtaining the recalls information of service call side and providing service and stores.
It is being provided automatically and will calling after service provides controller and service call controller starts to start
The information of service is registered on service registry controller, so that service registry controller can obtain corresponding informance and deposit
Storage, and then realize follow-up maintenance and management.It is corresponding, the service ground that the service routing controller in the embodiment of the present invention is provided
Location information can be identical with the recalls information of the corresponding with service registered in service registry controller.And meeting in service registry controller
The corresponding offer information of presence service supplier and the two kinds of service list of the corresponding recalls information of service caller, the clothes
Correspond to respectively in business list and maintain api interface relevant information of institute's registration service etc., specifically, there is provided information can include
Registration type (ISP), service API Name, ISP's IP address, port, service API all methods names;Call
Information includes registration type (service caller), service API Name, service caller IP address and service API all methods names.
A kind of micro services framework provided in an embodiment of the present invention, service routing controller can include memory element, storage
Unit is used to store whole service callers and the corresponding routing address table of ISP, so that service routing controller is based on
The routing address table determines address of service corresponding with service invocation request information.
Service routing controller stores and maintains service caller by its memory element and ISP is corresponding
Routing address table, so when it needs to be determined that during address of service information corresponding with service invocation request can by the table in determine
The address of service information of corresponding with service, in simple terms, can be based on Dynamic Load-Balancing Strategy by selecting in routing address table
The routing address of corresponding with service supplier, and then offer information corresponding with the routing address is provided in service registry controller
Service call controller is returned to as address of service information, realizes that the dynamic load of service is equal so as to be based on the routing address table
Weighing apparatus.
A kind of micro services framework provided in an embodiment of the present invention, can also include service monitoring controller, service monitoring control
Device processed is used for the state of real-time monitoring service, and when being canceled in the service of monitoring or be unavailable, to routeing address table in it is right
Information is answered to be updated.
The state that service monitoring controller real-time monitoring is all serviced is right when being canceled in the service of monitoring or be unavailable
Corresponding informance in routing address table is updated, and mainly includes this is canceled or unavailable service center enters in routing address table
Row correspondence markings, so that service routing controller can determine the state of the service, it is to avoid be canceled in the service or can not
Its address of service information is supplied to service call controller by the used time, so as to ensure that service call controller calls having for service
Effect property.
A kind of micro services framework provided in an embodiment of the present invention, ISP can include the calculating in cloud management platform
Module and mixed-media network modules mixed-media.
Specifically, computing module provides the service of calculating, and mixed-media network modules mixed-media provides network service, and when service provides controller
When being called to the service of mixed-media network modules mixed-media, mixed-media network modules mixed-media and computing module can be tied gained after corresponding service has been performed
Fruit is returned to service call side, facilitates it to know service offer situation.
The foregoing description of the disclosed embodiments, enables those skilled in the art to realize or using the present invention.To this
Various modifications of a little embodiments will be apparent for a person skilled in the art, and generic principles defined herein can
Without departing from the spirit or scope of the present invention, to realize in other embodiments.Therefore, the present invention will not be limited
It is formed on the embodiments shown herein, and is to fit to consistent with principles disclosed herein and features of novelty most wide
Scope.
Claims (7)
1. a kind of micro services framework, it is characterised in that provide controller and service call control including service routing controller, service
Device processed, wherein:
The service call controller, controls for sending the corresponding service invocation request in service call side to the service routing
Device, and for receiving the address of service information that the service routing controller is returned, and the address of service information is changed
Send to the service into after network call request and controller is provided;
The service routing controller, it is corresponding with the service invocation request for being determined based on Dynamic Load-Balancing Strategy
The address of service information of ISP;
The service provides controller, for network call request to be converted into into the address of service information, and provide with
The corresponding service of the address of service information.
2. framework according to claim 1, it is characterised in that also including service registry controller, the service registry control
Device processed is used for the offer information of the service provider for obtaining the recalls information of the service call side and providing service and stores.
3. framework according to claim 2, it is characterised in that the offer information includes registration type, service API names
Title, ISP's IP address, port, service API all methods names.
4. framework according to claim 3, it is characterised in that the recalls information includes registration type, service API names
Title, service caller IP address and service API all methods names.
5. framework according to claim 1, it is characterised in that the service routing controller includes memory element, described
Memory element is used to store whole service callers and the corresponding routing address table of ISP, for the service routing control
Device processed determines address of service corresponding with service invocation request information based on the routing address table.
6. framework according to claim 5, it is characterised in that also including service monitoring controller, the service monitoring control
Device processed is used for the state of real-time monitoring service, and when being canceled in the service of monitoring or be unavailable, in the routing address table
Corresponding informance be updated.
7. framework according to claim 1, it is characterised in that the ISP includes the calculating in cloud management platform
Module and mixed-media network modules mixed-media.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611265027.9A CN106686094A (en) | 2016-12-30 | 2016-12-30 | Micro-service architecture |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611265027.9A CN106686094A (en) | 2016-12-30 | 2016-12-30 | Micro-service architecture |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106686094A true CN106686094A (en) | 2017-05-17 |
Family
ID=58849645
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611265027.9A Pending CN106686094A (en) | 2016-12-30 | 2016-12-30 | Micro-service architecture |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106686094A (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107770243A (en) * | 2017-09-06 | 2018-03-06 | 北京奥鹏远程教育中心有限公司 | From extension, adaptive micro services platform and its application process |
CN108200146A (en) * | 2017-12-29 | 2018-06-22 | 华南理工大学 | A kind of micro services framework implementation method of lightweight |
CN108282368A (en) * | 2018-01-24 | 2018-07-13 | 云宏信息科技股份有限公司 | A kind of micro services management system, method and computer storage media |
CN108449312A (en) * | 2018-01-31 | 2018-08-24 | 北京奇艺世纪科技有限公司 | A kind of method for converting protocol, device, system and gateway |
CN109327503A (en) * | 2018-08-27 | 2019-02-12 | 珠海格力电器股份有限公司 | Information management system and method, service router |
CN109450820A (en) * | 2018-11-09 | 2019-03-08 | 浙江大学 | A kind of service switch and service network system of service-oriented network |
CN109587071A (en) * | 2018-11-30 | 2019-04-05 | 北京工业大学 | Micro services load-balancing method based on SDN |
CN109951528A (en) * | 2019-02-21 | 2019-06-28 | 中国工商银行股份有限公司 | Support method for processing business, the apparatus and system of more deployment modes |
CN110781441A (en) * | 2019-12-31 | 2020-02-11 | 帷幄匠心科技(杭州)有限公司 | New retail business middle desk based on micro-service framework |
CN111901238A (en) * | 2020-07-09 | 2020-11-06 | 中移(杭州)信息技术有限公司 | Dynamic routing service method, device, electronic equipment and storage medium |
CN114928635A (en) * | 2021-02-02 | 2022-08-19 | 嘉联支付有限公司 | Micro-service calling method and related equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1567835A (en) * | 2003-06-09 | 2005-01-19 | 华为技术有限公司 | Distributed cluster service management system and service management method in intelligent network |
CN101217521A (en) * | 2008-01-08 | 2008-07-09 | 北京邮电大学 | A semantic telecommunication network capability service gateway component, network system and work method |
CN101272281A (en) * | 2008-04-22 | 2008-09-24 | 北京邮电大学 | System and method for providing network service relating to four parties |
CN104506486A (en) * | 2014-11-15 | 2015-04-08 | 北京锐安科技有限公司 | Software service interface calling method and system with high security levels |
-
2016
- 2016-12-30 CN CN201611265027.9A patent/CN106686094A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1567835A (en) * | 2003-06-09 | 2005-01-19 | 华为技术有限公司 | Distributed cluster service management system and service management method in intelligent network |
CN101217521A (en) * | 2008-01-08 | 2008-07-09 | 北京邮电大学 | A semantic telecommunication network capability service gateway component, network system and work method |
CN101272281A (en) * | 2008-04-22 | 2008-09-24 | 北京邮电大学 | System and method for providing network service relating to four parties |
CN104506486A (en) * | 2014-11-15 | 2015-04-08 | 北京锐安科技有限公司 | Software service interface calling method and system with high security levels |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107770243A (en) * | 2017-09-06 | 2018-03-06 | 北京奥鹏远程教育中心有限公司 | From extension, adaptive micro services platform and its application process |
CN108200146A (en) * | 2017-12-29 | 2018-06-22 | 华南理工大学 | A kind of micro services framework implementation method of lightweight |
CN108200146B (en) * | 2017-12-29 | 2020-10-27 | 华南理工大学 | Method for realizing lightweight microservice architecture |
CN108282368A (en) * | 2018-01-24 | 2018-07-13 | 云宏信息科技股份有限公司 | A kind of micro services management system, method and computer storage media |
CN108449312A (en) * | 2018-01-31 | 2018-08-24 | 北京奇艺世纪科技有限公司 | A kind of method for converting protocol, device, system and gateway |
CN109327503A (en) * | 2018-08-27 | 2019-02-12 | 珠海格力电器股份有限公司 | Information management system and method, service router |
CN109450820B (en) * | 2018-11-09 | 2020-07-07 | 浙江大学 | Service switch facing service network and service network system |
CN109450820A (en) * | 2018-11-09 | 2019-03-08 | 浙江大学 | A kind of service switch and service network system of service-oriented network |
CN109587071A (en) * | 2018-11-30 | 2019-04-05 | 北京工业大学 | Micro services load-balancing method based on SDN |
CN109587071B (en) * | 2018-11-30 | 2022-07-05 | 北京工业大学 | Micro-service load balancing method based on SDN |
CN109951528A (en) * | 2019-02-21 | 2019-06-28 | 中国工商银行股份有限公司 | Support method for processing business, the apparatus and system of more deployment modes |
CN110781441A (en) * | 2019-12-31 | 2020-02-11 | 帷幄匠心科技(杭州)有限公司 | New retail business middle desk based on micro-service framework |
CN111901238A (en) * | 2020-07-09 | 2020-11-06 | 中移(杭州)信息技术有限公司 | Dynamic routing service method, device, electronic equipment and storage medium |
CN114928635A (en) * | 2021-02-02 | 2022-08-19 | 嘉联支付有限公司 | Micro-service calling method and related equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106686094A (en) | Micro-service architecture | |
US10735553B2 (en) | Micro-services in a telecommunications network | |
CN104850450A (en) | Load balancing method and system facing mixed cloud application | |
CN110198307A (en) | A kind of selection method of mobile edge calculations node, apparatus and system | |
CN103312528B (en) | A kind of heartbeat message sending method and user terminal | |
CN110086886B (en) | Dynamic session holding method and device | |
CN110933180A (en) | Communication establishing method and device, load equipment and storage medium | |
CN106612196B (en) | Obtain the method and device of resource | |
US11218536B2 (en) | Processing data and operating a communications device | |
CN104539558B (en) | Extendible capacity IP phone interchanger rolling reamer machine system and automatic expansion method | |
CN108768878A (en) | A kind of SiteServer LBS, method, apparatus and load-balancing device | |
RU2008138577A (en) | NETWORK SYSTEM | |
Buyakar et al. | Prototyping and load balancing the service based architecture of 5G core using NFV | |
US20110153826A1 (en) | Fault tolerant and scalable load distribution of resources | |
CN105791147B (en) | The connection method of load balancer, the instantiation dispositions method of business and device | |
US11075850B2 (en) | Load balancing stateful sessions using DNS-based affinity | |
CN108401080A (en) | Control method of attending a banquet and system | |
CN114024968B (en) | Message sending method and device based on intermediate equipment and electronic equipment | |
JP5505170B2 (en) | Processing apparatus, processing method, and communication system | |
JP6825702B2 (en) | Gateway device, message transmission method and program | |
CN107528884B (en) | User request processing method and device of aggregation server | |
CN106302216A (en) | A kind of method and system of Network Load Balance | |
CN109561170A (en) | Address pool creation method, device, address pool management system and storage medium | |
JP6524559B2 (en) | System and method for telephony over the internet | |
JP5541477B2 (en) | Voice communication system and terminal registration method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170517 |
|
RJ01 | Rejection of invention patent application after publication |