Font Size: a A A

Research And Implementation Of Caching Strategy In "Gaining Customers In Finance" System Based On Android

Posted on:2020-06-10Degree:MasterType:Thesis
Country:ChinaCandidate:Q R WenFull Text:PDF
GTID:2428330602951050Subject:Software engineering
Abstract/Summary:PDF Full Text Request
With the rapid development of mobile Internet technology and the great abundance of mobile terminal equipment,mobile applications are widely used in all walks of life,which can help people improve work efficiency and quality of life.This paper analyzes the limitations of current mobile devices,starting from the problem that the “Gaining Customers in Finance” is completely unavailable when the network is disconnected,and the access delay is high when the amount of accessing data is large,and wastes traffic when accessing the same interface multiple times,studies and implements the caching strategy in “Gaining Customers in Finance” based on the Android platform,so as to improve the performance of the system and improve the user experience.Firstly,this paper analyses the problems of data access delay and waste of traffic in “Gaining Customers in Finance” caused by the limitations of mobile devices,and the caching strategy can solve these problems well,which leads to the necessity of researching the caching strategy.Secondly,this paper introduces the relevant theories and technologies needed to study the cache management strategy and design and implement the target system,including mobile database SQLite,classical cache management strategy and caching process model,as well as Android development technology and client-server data synchronization technology,etc.Next,this paper studies and designs the caching strategy in “Gaining Customers in Finance” system,which mainly includes three aspects,firstly,according to the characteristics of mobile device and “Gaining Customers in Finance” service data,designing data prefetching strategy based on list order and user access habits;secondly,a cache replacement algorithm with minimum replacement cost is designed based on the design idea of classic cache replacement strategy;thirdly,the consistency guarantee scheme of cache data in mobile environment is given.On this basis,according to the characteristics of mobile devices' memory and cached data,this paper designs the overall architecture of “Gaining Customers in Finance”,and then the cache management strategy studied in this paper is applied in the system,the detailed design and implementation of the caching strategy of three representative modules in the system are introduced in detail.In the experimental testing stage,this paper designs some experiments to test the system in terms of interface display and performance.In the aspect of system interface display,this paper compares the effects of interface display of main modules before and after adding caching strategy,which shows that the caching strategy can obviously improve the user's visual experience.In the aspect of system performance testing,firstly,it tests the flow consumption and access delay of the whole client before and after adding caching strategy,and the results show that the cache strategy designed in this paper can save 24% of network traffic and nearly 1/3 of user waiting time.Then,the cache replacement algorithm designed in this paper is tested in terms of traffic consumption and cache hit rate.the results show that the replacement strategy in this paper can reduce nearly 6% traffic consumption compared with LRU and is more suitable for mobile applications.Finally,this paper tests the impact of data prefetching on cache efficiency and finds that it has a good performance in reducing user waiting time.Through the above tests,it finds that the caching strategy studied in this paper has the conclusions of improving the availability,efficiency,immediacy and saving of mobile network traffic of the “Gaining Customers in Finance” system,which can provide better services for bank staff and business promoters.
Keywords/Search Tags:caching strategy, data prefetching, cache replacement, consistency
PDF Full Text Request
Related items