计算机科学 ›› 2024, Vol. 51 ›› Issue (6A): 230800176-7.doi: 10.11896/jsjkx.230800176
王盛义
WANG Shengyi
摘要: 为了解决微服务架构下传统API网关扩展能力弱、无法热更新等问题,对API网关扩展性进行研究分析,引入热插拔机制来实现企业API网关热插拔插件,同时,提出了一种企业API网关热插拔插件解决方案。实验结果表明,所提出的API网关的热插拔插件方案在支持网关插件热更新的同时不会对API网关的整体性能造成影响,也不会对业务功能的稳定性造成影响。目前,企业API网关已经在几十家大型企业得到应用,提供了身份鉴权、限流限速、协议转换、请求改写等30余种热插拔插件。通过企业API网关彻底解决了原有API网关无法热更新、热部署、难扩展等问题,减少了40%的重复开发工作,节省了30%运维成本,为企业API网关的进一步发展和应用提供了有益的参考,也为构建高效、安全、可扩展的企业API网关提供了新的思路。
中图分类号:
[1]TAO H.In-depth understanding of Nginx:module development and architecture analysis[M].Mechanical Industry Press,2016:2-5. [2]ZHOU C,ZHOU X,DU J,et al.System Design and Implementation Based on K8s Microservice Architecture[C]//2022 4th International Conference on Applied Machine Learning(ICAML).IEEE,2022:433-438. [3]SONG M,ZHANG C,HAIHONG E.An Auto Scaling Systemfor API Gateway Based on Kubernetes[C]//2018 IEEE 9th International Conference on Software Engineering and Service Science(ICSESS).Beijing,China:2018:109-112. [4]MOREIRA P,RIBEIRO A,SILVA J M.AGE:Automatic Performance Evaluation of API Gateways[C]//2023 IEEE Symposium on Computers and Communications(ISCC).Gammarth,Tunisia:2023:405-410. [5]ZHAO J T,JING S Y,JIANG L Z.Management of API Gateway Based on Micro-service Architecture[J].Journal of Phy-sics:Conference Series,2018,1087:032032. [6]ZUO X,SU Y,WANG Q,et al.An API gateway design strategy optimized for persistence and coupling[J].Advances in Engineering Software,2020,148:102878. [7]December 2023 Web Server Survey[EB/OL].(2023-11-14)[2024-01-12].https://www.netcraft.com/blog/december-2023-web-server-survey. [8]LI X,FAN J W,WANG F Q.Design and implementation of API gateway system based on OpenResty platform[J].Informatization Research,2020,46(3):62-68. |
|