Real-Time Web Application Roadblock: Performance Penalty of HTML Sockets
HTML socket streams, such as XHR-polling and HTML5 web-sockets, are being rapidly embraced because they operate over HTTP(S) protocols and ports, allowing them to easily traverse security firewalls and HTTP proxies, unlike raw TCP streams. This paper presents an active measurement study of these protocols and compares their performance to raw TCP. The authors' results indicate that HTML socket streams impose significant performance penalties with respect to protocol overhead (up to 5x), data payload delivery delay (up to 3x more), and throughput (up to 3x less). The performance divide between HTML socket streams and TCP is particularly severe for the more important case of small data payload sizes (100s of bytes).