Design and Implementation of Hot-swappable Plugin for Enterprise API Gateway
Order to solve the problems of traditional API gateways with weak scalability and inability to hot update under the mi-croservice 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.