Font Size: a A A

Design And Implementation Of Yogo System Based On Cache And Load Balancing

Posted on:2020-09-13Degree:MasterType:Thesis
Country:ChinaCandidate:M LiuFull Text:PDF
GTID:2428330578451966Subject:Computer technology
Abstract/Summary:PDF Full Text Request
With the continuous improvement of living standards,people's consumption patterns are constantly changing.Compared with the limitations of shopping out in terms of time and geography,e-commerce can bring users a more convenient and faster online consumption experience.In China,the growth of the number of netizens and the popularity of mobile terminals continue to drive the development of e-commerce.According to statistics,on the 11th of November 2018,Taobao's transaction volume reached 213.5 billion yuan.The number of user requests that e-commerce systems need to process is increasing,and the processing of services is becoming more and more complex.Traditional e-commerce systems have some limitations.First of all,the traditional e-commerce system has high coupling between functional modules and fixed framework,which is difficult to adapt to changing functional requirements.In addition,the traditional e-commerce system uses a server,and the number of interfaces is limited.When the user accesses the system,the server connection interface is continuously occupied,so that other users cannot connect.Finally,traditional e-commerce system's servers have limited processing power,and it is very easy to down when dealing with a large and complex business.In order to avoid the these problems,this paper designs and implements an e-commerce system called Yogo system based on cache technology and load balancing technology.The Yogo system uses the idea of Service-Oriented Architecture to divide the system into functional modules.Then the system uses the service interface to interact between modules,which can reduce the coupling between system modules and can reserve interfaces to facilitate extended development.In addition,the Yogo system establishes a front-end cluster,a single sign-on cluster,an order cluster,a cache cluster,and a search cluster as servers,which increases the number of user connections and server processing performance of the system.The front-end page of Yogo system is completed by JSP,jQuery,CSS+DIV technology.The Yogo system background uses load balancing technology to complete the distribution of requests,which increases the system's concurrent processing capabilities.The Yogo system uses caching to cache data,which reduces the system's response time of requests.In the implementation process,Nginx acts as a reverse proxy and load balancing server,which balances the pressure of the back-end server.In addition,a Redis cluster is built between the server and the database as a cache container to improve the system's response efficiency to requests.This paper uses J Meter to test the Yogo system based on cache technology and load balancing technology.In order to test the impact of caching technology and]oad balancing technology on system performance,this paper also tested the system with two methods:a system with cache and no load balancing and a system with no cache and load balancing.The conclusions are drawn by comparing the response time of requests,throughput and response error rate of the three systems.According to the test results,the Redis cache can greatly reduce the system's response time of requests and increase the throughput.Nginx load balancing will increase the system's response time of requests to a certain extent,and greatly reduce the response error rate of requests.Through testing,after the Redis cache and Nginx load balancing are implemented in the Yogo system,the system can guarantee the low response error rate of requests and short response time of the requests.The entire system can meet the system requirements and achieve the purpose of design.
Keywords/Search Tags:e-commerce systems, cache, load balancing, cluster
PDF Full Text Request
Related items