Ever wonder how location tracking on your favourite delivery application worked? Or how some websites were able to display real-time data in a matter of Zeptoseconds?

Photo by Christian Wiediger on Unsplash

Alright, maybe information isn’t displayed that quickly but on average a single WebSocket request (using Socket.io) takes around 83 milliseconds compared to 107 milliseconds for an HTTP request. This may not seem like a significant difference but once we start examining the time it takes for multiple parallel requests, the time difference becomes striking.

WebSockets allow us to build real-time features by establishing a two way connection between a client and a server.


Galit Gerasimov

Full-stack web developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store