3 ms·
Don’t use webrtc for live video. It doesn’t scale with CDNs. Use dash/hls.
by cflat 8y ago
Don’t use webrtc for live video. It doesn’t scale with CDNs. Use dash/hls.
- jwandborg 8y agoCould you elaborate on why WebRTC wouldn't "scale with CDNs"?
- inglor 8y agoWebRTC is stateful whereas dash/hls are HTTP based and stateless - caching with HTTP is easy and CDNs have a ton of infrastructure on the internet to support it. Caching with WebRTC is very hard - even for a single second - since every connection is stateful.
- whadar 8y agoPeer5 uses webrtc datachannels and runs on top of existing dash/hls streams
- cflat 8y agostill doesn't scale efficiently. http based streaming is the only reliable way to get economies of scale. The cpu cost per webrtc socket is high compared to a cache-hit for a static resource. Not to mention that WebRTC is way more cpu intensive client side compared to hls/dash which has kernel/hardware offloading.