Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>> but bandwidth costs are, modulo volume discounts, very linear, and thus a direct per-viewer-minute line item

We need something like bit torrent for video, where the peers send chunks biased toward the beginning of the video. This would spread the bandwidth costs to the viewers. Sure, the main site might be constantly streaming 1 or 2 full streams, but that can be fairly low bandwidth.



It's possible. I have my doubts, for a few reasons; as with most technical challenges, it's a deeper problem than most people realize.

1) Orchestration of this is not trivial, and creates new points of centralization. Who runs your moral equivalent of a tracker/DHT? How do they keep the lights on for your relatively niche video? There are social differences between the infrastructural audiences of BitTorrent and a hypothetical general-purpose video tracker. If the idea is that everyone runs their own, you're getting into latency-sensitive problems of coordination (and given the push towards static sites, make me ask "do we expect people to have the capacity to do this?") that strike me as tricky given the requirements of video streaming.

2) This assumes that clients are both willing and able to do peer-to-peer transfers. I wouldn't bet on it.

3) This assumes that clients keep old chunks around for the purpose of peer-to-peer transfers (and don't evict things when under memory/storage pressure) and adequately update the tracker with what it has available at all times. I wouldn't bet on that being a reasonable assumption.

4) This assumes clients are reliable and have reliable upload. If you don't get a chunk from that peer client fast enough or that client disappears before you can handshake with another one and get that chunk, you have a video drop. Video drops are a game-over condition in 2021. Which probably seems unfair to say, but something like this has to present a better solution for clients, not for content providers, and this strikes me as really not viable for clients. Otherwise, people leave.

Video is really, really hard. It wasn't until I built a pipeline myself (not a fancy one, either) that I realized how nasty it was. Slinging huge amounts of data around with stiff latency requirements seems to lend itself to more vertical scaling than this approach suggests.


That's actually something that PeerTube does and is enabled by default! It uses P2P Media Loader to have peers share HLS segments.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: