Websocket adoption and the landscape of the real-time web Conference

Murley, P, Ma, Z, Mason, J et al. (2021). Websocket adoption and the landscape of the real-time web . 1192-1203. 10.1145/3442381.3450063

cited authors

  • Murley, P; Ma, Z; Mason, J; Bailey, M; Kharraz, A

abstract

  • Developers are increasingly deploying web applications which require real-time bidirectional updates, a use case which does not naturally align with the traditional client-server architecture of the web. Many solutions have arisen to address this need over the preceding decades, including HTTP polling, Server-Sent Events, and WebSockets. This paper investigates this ecosystem and reports on the prevalence, benefits, and drawbacks of these technologies, with a particular focus on the adoption of WebSockets. We crawl the Tranco Top 1 Million websites to build a dataset for studying real-time updates in the wild. We find that HTTP Polling remains significantly more common than WebSockets, and WebSocket adoption appears to have stagnated in the past two to three years. We investigate some of the possible reasons for this decrease in the rate of adoption, and we contrast the adoption process to that of other web technologies. Our findings further suggest that even when WebSockets are employed, the prescribed best practices for securing them are often disregarded. The dataset is made available in the hopes that it may help inform the development of future real-time solutions for the web.

publication date

  • April 19, 2021

Digital Object Identifier (DOI)

International Standard Book Number (ISBN) 13

start page

  • 1192

end page

  • 1203