How to scale WebSockets to millions of connections
WebSockets are hard to scale, it's true. The stateful connection that makes them so powerful for two-way realtime communication also makes them tricky to load balance efficiently, but that isn't to say it can't be done. In this video, Alex Booker (@bookercodes) from Ably runs you through the technical challenges scaling WebSockets before outlining the patterns used to scale WebSockets to thousands of concurrent connections and beyond. Theoretically, the approach to system design outlined in this video can scale to millions of concurrent WebSocket connections in a production environment. ABOUT ABLY 👋 Ably is an enterprise-grade pub/sub messaging platform. We make it easy to efficiently design, quickly ship, and seamlessly scale critical realtime functionality delivered directly to end-users. Every day, we deliver billions of realtime messages to millions of users for thousands of companies. TIMESTAMPS ⏰ 00:00 Introduction 00:16 Why WebSockets are hard to scale 01:33 Why WebSocket benchmarks are misleading 03:03 Options for scaling WebSockets 03:32 Introduction to vertical scaling 04:14 Challenges with vertical scaling WebSockets 06:30 Horizontal scaling 07:40 Horizontal scaling continued 09:55 Challenges with horizontal scaling WebSockets 11:38 Conclusion LINKS MENTIONED 🔗 The WebSocket hand book (free WebSocket book): https://hubs.la/Q01ZQm6Z0 Guide to HTTP long polling: https://hubs.la/Q01ZQnM20

How to use WebSockets with React and Node

How I would SCALE WebSocket system in 2026 (Architecture deep dive) | Hindi

7 Authentication Concepts Every Developer Should Know

Networking Essentials for System Design Interviews w/ Ex Meta Senior Manager

Airline Booking System Design: The Interview Question Everyone Gets

Ably 101: Serverless WebSockets at Scale

99% of Developers Don't Get Sockets

A Beginner's Guide to WebSockets

Kubernetes Zero to Hero: The Complete Beginner’s Guide (2025 Edition)

How to Setup Secure WebSockets with NestJs

System Design Explained: APIs, Databases, Caching, CDNs, Load Balancing & Production Infra

Model Context Protocol (MCP), clearly explained (why it matters)

Why Every Developer Needs to Understand WebSockets

System Design Course – APIs, Databases, Caching, CDNs, Load Balancing & Production Infra

WebSockets Crash Course - Handshake, Use-cases, Pros & Cons and more

Webhooks vs Websockets vs HTTP Streaming - Which Event-Driven API to use?

WebSockets Aren’t as Reliable as You Think.. Here's Why

HTTP Polling vs SSE vs WebSocket vs WebHooks

How Sockets Actually Work – From Your Browser to the Backend ⚙️

