摘要
为了解决微服务架构下传统API网关扩展能力弱、无法热更新等问题,对API网关扩展性进行研究分析,引入热插拔机制来实现企业API网关热插拔插件,同时,提出了一种企业API网关热插拔插件解决方案。实验结果表明,所提出的API网关的热插拔插件方案在支持网关插件热更新的同时不会对API网关的整体性能造成影响,也不会对业务功能的稳定性造成影响。目前,企业API网关已经在几十家大型企业得到应用,提供了身份鉴权、限流限速、协议转换、请求改写等30余种热插拔插件。通过企业API网关彻底解决了原有API网关无法热更新、热部署、难扩展等问题,减少了40%的重复开发工作,节省了30%运维成本,为企业API网关的进一步发展和应用提供了有益的参考,也为构建高效、安全、可扩展的企业API网关提供了新的思路。
Order to solve the problems of traditional API gateways with weak scalability and inability to hot update under the microservice architecture,this paper studies and analyzes the scalability of API gateways and introduces a hot-swappable mechanism to realize hot-swappable plugins for enterprise API gateways.At the same time,a hot-swappable plugin solution for enterprise API gateways is proposed.Experimental results show that the proposed solution will not affect the overall performance of the API gateway or the stability of business functions when supporting hot update of gateway plugins.At present,the enterprise API gateway has been applied in dozens of large enterprises,providing more than 30 kinds of hot-swappable plugins such as identity authentication,current and speed limiting,protocol conversion,and request rewriting.The enterprise API gateway completely solves the problems of the original API gateway being unable to be hot updated,hot deployed,and difficult to expand,reducing 40%of repeated development work,and saving 30%of operation and maintenance costs.It provides a useful reference for the further development and application of enterprise API gateways.It also provides new ideas for building efficient,secure,and sca-lable enterprise API gateways.
作者
王盛义
WANG Shengyi(College of Electronic and Information Engineering,Tongji University,Shanghai 201804,China)
出处
《计算机科学》
CSCD
北大核心
2024年第S01期784-790,共7页
Computer Science
基金
国家重点研发计划(2022YFB3305700)。