移動Web客戶端持久化緩存技術研究
發(fā)布時間:2018-06-26 10:52
本文選題:移動Web + 客戶端緩存 ; 參考:《華中科技大學》2013年碩士論文
【摘要】:由于移動網絡帶寬低,延遲高,間歇性連通等缺點,Web用戶通過移動網絡與服務器交互獲取或提交數據時,可能出現響應延遲高,甚至網絡突然中斷導致的Web服務不可用?蛻舳司彺婕夹g是解決上述問題的有效手段,但是傳統的瀏覽器緩存機制在移動網絡下具有局限性:(1)瀏覽器單向緩存特性不能緩存其提交給服務器的數據,斷網提交數據丟失,提交操作延遲;(2)驗證機制要求瀏覽器必須獲取服務器驗證結果才能讀取緩存數據,網絡突然中斷將導致緩存數據不可用。 結合移動網絡下Web應用的特點,提出一種利用HTML5客戶端持久化存儲技術實現的Web客戶端持久化緩存方案。所提出的緩存采用HTML5中LocalStorage作為底層的存儲引擎,構建一個雙向緩存,為Web應用客戶端提供緩存對服務器讀取及提交數據的服務,部分解決移動網絡不穩(wěn)定造成的用戶無法讀取及提交數據的問題;設計一種基于消息機制的自適應一致性同步策略用于緩存數據的同步,在盡可能保證數據一致性的前提下,分階段提供不同一致性的數據窗口,,滿足不同Web應用或操作對數據一致性以及響應時間的差異需求。 在實驗室自主研發(fā)論文分享系統中,基于所提出的Web客戶端持久化緩存方案實現其移動客戶端應用。對移動客戶端測試結果表明,所提出的方案能解決突然斷網的情況下客戶端無法進行數據讀取和提交操作問題;基于消息機制的自適應一致性同步策略讓應用先使用緩存數據提供給用戶,待更新到來時再更新緩存數據提供給用戶;離線操作提交的數據先寫入緩存后合并提交到服務器的策略,相比于運用瀏覽器緩存機制離線無法提交數據待在線重新分次提交的策略,請求次數由多次合并為單次,消除多次連接造成的時間開銷,請求數據包由多個合并為單個,消除多個數據包頭造成的帶寬開銷。
[Abstract]:Because of the low bandwidth, high delay, intermittent connectivity and other shortcomings of mobile network, Web users may have high response delay when they interact with the server to obtain or submit data through the mobile network, and even the Web services caused by sudden network interruption may not be available. Client-side caching technology is an effective way to solve the above problems, but the traditional browser caching mechanism has limitations in mobile network: (1) browser one-way caching can not cache the data submitted to the server. (2) the authentication mechanism requires that the browser must obtain the server verification result to read the cached data, and the sudden interruption of the network will cause the cache data to be unavailable. According to the characteristics of Web applications in mobile networks, a Web client persistence cache scheme based on HTML5 client persistence storage technology is proposed. The proposed cache uses Local Storage in HTML5 as the underlying storage engine to construct a bidirectional cache to provide Web application clients with the service of cache reading and submitting data to the server. It partly solves the problem that users can not read and submit data caused by the instability of mobile network, and designs an adaptive consistency synchronization strategy based on message mechanism for cache data synchronization, which can ensure data consistency as much as possible. Different consistent data windows are provided in stages to meet the different requirements of data consistency and response time for different Web applications or operations. In the thesis sharing system, the mobile client application is realized based on the Web client persistent cache scheme. The test results of mobile client show that the proposed scheme can solve the problem that the client can not read and submit data when the network is suddenly cut off. The adaptive consistency synchronization strategy based on message mechanism enables the application to provide the user with cached data first and then update the cache data to the user when the update arrives. The policy that the data submitted offline is written to the cache first and then merged to the server. Compared with the policy that the data can not be submitted online and resubmitted by using the browser caching mechanism, the number of requests is changed from multiple times to a single time. The time cost caused by multiple connections is eliminated, and the request packets are merged into a single packet, and the bandwidth overhead caused by multiple data packet headers is eliminated.
【學位授予單位】:華中科技大學
【學位級別】:碩士
【學位授予年份】:2013
【分類號】:TP333;TP393.09
【參考文獻】
相關期刊論文 前1條
1 王世克;吳集;金士堯;;Web緩存技術概述[J];計算機與信息技術;2005年06期
本文編號:2070139
本文鏈接:http://sikaile.net/kejilunwen/jisuanjikexuelunwen/2070139.html