摘要
现今有许多热门的即时通信相关的协议和技术,其中最受关注的有WebSocket协议和XMPP(The Extensible Messaging and Presence Protocol,中文:可扩展通讯和表示协议)协议。探讨了二者从通信协议到各自使用的服务器的联系和区别。WebSocket服务端的实现有Tornado,Jetty,Node.js等,其中Node.js以其异步非阻塞的特性引起了许多研究人员的关注。首先重点研究了其性能和优缺点,并且开发了一个简单的例子,进行测试。XMPP协议因为其标准化,是许多业内人士认为的即时通信协议发展的最终方向。客户端具有非常高的灵活性,从应用性上面来说非常强大。而Openfire是一个很好的开源的基于XMPP协议的服务器端的实现。最后提出了一些开放性的问题,给该话题的后续研究提供了一些好的方向。
Many popular IM(Instant Message) protocols have appeared in recent years, among which WebSocket and XMPP(The Extensible Messaging and Presence Protocol) attract most developers. This paper talked about these two protocols above and the servers of them. WebSocket is an absolute real-time protocol and we could use Tornado, Jetty, and Node.js to develop the server. As is known to all, Node.js develops rapidly for its asynchronous non-blocking properties. Because XMPP is standardizing, it is considered the ultimate direction of the IM protocol development. The client is flexible. Openfire is an open source server based on XMPP protocol and it is convenient to conifgure. In the end, the writer came up with a few open questions, which gave a direction for the follow-up research.
出处
《软件》
2013年第12期213-217,共5页
Software
关键词
计算机科学与技术
即时通信
评论
Node.js
XMPP
Computer Science and Technology
Instant Message
Comment
Node.js
XMPP