摘要
由于用户对Web信息实时性要求的提高,实时Web应用开始被广泛关注,基于各种服务器推送技术的实时Web应用解决方案被提出并广泛应用。然而这些解决方案都存在系统资源消耗大等方面的问题,有待进一步的改进和完善。该文介绍了当前较为广泛应用的两种基于HTTP协议的实时Web应用方案,即基于Ajax的长轮询方式和基于Iftame的流方式,并分析了这两种方案存在的不足。在对HTML5标准中的WebSocket协议进行深入分析的基础上,该文提出了一种基于WebSocket协议的实时Web解决方案,目的是大幅提升实时服务性能,并更高效地利用网络负载和服务器端的处理能力。
Due to the improving demands on instantaneity of web information, real-time web applications is beginning to cause wide- spread interest, and a lot of real-time web applications based on server-push technology has been proposed and used widely. Though these solution are effective, all those solutions suffer from problems such as great resource consumption; there is much space for improvement. This paper introduces two popular HTTP protocol based real-time web application solutions, that is, tong polling based on Ajax and streaming based on Iframe, and analysis their weaknesses. With an in-depth study on WebSocket protocol in HTML5 standard, this paper proposes a WebSocket protocol based real-time web application solution, aiming at improving the service instantaneity on a large scale, and more efficiendy using the network capacity and processing power of the server
作者
温照松
易仁伟
姚寒冰
WENG Zhao-song,YI Ren-wei,YAO Han-bin (1 .Wuhan Construction Project Trading Center,Wuhan 430023,China;2.Wuhan Uinversity of Technology,Wuhan 430063,China)
出处
《电脑知识与技术》
2012年第6期3826-3828,共3页
Computer Knowledge and Technology
基金
武汉理工大学自主创新研究基金资助(2011-IV-081)