Font Size: a A A

Design And Implementation Of General Gateway Platfrom Based On SPP Micro Thread Framework

Posted on:2022-04-17Degree:MasterType:Thesis
Country:ChinaCandidate:L HeFull Text:PDF
GTID:2518306605989989Subject:Master of Engineering
Abstract/Summary:PDF Full Text Request
With the continuous development of computer technology,Internet Gateway Technology iterates rapidly.As the core management layer of micro service,gateway service acts as the service agent of multi-level service,which can achieve the functions of unified access and business isolation.At present,the main technologies of API gateway at home and abroad include general nginx reverse proxy,netty network programming framework or API gateway framework,For example,spring cloud gateway.But there are also some problems to be solved,such as how to achieve unified protocol access,how to achieve load balancing of service routing,how to monitor and manage all service interfaces.In order to solve these problems,it is urgent to propose and build a general gateway platform to solve the problem of disadvantageous management caused by the decentralization of micro services,realize the effective monitoring of services,and provide a variety of plug-ins to meet the specific needs of some services.And with the rise of micro services,based on its low business coupling,strong load capacity,clear service boundary,and spp micro thread framework receives the thread space created by the message,and is controlled by the user mode process,and the context switching cost is small,the general gateway platform will use spp framework to build micro service cluster.This topic comes from the enterprise internal reconstruction project "high reusability protocol unified access service".This project is based on the internal open source micro thread framework spp to build a special protocol access layer for external third parties or other BGS.The general gateway platform includes internal authentication,account system conversion,protocol dynamic conversion,load balancing,module monitoring,log reporting and other functional modules,The functions of microservice dynamic expansion,high concurrency,low coupling,dynamic fault detection,rapid reporting and rapid response are realized(1)Design and implement load balancing module.According to the functional requirements of the platform in routing and forwarding,aiming at the problems of a large number of service access and high QPS peak after the general gateway platform was officially launched in the later stage,the customized design of load balancing algorithm and node fusing function was carried out to reduce the pressure of the service group of the called party,and automatically fusing and traffic grooming under abnormal conditions.(2)Design and implement protocol conversion and authentication module.Through the analysis of protocol format,the specific protocol conversion function is provided,and the login and call permissions of users are controlled.(3)Design and implement the service monitoring and log reporting module.Through the collection and analysis of system service resources of hard disk.After statistical analysis,the service nodes are rated to provide decision-making for the load balancing module to adjust the weight of nodes.At the same time,the exception log is reported and the concerned person is notified.In the test section,the function of the general gateway platform is tested and deployed.The service function runs normally,and the machine load and monitoring have no obvious jitter.At present,the general gateway platform has been online.Through the dynamic expansion module,the service can be deployed quickly when the exception is handled.At the end of the paper,the shortcomings and optimization points of the general gateway platform are summarized,and the future development direction is prospected.
Keywords/Search Tags:Microservice gateway, load balancing, protocol conversion, service monitoring, Micro thread
PDF Full Text Request
Related items