Load Balance multiple RTMP Servers to Horizontally Scale Streaming (Node Media Server and HAProxy)
In this video I will show case the new Node Media Server , a Node JS implementation of an RTMP server used for streaming setup. I will show how to install and spinup an RTMP server and stream to it from OBS. Then I will spin up multiple ones, then I’ll show how to relay the stream to multiple RTMP servers and finally I will use HAProxy to load balance the stream consumption to achieve high availability.
Configurations
https://github.com/hnasr/javascript_playground/tree/master/rtmp
Node Media Server
https://www.npmjs.com/package/node-media-server
0:00 Intro
2:00 Single RTMP Server
6:00 Multiple RTMP Servers
7:00 Relay Server
12:00 Load Balancing RTMP Servers
🎙️Listen to the Backend Engineering Podcast
https://husseinnasser.com/podcast
🏭 Backend Engineering Videos
https://backend.husseinnasser.com
💾 Database Engineering Videos
🏰 Load Balancing and Proxies Videos
🏛️ Software Archtiecture Videos
📩 Messaging Systems
Become a Member
https://www.youtube.com/channel/UC_ML5xP23TOWKUcc-oAE_Eg/join
Support me on PayPal
https://bit.ly/33ENps4
Join our Thriving Backend Community on Discord
https://discord.com/invite/CsFbFce
Stay Awesome,
Hussein
by Hussein Nasser
linux ftp server