Font Size: a A A

The Design And Implementation Of User Depository Based On Redis

Posted on:2018-03-10Degree:MasterType:Thesis
Country:ChinaCandidate:C P LiuFull Text:PDF
GTID:2348330515988523Subject:Engineering
Abstract/Summary:PDF Full Text Request
The distributed application has been developed rapidly nowadays in order to make full use of the distributed resources,realize load balancing and improve the performance of the system.The top business logic module and the bottom database are usually deployed independently for distributed applications,so how to obtain data from the database for the business logic module quickly and accurately becomes a noteworthy problem for distributed application.The traditional database can be used as a storage medium to achieve data persistence,but there will be many problems in practical use.On the one hand,the remote data transmission is time-consuming,which reduces the efficiency of business processing,and then the system performance will be affected.On the other hand,a large amount of simultaneous access operations cause great pressure on the database,which will result in database crash.In order to solve the problems mentioned above,this paper designs and implements a user repository based on the Redis,which caches the data in the local read database after reading it from remote database.It not only provides the service of querying data quickly by separating reading and writing operations,but also provides distributed cache service enabling all nodes in a region can share the same data.The main work of this paper is as follow:1)Researching user repository and Redis cache technology2)Describing the technical background of the system,including Redis cache and remote data distribution,etc.3)Completing requirements analysis and design,introducing the overall system architecture and detailed design of each functional module4)Describing the concrete implementations of the user repository,the key points and technical difficulties of each moduleThe user repository utilizes Redis as the memory database to realize the local cache,and realizes the distributed lock by Zookeeper.What's more,it also uses Datarelay to realize the remote data distribution.At present,the user repository has been developed completely and used in production.
Keywords/Search Tags:User repository, Redis, Zookeeper, Datarelay
PDF Full Text Request
Related items