摘要
当前云计算平台中往往会包含若干个子系统,各个子系统要求的API格式是不一样的,而且有些子系统的API格式完全不符合RestfulAPI格式。这就造成了云计算平台需要分别调用各个子系统的API,且每个系统的API调用需要做个性化的处理,无形中增加了开发人员的开发时间和学习成本,同时也增加了云计算平台的运营和维护成本。针对这一问题,基于接口网关KONG设计并实现了一套API集成系统。该API集成系统会转发云计算平台中的所有请求,并在转发请求的过程中会将不符合Restful格式的API转成Restful格式的API,方便云计算平台用统一的方式来调用不同系统的API。测试结果表明,API集成系统可以完成API集成的功能,将非Restful格式的API转为Restful格式。
The current cloud computing platform often contains several subsystems,each subsystem requires different API format,and some subsystem API format is completely not in line with the Restful API format.This is why the cloud computing platform needs to call the API of each subsystem separately,and the API call of each system needs to be personalized,which increases the development time and learning cost of developers virtually,and also increases the operation and maintenance cost of the cloud computing platform.In order to solve this problem,through the interface gateway KONG,a set of API integration system is designed and implemented.The API integration system will forward all the requests in the cloud computing platform,and in the process of forwarding the requests,the API that does not conform to the Restful format will be converted to the Restful format API,making it convenient for the cloud computing platform to call the APIs of different systems in a unified way.The test shows that the system can complete the API integration function and convert the non-restful API to Restful format.
作者
张虎
张秋萍
ZHANG Hu;ZHANG Qiu-ping(Shandong Provincial Key Laboratory of Computer Networks,Qilu University of Technology (Shandong Academy of Sciences),Shandong Computer Science Center (National Supercomputer Center in Jinan),Jinan 250000,China)
出处
《计算机技术与发展》
2019年第8期102-106,共5页
Computer Technology and Development
基金
山东省重点研发计划项目(2017GGX10130)