Performance evaluation of Websocket protocol for implementation of full-duplex web streams
Dejan Škvorc, Marko Horvat, S. Srbljic · International Convention on Information and Communication Technology, Electronics and Microelectronics · 2014
Besides traditional synchronous HTTP request-response communication paradigm that was used on the Web for decades, modern Web services require more flexible communication system that enables asynchronous messaging between clients and servers, as well as server-initiated data delivery. Among several Web-based asynchronous communication paradigms emerged recently, the Websocket protocol and corresponding Websocket API are accepted as a pivotal framework for implementation of full-duplex asynchronous Web streams. In this paper, we evaluate the performance of the Websocket protocol with respect to underlying TCP protocol. We compare the two against the latency and amount of generated network traffic. The results show that, except a small overhead imposed due to initial handshaking, Websocket-based communication does not consume any more network traffic than plain TCP based communication. However, it is still slightly inferior in terms of latency.
Cited by 42 works. doi:10.1109/mipro.2014.6859715
Authors
References
- The WebSocket Protocol
- HTTP: The Definitive Guide
- Known Issues and Best Practices for the Use of Long Polling and Streaming in Bidirectional HTTP
- The Definitive Guide to HTML5 WebSocket
- Comet and Reverse Ajax: The Next-Generation Ajax 2.0
- Socket overloading for fun and cache-poisoning
- Evaluation of WebSocket Communication in in Enterprise Architecture