Computer Science ›› 2024, Vol. 51 ›› Issue (6A): 230800176-7.doi: 10.11896/jsjkx.230800176

• Computer Software & Architecture • Previous Articles     Next Articles

Design and Implementation of Hot-swappable Plugin for Enterprise API Gateway

WANG Shengyi   

  1. College of Electronic and Information Engineering,Tongji University,Shanghai 201804,China
  • Published:2024-06-06
  • About author:WANG Shengyi,born in 1981,master,senior engineer.His main research interests include industrial software and industrial Internet platform.
  • Supported by:
    National Key Research and Development Program of China(2022YFB3305700).

Abstract: 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.

Key words: API gateway, Plugin, Hot-swappable, OpenResty, Nginx

CLC Number: 

  • TP311.1
[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.
[1] XIN Chao, QIAO Zi-jian and SUN Yan-chun. Cloud-based Notes Plugin for Video on Google Chrome [J]. Computer Science, 2017, 44(4): 60-65.
[2] QIAO Zi-jian, CHEN De-jian and SUN Yan-chun. Cloud-based Notes Plugin for Class on Google Chrome [J]. Computer Science, 2015, 42(12): 40-42.
[3] FU Kun,QIAN Wen-yi,PENG Xin and ZHAO Wen-yun. Feature Location Method Based on Call Chain Analysis [J]. Computer Science, 2014, 41(11): 36-39.
[4] . Expanded Application Framework Based on DirectUI [J]. Computer Science, 2012, 39(Z11): 295-300.
[5] ZHENG Xiao-mei. General Java Program Instrumentation Tool Based on Eclipse [J]. Computer Science, 2011, 38(7): 139-143.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!