Lesson 5 of 15
41. Design Live Streaming at Scale (Live Cricket)

41.4 What do we store?

3 min read+10 XP
live segments object storage / origin, short retention (+ DVR window, e.g. 2 hours) playlists rolling: the latest N segments, rewritten every segment matches match_id, feeds, start time, status entitlements user → subscription / free access (cached heavily before the match) score events match_time, event, score text (from the official data feed)

Interviewer pushback:

  • "Why does the score carry match_time?" → So the app can show the score for the moment the viewer is watching, not for the real present, which may be 20 seconds ahead (41.9).

Memory code: "Sign the playlist once; let the edge check it; stamp every score with match time."