How is your stack wired – WebSockets

Deciding on the communication layer for your API driven projects (4/5)

Michael Gerzabek Michael Gerzabek on Sep 6, 2024

Now I can hear you. Where is the push facade of web protocols?

Well one answer to the increasing need for real-time web applications, such as online gaming, live chats, stock market tickers, and collaborative tools is WebSockets.

In 2008, Ian Hickson, an engineer at Google and one of the primary contributors to the HTML5 standard, proposed WebSockets as part of the HTML5 specification.

The goal was to enable a full-duplex communication channel over a single TCP connection between a client and server, where both can send messages to each other independently of any request/response cycle.

By 2011, the WebSocket protocol (RFC 6455) was standardized by the IETF (Internet Engineering Task Force), while the WebSocket API was standardized by the W3C (World Wide Web Consortium). This marked a major leap forward for enabling real-time communication on the web.

Main advantages offered by WebSockets:

Current Adoption:

Due to its benefits, WebSockets remain a crucial technology for bidirectional, real-time communication in web applications.

With the rise of other real-time communication protocols like Server-Sent Events (SSE) and HTTP/2, the landscape evolved.

Read on tomorrow, where we expand on SSE.

Michael Gerzabek

About the author

Michael Gerzabek works with engineering teams on system architecture and developer experience in complex SaaS environments.

He writes about the architectural decisions that keep systems understandable long after the first release.

→ Connect on LinkedIn

Stay Close to How We Think About Systems

I write occasionally about system architecture, developer experience, and how complex products stay coherent as they grow.

This is not a marketing newsletter.

It’s a continuation of the thinking behind articles like this one.

If that resonates, you’ll probably want to stay.

    We respect your privacy: read our privacy policy.