Font Size: a A A

Research And Implementation Of Image Access Mechanism For Mobile Terminals

Posted on:2018-11-01Degree:MasterType:Thesis
Country:ChinaCandidate:L J NiuFull Text:PDF
GTID:2348330515973782Subject:Computer Science and Technology
Abstract/Summary:PDF Full Text Request
With the vigorous development of Internet technology,some large-scale social networking sites such as Facebook,Tencent,and some large-scale electric business platforms such as Taobao,Jingdong,need more and more picture services.Then these large sites need 100 billion level of storing and managing for images.At the same time mobile terminal has deeped into people's lives,and mobile social App has been widely used.In the mobile social APP often also use a lot of picture resources,such as WeChat friends circle,Instagram picture sharing and so on.How to support such a large-scale image storage and processing has become an urgent problem to be solved.View the picture in the App will consume more network traffic,affecting the loading speed,therefore,according to the characteristics of the mobile side,most of the App first display thumbnails,according to user needs to load the original map strategy.On the server,caching techniques are used to speed up the thumbnail generation and reduce the I/O of the disk.However,current cache mechanism concerns more about the cache access frequency,last access time and other factors,without focusing on social relationships between users,and the different access modes when the mobile users access the thumbnails and the original pictures.So,this paper associates the influence of the users in the social network with the cache object,and associates the cached object of the original image with the cached object of the thumbnail.The main work of the paper includes the following four aspects:Firstly,this paper divides the buffer area into two parts by analyzing the thumbnail and the original image:the thumbnail buffer and the original buffer.And then analyzed the data characteristics of the cache,the definition of a different cache object model.Secondly,this paper has defined different formulas of cache value for the different buffer area,and introduced the calculation formula of the cache value in detail.With the cache value formula,the formula of user influence in the social network and LRU value is defined.This paper proposes a image cache replacement algorithm based on social relations according to the caching object model.The algorithm add social relationships among users and relationships between thumbnails and original pictures to the traditional cache replacement algorithm,and replace the cache objects by computing the cache value.Thirdly,with the project background,this paper has designed and implemented the web server for the images.The server provides an easy-to-use interface for the client and is easy to be used in the image storage system.Fourthly,at the end of this paper,designed a reasonable simulation experiment to verify,and then analyze the results of the experiment.The experiment shows that the cache replacement strategy can provide hit rate.
Keywords/Search Tags:Distributed File System, Image Server, Thumbnail Cache Buffer, Original Cache Buffer
PDF Full Text Request
Related items