CN108512748A - A kind of implementation method of micro services gateway - Google Patents
A kind of implementation method of micro services gateway Download PDFInfo
- Publication number
- CN108512748A CN108512748A CN201810232909.8A CN201810232909A CN108512748A CN 108512748 A CN108512748 A CN 108512748A CN 201810232909 A CN201810232909 A CN 201810232909A CN 108512748 A CN108512748 A CN 108512748A
- Authority
- CN
- China
- Prior art keywords
- micro services
- services gateway
- service
- gateway
- cache server
- 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
- H04L12/00—Data switching networks
- H04L12/66—Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/069—Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
-
- 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
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
-
- 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/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/08—Protocols for interworking; Protocol conversion
Abstract
A kind of implementation method of micro services gateway, it is realized through 6 steps, 1, micro services gateway passes through service registration platform subscription service, 2, the flow control of micro services gateway is configured by the configuration center of service registration platform, authentication, protocol conversion template is to distributed cache server, 3, micro services gateway local cache server, which is updated by way of subscription from distributed cache server, to be configured, 4, daily record is sent to log server by micro services gateway by asynchronous mode, for log aggregation, and micro services log tracks are used as by the UUID that micro services gateway generates, realize the full link trace of micro services;The information of service is notified monitoring service by 5 micro services gateways by asynchronous mode, for being monitored as micro services daily record.For the present invention by micro services gateway, realizing prevents from exposing micro services interface, and the safety certification of package system, service access, has unified provisioning interface format, has reduced the difficulty of external agency's docking.
Description
Technical field
The present invention relates to computer internet application technology framework field, more particularly to a kind of realization side of micro services gateway
Method.
Background technology
Currently, the IT softwares of the traditional forms of enterprises are all piling up for various autonomous systems mostly, with the increasing of application software demand
Add, the memory for occupying host is increasing, causes the host-initiated time increasingly longer.When user starts application software, actually
Most of the time is tided in waiting, and production efficiency is caused to receive extreme influence.A problem is also that an application
For software in host when disparate modules generation resource contention, expanded function will become very difficult.Application software is in addition
One problem is reliability, when All hosts internal module all operates in a process, any one mould bug in the block,
Such as RAM leakage, it is likely to do the entire process that collapses;In addition to this, because all application software examples are all unique,
This bug will influence whether the reliability entirely applied.Based on above-mentioned, it can bring that Host Extensions are poor, reliability is not high, safeguard
Disadvantage of high cost.
In existing technology, there is a kind of software architecture based on SOA, a set of solution party is given specifically for the above problem
Case.But since SOA early stages have used mode bus, this mode bus to be bound by force with certain technology stack, such as:
J2EE.This causes the Legacy System of many enterprises to be difficult docking, and switching time is too long, and cost is too high, the receipts of new system stability
It holds back and is also required to some times.Final SOA seems very beautiful, but becomes enterprise-level luxury goods, and small and medium size companies are all awe-inspiring,
It cannot be widely used to promote.
In IT field, it is recently proposed micro services (micro services) concept, micro services architecture mode
The purpose of (Microservices Architecture Pattern) is to apply journey by large-scale, complicated, long-term running
Sequence is configured to one group of mutually matched service, and each service can be readily available local improving.Micro services eliminate bus
The SOA of framework belongs to the distributed software construction of decentralization, and powerful practicality, now, many renowned companies are in reality
It tramples and has used technique, such as Amazon, Google, FaceBook, Alibaba companies etc..
Framework based on micro services can have 10 to 100 or more services.It can be outside in API gateway use
Consumer provides unified entrance, and unrelated with the quantity of internal micro services and composition.API gateway has following advantage:1、
Internal concern is prevented to be exposed to external client;2, additional safe floor is added for micro services;3, mixed communication agreement is supported;4、
Reduce micro services complexity;5, micro services realize simulation and virtualization.Existing technology there are no a kind of gateway techniques can be effective
It applies in micro services, thus limitation is brought to the application of micro services.
Invention content
In order to overcome existing technology, there are no a kind of gateway techniques to apply in micro services, and office is brought to micro services application
Sex-limited drawback, the present invention provides by being based on the technologies such as distributed caching, asynchronous notifications, realize to prevent externally unification sudden and violent
Reveal micro services interface, and encapsulate the safety certification of system, service access etc., unify the unified format of provisioning interface,
The difficulty for reducing external agency's docking is provided simultaneously with distributed information log tracking and service monitoring capacity, keeps the Internet, applications big
Concurrently, high real-time, O&M have good extension, still can reach one kind of business even running under a large pressure in incognito
The implementation method of business gateway.
The technical solution adopted by the present invention to solve the technical problems is:
A kind of implementation method of micro services gateway, it is characterised in that realized through 6 steps, 1, micro services gateway passes through service
Register platforms subscription service, 2, the flow control of micro services gateway is configured by the configuration center of service registration platform, safety is recognized
Card mode, protocol conversion template to distributed cache server, 3, micro services gateway local cache server passes through subscription
Mode from distributed cache server update configure, 4, micro services gateway by asynchronous mode daily record be sent to daily record clothes
Business device, is used for log aggregation, and be used as micro services log tracks by the UUID that micro services gateway generates, realizes the complete of micro services
Link trace;The information of service is notified monitoring service by 5 micro services gateways by asynchronous mode, for being used as micro services daily record
Monitoring.
The micro services gateway can be that each channel includes that the ends PC and mobile terminal etc. are each provided with unified interface, micro services
Gateway and service register platforms keep long connection, by subscription service, obtain the usable interface of each service, micro services gateway is realized
Load balancing can load to each server for providing interface.
The micro services gateway can realize flow control, safety certification, protocol conversion, load balancing and request forwarding work(
Energy.
Present invention has the advantages that:By micro services gateway, realizing prevents externally unification from exposing micro services connects the present invention
Mouthful, and encapsulate the safety certification of system, service access etc., unify the unified format of provisioning interface, reduces outside
The difficulty of mechanism docking.The micro services gateway has distributed information log tracking and service monitoring capacity simultaneously.Based on the above, so
The application prospect that the present invention has had.
Description of the drawings
The present invention is described further below in conjunction with drawings and examples.
Fig. 1 is the flow diagram of micro services gateway realization method of the present invention.
Fig. 2 is the block schematic illustration of micro services gateway realization method of the present invention.
Fig. 3 is micro services gateway architecture schematic diagram of the present invention.
Specific implementation mode
Below in conjunction with the present invention, the technical solution in the present invention is clearly and completely described.
Shown in Fig. 1, a kind of implementation method of micro services gateway realizes, 1 that micro services gateway passes through service through 6 steps
Register platforms subscription service, 2, the flow control of micro services gateway is configured by the configuration center of service registration platform, safety is recognized
Card mode, protocol conversion template to distributed cache server, 3, micro services gateway local cache server passes through subscription
Mode from distributed cache server update configure, 4, micro services gateway by asynchronous mode daily record be sent to daily record clothes
Business device, is used for log aggregation, and be used as micro services log tracks by the UUID that micro services gateway generates, realizes the complete of micro services
Link trace;The information of service is notified monitoring service by 5 micro services gateways by asynchronous mode, for being used as micro services daily record
Monitoring.
Shown in Fig. 2, Fig. 3, micro services gateway can be that each channel includes that the ends PC and mobile terminal etc. are each provided with unified connect
Mouthful, micro services gateway and service register platforms keep long connection, by subscription service, obtain the usable interface of each service, in incognito
Business gateway realizes load balancing, can load to each server for providing interface.Micro services gateway can realize flow control,
Safety certification, protocol conversion, load balancing and request forwarding capability.
The present invention realizes anti-externally unified exposure micro services interface, and encapsulate the peace of system by micro services gateway
Full certification, service access etc., have unified the unified format of provisioning interface, reduce the difficulty of external agency's docking.Simultaneously
The micro services gateway has distributed information log tracking and service monitoring capacity.
It is the simplicity of explanation of some technical terms involved by the content of present invention below.1, micro services:It can be in " oneself
Program " in operation, and pass through " lightweight equipment with HTTP types API linked up ".2, distributed caching:By a server-side
It realizes management and control, there is multiple client node to store data, the reading rate of data can be further increased.3, UUID:
The number generated on a machine, it ensures that aerial all machines when same be all unique.
The present embodiment is preferred embodiments of the present invention, is not intended to limit the invention, all to be done in the present embodiment spirit
Any modification, equivalent substitution, improvement and etc. should all be included in the protection scope of the present invention.
Claims (3)
1. a kind of implementation method of micro services gateway, it is characterised in that realized through 6 steps, 1, micro services gateway is noted by servicing
Volume platform subscription service, 2, the flow control of micro services gateway, safety certification are configured by the configuration center of service registration platform
Mode, protocol conversion template to distributed cache server, 3, micro services gateway local cache server passes through subscription
Mode is updated from distributed cache server to be configured, and 4, daily record is sent to log services by micro services gateway by asynchronous mode
Device is used for log aggregation, and is used as micro services log tracks by the UUID that micro services gateway generates, and realizes the full chain of micro services
Road tracks;The information of service is notified monitoring service by 5 micro services gateways by asynchronous mode, for being supervised as micro services daily record
Control.
2. a kind of implementation method of micro services gateway according to claim 1, it is characterised in that micro services gateway can be each
Channel includes that the ends PC and mobile terminal etc. are each provided with unified interface, and micro services gateway and service register platforms keep long connection,
By subscription service, the usable interface of each service is obtained, micro services gateway realizes load balancing, can load to each offer
The server of interface.
3. a kind of implementation method of micro services gateway according to claim 1, it is characterised in that micro services gateway can be realized
Flow control, safety certification, protocol conversion, load balancing and request forwarding capability.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810232909.8A CN108512748A (en) | 2018-03-21 | 2018-03-21 | A kind of implementation method of micro services gateway |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810232909.8A CN108512748A (en) | 2018-03-21 | 2018-03-21 | A kind of implementation method of micro services gateway |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108512748A true CN108512748A (en) | 2018-09-07 |
Family
ID=63377777
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810232909.8A Pending CN108512748A (en) | 2018-03-21 | 2018-03-21 | A kind of implementation method of micro services gateway |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108512748A (en) |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109358880A (en) * | 2018-10-18 | 2019-02-19 | 行吟信息科技(上海)有限公司 | A kind of universal gateway configuration method and device |
CN109460223A (en) * | 2018-11-14 | 2019-03-12 | 沈阳林科信息技术有限公司 | A kind of API gateway management system and its method |
CN109672612A (en) * | 2018-12-13 | 2019-04-23 | 中国电子科技集团公司电子科学研究院 | API gateway system |
CN110113394A (en) * | 2019-04-19 | 2019-08-09 | 浙江数链科技有限公司 | API Calls method and apparatus |
CN110120946A (en) * | 2019-04-29 | 2019-08-13 | 武汉理工大学 | A kind of Centralized Authentication System and method of Web and micro services |
CN110535904A (en) * | 2019-07-19 | 2019-12-03 | 浪潮电子信息产业股份有限公司 | A kind of asynchronous push method, system and device |
CN110740187A (en) * | 2019-10-25 | 2020-01-31 | 家乡互动(厦门)网络科技有限公司 | micro service architecture realization method |
CN110995873A (en) * | 2019-12-27 | 2020-04-10 | 美的集团股份有限公司 | Gateway service interface discovery method, system, electronic device and storage medium |
CN111131397A (en) * | 2019-12-02 | 2020-05-08 | 北京海益同展信息科技有限公司 | Application management method and system, gateway platform, server and storage medium |
CN111447256A (en) * | 2020-03-05 | 2020-07-24 | 中国司法大数据研究院有限公司 | Cross-domain micro-service registration and release method and system based on file exchange |
CN111541561A (en) * | 2020-04-09 | 2020-08-14 | 珠海格力电器股份有限公司 | Microservice configuration information management system, microservice configuration information management method, microservice configuration information management server, and storage medium |
CN111586092A (en) * | 2020-03-25 | 2020-08-25 | 深圳壹账通智能科技有限公司 | Full link monitoring method, system and CAT client |
CN111711610A (en) * | 2020-05-21 | 2020-09-25 | 深圳竹云科技有限公司 | Authentication method, system and computing device based on micro-service architecture |
CN112104715A (en) * | 2020-08-31 | 2020-12-18 | 银盛支付服务股份有限公司 | Link tracking method and system based on microservice log |
CN112750044A (en) * | 2021-01-21 | 2021-05-04 | 天元大数据信用管理有限公司 | System and method for realizing risk compensation fund management based on micro-service |
CN113268309A (en) * | 2021-04-07 | 2021-08-17 | 中国电子科技集团公司第二十九研究所 | Military chess deduction system oriented to SaaS application mode |
CN113630310A (en) * | 2020-05-06 | 2021-11-09 | 北京农信互联科技集团有限公司 | Distributed high-availability gateway system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090288104A1 (en) * | 2008-05-19 | 2009-11-19 | Rohati Systems, Inc. | Extensibility framework of a network element |
US20150333979A1 (en) * | 2014-05-16 | 2015-11-19 | Centurylink Intellectual Property Llc | Network Services API |
CN106453288A (en) * | 2016-09-29 | 2017-02-22 | 上海和付信息技术有限公司 | Asynchronous mode supporting distributed micro service framework system and implementation method thereof |
CN107612955A (en) * | 2016-07-12 | 2018-01-19 | 深圳市远行科技股份有限公司 | Micro services provide method, apparatus and system |
EP3281168A1 (en) * | 2015-07-31 | 2018-02-14 | Hewlett-Packard Enterprise Development LP | Discovering and publishing api information |
-
2018
- 2018-03-21 CN CN201810232909.8A patent/CN108512748A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090288104A1 (en) * | 2008-05-19 | 2009-11-19 | Rohati Systems, Inc. | Extensibility framework of a network element |
US20150333979A1 (en) * | 2014-05-16 | 2015-11-19 | Centurylink Intellectual Property Llc | Network Services API |
EP3281168A1 (en) * | 2015-07-31 | 2018-02-14 | Hewlett-Packard Enterprise Development LP | Discovering and publishing api information |
CN107612955A (en) * | 2016-07-12 | 2018-01-19 | 深圳市远行科技股份有限公司 | Micro services provide method, apparatus and system |
CN106453288A (en) * | 2016-09-29 | 2017-02-22 | 上海和付信息技术有限公司 | Asynchronous mode supporting distributed micro service framework system and implementation method thereof |
Non-Patent Citations (1)
Title |
---|
谭一鸣: "基于微服务架构的平台化服务框架的设计与实现", 《中国优秀硕士学位论文全文数据库》 * |
Cited By (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109358880A (en) * | 2018-10-18 | 2019-02-19 | 行吟信息科技(上海)有限公司 | A kind of universal gateway configuration method and device |
CN109460223A (en) * | 2018-11-14 | 2019-03-12 | 沈阳林科信息技术有限公司 | A kind of API gateway management system and its method |
CN109672612A (en) * | 2018-12-13 | 2019-04-23 | 中国电子科技集团公司电子科学研究院 | API gateway system |
CN110113394A (en) * | 2019-04-19 | 2019-08-09 | 浙江数链科技有限公司 | API Calls method and apparatus |
CN110120946A (en) * | 2019-04-29 | 2019-08-13 | 武汉理工大学 | A kind of Centralized Authentication System and method of Web and micro services |
CN110535904A (en) * | 2019-07-19 | 2019-12-03 | 浪潮电子信息产业股份有限公司 | A kind of asynchronous push method, system and device |
CN110740187A (en) * | 2019-10-25 | 2020-01-31 | 家乡互动(厦门)网络科技有限公司 | micro service architecture realization method |
CN111131397A (en) * | 2019-12-02 | 2020-05-08 | 北京海益同展信息科技有限公司 | Application management method and system, gateway platform, server and storage medium |
CN111131397B (en) * | 2019-12-02 | 2022-09-30 | 京东科技信息技术有限公司 | Application management method and system, gateway platform, server and storage medium |
CN110995873A (en) * | 2019-12-27 | 2020-04-10 | 美的集团股份有限公司 | Gateway service interface discovery method, system, electronic device and storage medium |
CN111447256A (en) * | 2020-03-05 | 2020-07-24 | 中国司法大数据研究院有限公司 | Cross-domain micro-service registration and release method and system based on file exchange |
CN111447256B (en) * | 2020-03-05 | 2022-07-01 | 中国司法大数据研究院有限公司 | Cross-domain micro-service registration and release method and system based on file exchange |
CN111586092A (en) * | 2020-03-25 | 2020-08-25 | 深圳壹账通智能科技有限公司 | Full link monitoring method, system and CAT client |
CN111541561A (en) * | 2020-04-09 | 2020-08-14 | 珠海格力电器股份有限公司 | Microservice configuration information management system, microservice configuration information management method, microservice configuration information management server, and storage medium |
CN113630310A (en) * | 2020-05-06 | 2021-11-09 | 北京农信互联科技集团有限公司 | Distributed high-availability gateway system |
CN113630310B (en) * | 2020-05-06 | 2024-02-02 | 北京农信数智科技有限公司 | Distributed high-availability gateway system |
CN111711610B (en) * | 2020-05-21 | 2022-05-10 | 深圳竹云科技有限公司 | Authentication method, system, computing device and computer readable storage medium based on micro service architecture |
CN111711610A (en) * | 2020-05-21 | 2020-09-25 | 深圳竹云科技有限公司 | Authentication method, system and computing device based on micro-service architecture |
CN112104715A (en) * | 2020-08-31 | 2020-12-18 | 银盛支付服务股份有限公司 | Link tracking method and system based on microservice log |
CN112750044A (en) * | 2021-01-21 | 2021-05-04 | 天元大数据信用管理有限公司 | System and method for realizing risk compensation fund management based on micro-service |
CN113268309A (en) * | 2021-04-07 | 2021-08-17 | 中国电子科技集团公司第二十九研究所 | Military chess deduction system oriented to SaaS application mode |
CN113268309B (en) * | 2021-04-07 | 2023-07-21 | 中国电子科技集团公司第二十九研究所 | SaaS application mode-oriented chess deduction system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108512748A (en) | A kind of implementation method of micro services gateway | |
CN108449418B (en) | Hybrid cloud platform management system and method | |
CN111290865A (en) | Service calling method and device, electronic equipment and storage medium | |
CN110795486A (en) | Micro-service platform | |
CN108270855A (en) | A kind of method of platform of internet of things access device | |
CN106663033B (en) | System and method for supporting a wraparound domain and proxy model and updating service information for cross-domain messaging in a transactional middleware machine environment | |
WO2011144030A1 (en) | Cloud service consuming method, cloud service packet, cloud service broker and cloud system | |
JP2017507563A (en) | Entity handle registry to support traffic policy enforcement | |
CN102812744A (en) | Inter-working of EFM-OAM and CFM-OAM for mobile backhaul networks | |
CN106027534A (en) | System for implementing financial message processing based on Netty | |
CN101771724B (en) | Heterogeneous distributed information integration method, device and system | |
CN102375894A (en) | Method for managing different types of file systems | |
CN109597688A (en) | Online resource management method, device, storage medium and electronic equipment | |
CN105812241A (en) | Enterprise application integration method and system based on Spring Integration | |
Xu et al. | Mobile mashup: Architecture, challenges and suggestions | |
CN116828035A (en) | Data integration system based on cloud computing | |
CN105260179A (en) | Method for achieving flex and servlet interaction | |
Jo et al. | IoTivity-lite: Comprehensive IoT solution in a constrained memory device | |
US8533357B2 (en) | Mechanism for binding a structured data protocol to a protocol offering up byte streams | |
Kumari et al. | Experience sharing on SOA based heterogeneous systems integration | |
Corici et al. | An OpenMTC platform-based interconnected European–South African M2M Testbed for Smart City Services | |
US10069927B2 (en) | Facilitating an efficient exchange of streaming data constructs between origin and target systems while making remote procedure calls | |
Salami et al. | A FAIR Extension for the MQTT Protocol | |
US20240036834A1 (en) | Unified Desktop Computing System | |
CN101692644B (en) | Digital media adapter system applied in digital home |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20180907 |
|
WD01 | Invention patent application deemed withdrawn after publication |