Font Size: a A A

Design And Implementation Of Housing Rental Service System Based On Microservice Architecture

Posted on:2020-12-03Degree:MasterType:Thesis
Country:ChinaCandidate:Q LuoFull Text:PDF
GTID:2428330623959849Subject:Control engineering
Abstract/Summary:PDF Full Text Request
In the face of high housing prices,more and more people choose to rent their houses,and the market demand for housing rental service is increasing.A good housing rental service system can provide efficient housing rental service for tenants and effectively improve the market competitiveness of housing rental service agencies.In this paper,a housing rental service system based on microservice architecture is designed and implemented for selfoperated housing rental service agencies.In terms of system requirements,the development and research status of the housing rental service system are reviewed,and the self-operated housing rental model is chosen as the object of this project.In this model,the housing rental service agencies have the right to rent out houses directly to tenants,improving the efficiency of renting without third-party involvement.Based on the business background of self-operated housing rental service,the system requirements are analyzed in depth.The functional framework of the system is divided by the idea of domain-driven design,including user service,real estate service,order service,evaluation service and recommendation service.And non-functional requirements include security,usability,maintainability,and expandability.In terms of system architecture,the microservice architecture with strong scalability and low coupling is chosen for system architecture design and implementation.Based on the micro-service architecture,11 key points of architecture design and implementation are elaborated,including service splitting,registration and discovery,load balancing,etc.And Spring Cloud microservice development framework was used to implement service management for microservices architecture.It provides a complete solution for microservices system development,encapsulating multiple components to simplify system development.In terms of recommendation,a recommendation algorithm based on tag genome is proposed.In the housing rental service system,the algorithm,which is based on house feature tags,is essentially a content-based recommendation algorithm.In the algorithm,similar rooms are incorporated into the recommended results to solve the cold start problem of new users;and adding a small number of unpopular houses can increase the visibility and the diversity of recommended listings.In terms of designing and implementing business microservices,role-based access control model is applied to permission system,to decouple users and permissions and improve the flexibility of authority allocation;Json Web Token(JWT)is applied to solve the crossdomain identity authentication problem in distributed environment,combined with Redis cache to solve the problem that JWT expiration time cannot be changed;The state pattern in the classic design pattern is applied to the implementation of the order service,separating the changing states and consistent behaviors under specific states to solve the multi-state change problem of the order service;The function of nofitication for order status change is realized by referring to the observer pattern,increasing the flexibility of the systems to respond to changing business requirements.Finally,Docker container technology was used to solve the complex multi-instance deployment problem,realizing one-time construction for multi-instance deployment.Docker container takes less resources and has a quick startup,which improve the system running performance.The housing rental system successfully implements the system image construction and multi-container deployment in the cloud server.It runs smoothly and achieves the expected effect,with functions complete,code expansive and maintainable,and functional and non-functional requirements of the system completed.
Keywords/Search Tags:Housing rental service system, Microservices, Spring Cloud, Design Patterns, Recommendation algorithm, Docker
PDF Full Text Request
Related items