Skip to content
0:00 / 0:00

#websockets#redis#haproxy

Scaling Websockets with Redis, HAProxy and Node JS - High-availability Group Chat Application

Hussein Nasser

525K subscribers • 1 video on Hallway

YouTube
  • Recommended by 2 people: 2 in engineering communities.
  • Presented by Hussein Nasser
  • Linked in the descriptionhnasr/javascript_playground
  • May be out of date. Uploaded 6 years ago, in an area where tools change fast.

Intermediate. Assumes working knowledge.

116K views6 years ago2 recommendations

Distributed systemsWeb developmentNode.js, Deno and BunNetworking and protocolsScaling and large-scale architecture

Hussein Nasser demonstrates how to scale WebSocket connections horizontally using HAProxy as a load balancer and Redis pub/sub for message distribution.

In this video I want to demonstrate how to scale websockets connection to multiple servers using a load balancer such as HAProxy. Intro What are WebSockets? WebSockets Scaling Chat WebSocket App Code * WebSockets * WebSockets Scaling * Live chat application (microservices) * Demo Source Code github.com/hnasr/javascript_playground/tree/master/ws-live-c… 🏭 Software Architecture Videos youtube.com/playlist?list=PLQnljOFTspQXNP6mQchJVP3S-3oKGEuw9 💾 Database Engineering Videos youtube.com/playlist?list=PLQnljOFTspQXjD0HOzN7P2tgzu7scWpl2 🛰 Network Engineering Videos youtube.com/playlist?list=PLQnljOFTspQUBSgBXilKhRMJ1ACqr7pTr 🏰 Load Balancing and Proxies Videos youtube.com/playlist?list=PLQnljOFTspQVMeBmWI2AhxULWEeo7AaMC 🐘 Postgres Videos youtube.com/playlist?list=PLQnljOFTspQWGrOqslniFlRcwxyY94cjj 🚢Docker youtube.com/playlist?list=PLQnljOFTspQWsD-rakNw1C20c1JI8UR1r 🧮 Programming Pattern Videos youtube.com/playlist?list=PLQnljOFTspQV1emqxKbcP5esAf4zpqWpe 🛡 Web Security Videos youtube.com/playlist?list=PLQnljOFTspQU3YDMRSMvzflh_qXoz9zfv 🦠 HTTP Videos youtube.com/playlist?list=PLQnljOFTspQU6zO0drAYHFtkkyfNJw1IO 🐍 Python Videos youtube.com/playlist?list=PLQnljOFTspQU_M83ARz8mDdr4LThzkBKX 🔆 Javascript Videos youtube.com/playlist?list=PLQnljOFTspQWab0g3W6ZaDM6_Buh20EWM 👾Discord Server discord.gg/CsFbFce Support me on PayPal bit.ly/33ENps4 Become a Patreon patreon.com/join/hnasr? Stay Awesome, Hussein

Why it's here

2 people recommend this

What people say. Recommended as a helpful guide for understanding how to scale WebSockets and handle multi-server communication.

u/PhotographOne3127in r/node • Recommends

On “How does socket.io scale?”

This might help you :) link to this video

u/anurag_devin r/node • Recommends

On “What happpens to this function when there are 10000 people connected?”

See this It will help