cta-wave / common-media-server-data

A repository to collect discussion and feedback on the Common Media Server Data proposal.
21 stars 1 forks source link

Clarification around pre caching #16

Closed kevleyski closed 1 year ago

kevleyski commented 2 years ago

(again feedback/concern from the CMSD introductory presentation)

Question/Comment: There could be some significant charges due to pre-caching content - e.g. pulling all variants, init + first segment and so on?

Answer: pre caching is of course optional, but shouldn’t include all variants, only the ones your player suggests it might need

wilaw commented 1 year ago

Your answer is correct. Prefetching (precaching) is optionally implemented by the CDN. Some CDNs charge additional for prefetched content (by charging for midgress traffic), other only charge for egress traffic. Given that the prefetched content is also cached, it only represents an additional charge if it is never requested. So if there is a sufficiently large population of players pulling from an edge, prefetching all bitrates would happen naturally. None-the-less, players are not recommended to pull all bitrates to the edge. A reasonable strategy would be to always pull the lowest bitrate to the edge. This provides a fast bail-out option for players suffering throughput loss , while minimizing midgress traffic abd edge cache space.