-->
Have you voted in the 2020 Streaming Media Readers' Choice Awards? Vote Now!

How to Scale with WebRTC

See more videos from Streaming Media East Connect on the Streaming Media YouTube channel.

Learn more about WebRTC at Streaming Media West 2020.

Read the complete transcript of this clip:

Chris Allen: The thing that people will usually tell you is that WebRTC doesn't scale. And that's absolutely true. If you look at it from a traditional standpoint, it was originally built as a peer-to-peer protocol, which inherently doesn't scale well. But what we do is we use cloud instances. As you can see in this diagram, we've got origin instances. On AWS there'd be EC2 instances. The incoming streams go into origins, they get fanned out to edges, and then subscribers are connecting to those edges. Then, to get a massive concurrency, we put relays in the middle, which allows extra capacity one origin would be able to handle on its own. This is how you can get millions of concurrent viewers using cloud.

The brains of the operations is this thing called the Stream Manager, which is routing the streams. Broadcasters connect to it, and get assigned an origin. Subscribers connect to it, and get assigned an edge to subscribe to that stream. And it takes care of auto-scaling. It can move up and down and add instances as needed depending on the load.

We also have a unique approach to ABR. Our system will actually re-react and send the correct data down based on this REMB message, which is happening over the WebRTC protocol. And probably more interesting is that we can actually leverage multiple cloud systems to get a really nice global coverage. So if one cloud provider is not gonna cover the regions you're looking to hit, then you can mix and match them. And we do this using Terraform, which is kind of this general API. It allows you to tap into just about any cloud network, which also includes private networks. So you can have your private cloud connecting to public cloud for excess capacity and everything else.

Streaming Covers
Free
for qualified subscribers
Subscribe Now Current Issue Past Issues
Related Articles

The Streaming Toolbox: Valossa, Signiant, and Red5 Pro

This month, we look at tools for content recognition, file transfer, and low-latency WebRTC streaming

What's Next for WebRTC in 2020

CosMo Software Consulting Founder & CEO Dr. Alex Gouaillard rolls out predictions for WebRTC technology in 2020 in this clip from his Video Engineering Summit presentation at Streaming Media East 2019.

WebRTC Deployment Basics

CosMo Software Consulting Founder & CEO Dr. Alex Gouaillard discusses the non-realtimeness of WebRTC encoders and how Netflix and others compensate on the decoding end in this clip from his Video Engineering Summit presentation at Streaming Media East 2019.

SME '19: Red5 Pro’s Chris Allen Talks WebRTC and Ultra-Low- Latency Streaming at Scale

Streaming Media's Tim Siglin and Red5 Pro CEO Chris Allen discuss peer-to-peer, WebRTC, and sub-500ms latency at million-streams scale on the show floor at Streaming Media East 2019.

SME 2018: Red5 Pro's Chris Allen Talks Ultra-Low Latency Large-Scale Streaming

Streaming Media contributing editor Tim Siglin interviews Red5 Pro CEO & Co-Founder Chris Allen at Streaming Media East 2018.

Companies and Suppliers Mentioned