Podcast Platform 00:00:01 A podcast upload stalls inside a train tunnel An independent reporter uploads a long interview and loses signal halfway through. Design an illustrative podcast host where one episode can remain a draft while its large audio object resumes in parts. Title, time, season. The key makes a repeated request return the same draft. The episode has an id and belongs to this show. 85 MB in 11 parts of about 8 MB, three at a time. The first six accepted parts survive this interruption. The client can reconcile the server's stored parts when connectivity returns. Ask which parts exist, send 7 to 11. State and job message commit together. Give the episode, upload session and media object separate identities. That makes it possible to retry a missing part without publishing a second episode or changing the identity that subscribers will later remember. 00:00:58 Publish one coherent edition of the feed At nine the reporter schedules publication. Listeners should read either the earlier complete feed or the new complete feed. An interrupted rewrite must not leave every subscriber with malformed XML. The scheduler finds due episodes by an index. Two schedulers may look; the condition lets one win. Persist the published state, new feed version and publication work together in this design. The builder reads show and episodes at one moment. Parse again. GUIDs and URLs of old episodes must be unchanged, and audio must answer. Only upwards. Keep the episode identifier stable across feed versions, validate the generated document, then move the published pointer according to the storage system's consistency contract. Publication is a separate step from private processing. 00:01:50 The listener asks whether anything changed A podcast app periodically checks the subscription. Most checks find no new episode. A conditional HTTP request can avoid retransmitting an unchanged document, provided the validator and caches represent the current feed. The app sends the version it knows. An unchanged validator can yield status three hundred four and no feed body. Storage returns version 8. No database is involved. The app sees an unknown GUID, shows it, and may download it. When a genuinely new episode identifier appears, the app can present it without treating every edited description as another release. Feed identity and the audio enclosure's delivery address solve different problems. 00:02:35 One downloaded minute may involve overlapping requests A listener seeks backwards and the app requests some of the same byte range again. A raw count of HTTP requests can no longer stand in for episode downloads. Work under a declared counting policy. 500 KB are not enough yet. The overlapping byte intervals cover the first thousand kilobytes only once in this example. A known robot fetched everything. Removed, with the reason kept. Another app fetched 100 KB when a page opened. Inside 24 hours of the counted one. Merge overlapping ranges before applying the selected eligibility rules. A preload, a retry and a second qualifying listening occasion have different meanings. Explain the reporting window and privacy assumptions alongside the count. 00:03:21 A worker dies at the publish boundary The audio processor finishes work but stops before acknowledging its queue item. Another worker eventually receives the same episode. Predict which side effects must be made safe to repeat. The lease is not extended. After the lease the job is visible, and another worker takes it. The output has the same content name. The state moves from processing to ready one time. Reuse the durable episode and output identities. Verify what was already completed, then perform the guarded ready transition once. The interview can survive interrupted upload, a repeated worker and a subscriber polling at the worst possible moment.