引用本文
  • 宁君,张蓉,梁正安.基于WebSocket的缓存式Web应用框架设计[J].广西科学院学报,2014,30(1):32-34,38.    [点击复制]
  • NING Jun,ZHANG Rong,LIANG Zheng-an.Design for Cache Web Application Framework Based on the WebSocket[J].Journal of Guangxi Academy of Sciences,2014,30(1):32-34,38.   [点击复制]
【打印本页】 【在线阅读全文】【下载PDF全文】 查看/发表评论下载PDF阅读器关闭

←前一篇|后一篇→

过刊浏览    高级检索

本文已被:浏览 304次   下载 374 本文二维码信息
码上扫一扫!
基于WebSocket的缓存式Web应用框架设计
宁君1, 张蓉2, 梁正安1
0
(1.广西计算中心, 广西南宁 530022;2.北京大学南宁附属实验学校, 广西南宁 530022)
摘要:
[目的]研究WebSocket的特性,设计缓存式的Web应用框架。[方法]分析划出框架各层次的职责,采用Javascript及memcached实现实时的缓存读写机制,对框架开发的系统进行指标测试。[结果]在系统测试中检测缓存的命中率,当用户的操作浏览数据达到一定的比例之后,缓存命中率能够维持在一个较高的水平上。在这种情况下,服务器的响应速度、网络吞吐量等都得到极大的改善。[结论]基于框架开发的系统实时性高、负载低、伸缩性好,降低系统的开发成本与难度。
关键词:  WebSocket  Web缓存  应用框架
DOI:
投稿时间:2013-11-24修订日期:2013-12-15
基金项目:
Design for Cache Web Application Framework Based on the WebSocket
NING Jun1, ZHANG Rong2, LIANG Zheng-an1
(1.Computing Center of Guangxi, Nanning, Guangxi, 530022, China;2.Nanning Experimental School Attached to Peking University, Nanning, Guangxi, 530022, China)
Abstract:
[Objective] The characteristics of WebSocket are studied and a cached Web application framework is designed.[Method] The function of every layer in the framework is analyzed and defined. Then indicators of the system developed under the framework are tested by applying a real-time cache read/write mechanism of Javascript and memcached.[Result] When the browed data reached a certain proportion, the cache hit rate could stay in a higher level during the system test, which greatly improved the server's respond speed and network throughput. [Conclusion] System developed under the framework shows the characteristics of high real-time control, low load, high scalability, low developing cost and difficulties.
Key words:  WebSocket  Web cache  application framework

用微信扫一扫

用微信扫一扫