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

preview_player
Показать описание
In this video I want to demonstrate how to scale websockets connection to multiple servers using a load balancer such as HAProxy.

0:00 Intro
1:00 What are WebSockets?
2:40 WebSockets Scaling
7:44 Chat WebSocket App Code

* WebSockets
* WebSockets Scaling
* Live chat application (microservices)
* Demo

Source Code

🏭 Software Architecture Videos

💾 Database Engineering Videos

🛰 Network Engineering Videos

🏰 Load Balancing and Proxies Videos

🐘 Postgres Videos

🚢Docker

🧮 Programming Pattern Videos

🛡 Web Security Videos

🦠 HTTP Videos

🐍 Python Videos

🔆 Javascript Videos

Support me on PayPal

Become a Patreon

Stay Awesome,
Hussein
Рекомендации по теме
Комментарии
Автор

This hits a sweet spot between a few things: a complex topic like load balancing, docker and docker compose (just the tip), and sockets, all under a practical example. This is great. Thank you!

johnstorm
Автор

Really appreciate all that you have to offer! Good pace in presentation, interesting side notes, and keeping it fun. Thanks.

ZoraciousDCree
Автор

This is really awesome. My current company using websocket and still don't need to scale. But, it might be in the future, so I was checking around. You video explain very well. Thanks

YGNCode
Автор

Hi Hussein,

Thanks for making all these great videos, these days I used to check daily if you have uploaded any video or not. All your videos are very useful and answering lots of my doubts.

dearvivekkumar
Автор

I was really struggling with WebSocket scaling. Nicely explained!

DiaryOfMuhib
Автор

Really wonderful video, keep going !!
I love how you simplify the talk, and with a practical POC example !

jackykwan
Автор

Dude you have no idea how GLAD I am to have found this video! Amazing 😀

jongxina
Автор

By far one of the best channels I have ever subscribed to 👍

hoxorious
Автор

Very nice video, this provides a reasonable good depth of the architeture details of how to build a real time application, and especially how the redis (or any application can work as a broker) plays in this architectures. Thank you!

zcong
Автор

Such a quick powerful demo.
If you’re breaking Redis you’re already gonna need to be doing more advanced stuff than this haha.

ryanquinn
Автор

Your channel is fantastic Hussein, thanks for making such great content!

jackcurrie
Автор

You just solved one of my biggest problems...thanx a ton

lonewolf
Автор

Really appreciate the video! Perhaps can also cover the db design/optimization for a chat app?
I believe many interesting topics like sharding, and database selection can be covered; thanks and looking forward to future videos!

peterlau
Автор

I was looking for the same. You rock :)

rajatahuja
Автор

Brilliant. Inspirational. Thank you very much.

programmer
Автор

Hey Hussein, first of all, I need to say that I love your videos, they are very informative and very clear, even satisfatory for relaxing purposes kkkk relax while we learn :) Thank you for this video on websockets and redis. Could you please, explain how we could use this architecure to spin up a model handling? Let's supose a database to store all the messages and a central copy of the model, with disbributed copies of the model in each client. Then we would use the command pattern to alter the model based on commands, keeping a stack of commands, and maybe a snapshot to replay comands and have the ability do do and undo changes to the model. I'm facing this challenge right now and would love to hear from you on that.

letsflow.oficial
Автор

I wish I could get you as my senior developer.

mytheens
Автор

thank you, this video solve the big problem that I have

hichem
Автор

New Subscriber Here! Thanks for this awesome video!

earlvhingabuat
Автор

Good video and i enjoyed it. In your example you stored the connections in an array in the nodejs. Is this typically how real world application do or are there any patterns ? It would be nice to have tutorials on connection drop from a client and how things get cleaned up eventually on the server.

ragavkb