摘要
【目的】研究WebSocket的特性,设计缓存式的Web应用框架。【方法】分析划出框架各层次的职责,采用Javascript及memcached实现实时的缓存读写机制,对框架开发的系统进行指标测试。【结果】在系统测试中检测缓存的命中率,当用户的操作浏览数据达到一定的比例之后,缓存命中率能够维持在一个较高的水平上。在这种情况下,服务器的响应速度、网络吞吐量等都得到极大的改善。【结论】基于框架开发的系统实时性高、负载低、伸缩性好,降低系统的开发成本与难度。
[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 de-fined. 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.
出处
《广西科学院学报》
2014年第1期32-34,38,共4页
Journal of Guangxi Academy of Sciences
关键词
WEB缓存
应用框架
WebSocket
WebSocket
Web cache
application framework
作者简介
宁君(1984-),男,助理工程师,主要从事软件工程、云计算、平台应用研究。