| In recent years,microservices architecture is exceptionally hot,and even for the construction of micro-service Netflix,Dubbo,Spring Cloud and other product communities have become increasingly active.In short,the micro-service is a complete application from the data storage to the business logic development vertical cut into a number of different services.Each service has its own independent life cycle and service boundaries,and can be independently deployed,independent Maintenance,independent expansion.Services communicate with each other by a unified style and protocol API.At the same time,the popularity of Docker’s container technology has also accelerated the process of micro-service popularity.In this paper,the basic idea of the micro service architecture and the core principles of Docker container technology are studied firstly.Then paper introduced the more popular micro-framework Spring Boot,and the subject of all the services developed are based on Spring Boot development.This paper chooses the product model of private apartment and private car in the shared economy as the business development direction.Based on Spring Cloud,the system divided the system into four independent business services: product service,order service,customer service and public service.Using Eureka to do service discovery,using Zuul to do routing gateway,using Feign to do load balancing,and the project used Docker container to deploy all services.Based on the above technical architecture,the entire private apartment and private car rental system was successfully developed using the Java language and successfully passed the functional and performance tests,which basically achieved the intended design. |