|
|
|
|
|
by lazide
941 days ago
|
|
Those are 100x (or more) more expensive than what YouTube’s backend is doing. To do what they do affordably, there are tons of caching layers and videos are chunked into smaller opaque chunks of write-once/read-many data which get so widely distributed your head would spin. The client code is what stitches those blocks together (and figures out what blocks are part of what), figures out what ads should be where, etc. Any sort of consistent backend state gets very expensive fast, is often a huge bottleneck, and is avoided whenever possible. Everything from view stats to metadata is usually even done via CRDT type eventually consistent replicated data to avoid all the bottlenecks other approaches would cause. |
|