Font Size: a A A

The Design And Implementation Of High Availability API Gateway On Cloud Platform

Posted on:2024-01-10Degree:MasterType:Thesis
Country:ChinaCandidate:Y Z ZhangFull Text:PDF
GTID:2568307079971709Subject:Electronic information
Abstract/Summary:PDF Full Text Request
In recent years,with the updating and iteration of cloud computing hardware and software devices,application development architecture has also entered a new normal.Microservice architecture has been widely praised for its high flexibility,low coupling,and easy development,and microservice-related technologies have also developed fully.In the new market environment and demand,microservice architecture and container cloud cluster deployment provide stable and reliable solutions for high-concurrency and high-reliability business services.Container cloud technologies such as microservice cluster deployment,load balancing,and elastic scaling provide secure and reliable services,while the granularity of splitting each module of the system becomes finer and finer,and a complete service often needs to repeatedly call multiple microservice instance links.In this process,there may be duplicate authentication,log management,and service fusing work,which not only adds a lot of redundant code but also reduces execution efficiency.In addition,service interface updates and service replica expansion and contraction will also bring a lot of configuration maintenance costs.Therefore,this article designs a highly available API gateway to solve the above problems.Compared with the traditional gateway that develops and maintains a sub-gateway for each business or service,this API gateway integrates the global business of the system into the request entry point for all traffic,and adopts reactive programming to realize the automatic configuration and deployment of various components,greatly reducing service maintenance costs.On the vertical expansion of the gateway,it adopts Nettty highperformance asynchronous non-blocking network framework,reactive programming,request aggregation,caching mechanism,and fusing and downgrading modules to achieve high performance of the gateway’s monolithic operation.On the horizontal expansion of the gateway,based on Nginx dynamic proxy,Prometheus performance monitoring,and Kubernetes container orchestration,it provides load balancing,elastic scaling,gray updates,and other features for the API gateway,achieving high availability of the gateway in the cloud platform,and avoiding becoming a global performance bottleneck as a traffic entry point.Based on the existing private cloud platform,the gateway registration center,gateway computing power,automatic registration components,and high-availability deployment are designed for the gateway.The Nginx cluster serves as the entrance to the entire gateway service,reverse proxying the gateway instance deployed in the Kubernetes cluster,realizing traffic monitoring and elastic scaling.The gateway designed and implemented in this article has advantages over open-source API gateways in terms of business integration,deployment and maintenance,and overall performance.
Keywords/Search Tags:API Gateway, High Availability, Reactive Programming, Microservices, Kubernetes
PDF Full Text Request
Related items