The interface number of a tiny e-commerce project reaches 300-500,and there are more than 1000 interfaces for a large project.A mature Internet company owns dozens of business lines,each of which includes several items,the number of interfaces for an enterprise is million-level.These interfaces themselves are a kind of intangible asset,which also applies to the interfaces with a life cycle.Therefore,it is extremely significant to strengthen interface management in product designation,development,and test as well as the performance improvement for operation and management.Under such a backdrop,taking into account current status of interface at home and abroad as well as enterprise conditions,we put forward the improved idea of integrating private clouds with interface platform.On the basis of defining the technical features and docker,we make an analysis of interface platform based on private clouds from function and non-function demand,make comparison with similar platforms and service inside enterprise.Under a comprehensive consideration of all scenes and usage habits,an improved adjustment is made to interface platform on function and performance,after summing up,6 functions of interface platform are formed,namely configuration management,interface management,mock data,execution plan,statistical report and disaster recovery backup.The interface platform is a unified universal tool in the enterprise,using python as the main development language,DjangoREST is deployed with Docker.System selects MongoDB,and use MongoEngine driver.Being clear about system architecture,the essay discuss virtualization and containerization of private cloud,and introduce private clouds initiative based on Docker,and it is essentially a workflow with Docker at its core,including managed code,auto-construction,and managed private image,container establishment,and dynamic load.The writer use docker swarm ingress and LVS to balance load,conduct online hotfix by docker stack,and make continuous integration with Gitlab-CI connected with Runner.Between development and production environment,the idea of DevOps is perfectly implemented in practice with container technology as a bridge.Finally,this paper calculates the benefits and effects of the interface platform after being put into production,and tests the scheme,system effect and business requirement through the test of the specific business items of the enterprise. |