Hacker News new | ask | show | jobs
by cflat 2928 days ago
Don’t use webrtc for live video. It doesn’t scale with CDNs. Use dash/hls.
2 comments

Peer5 uses webrtc datachannels and runs on top of existing dash/hls streams
still 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.
Could you elaborate on why WebRTC wouldn't "scale with CDNs"?
WebRTC 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.