System Design on the Road

System Design on the Road

By System Design on the RoadTechnology
Download on the App Store

All System Design on the Road episodes

  • S2 E16 — Design a Collaborative Editor: CRDTs, Offline Edits, and Permissions

    One collaborator deletes a paragraph while another edits it offline. Daniel and Maya compare approaches to shared editing before developing local operations, durable acceptance, reconnect history, and snapshots.


    Concurrent insertion and deletion test convergence. A returning device whose access was revoked tests a different guarantee: an edit may be mergeable but no longer authorized. Busy documents, ownership, presence, and realistic recovery tests connect the operation model to what people experience while typing and reconnecting.


    Chapters

    00:00:00 Welcome and conflicting offline edits

    00:03:00 Requirements and collaboration approaches

    00:06:58 Local edits and durable operations

    00:10:35 Concurrent insertion and deletion

    00:15:20 Offline reconnection and revoked access

    00:19:31 Snapshots, ownership, and hot documents

    00:23:30 Convergence and recovery testing

    00:30:06 Final durability and permission guarantees


    Daniel is the interviewer, voiced by Liam. Maya is the engineer, voiced by Bella. AI narration at a calm pace, with three thinking pauses.


    Opening music: Stealth Groover by Kevin MacLeod (incompetech.com). Licensed under Creative Commons Attribution 4.0: https://creativecommons.org/licenses/by/4.0/ . Edited excerpt with EQ, volume automation, a smooth fade, and narration.

    34 min
  • S2 E15 — Design a Web Crawler: URL Scheduling, Deduplication, and Politeness

    A crawler has ten million queued URLs, but many point to one small website. Daniel and Maya design a frontier whose scheduling rules limit pressure on remote origins instead of letting queue size drive request volume.


    Discovery, deduplication, fetches, parsing, and publication form a complete path. Shared politeness, infinite calendars, changing pages, redirects, and hostile content test its limits. Recovery must preserve both accepted results and the permissions and timing rules governing the next fetch.


    Chapters

    00:00:00 Welcome and a crowded URL frontier

    00:02:56 Crawl scope and URL scheduling

    00:06:53 Discovery, fetch, parse, and publication

    00:10:51 Per-origin politeness across workers

    00:15:18 Crawl traps, revisits, and changing pages

    00:19:55 Untrusted content and bounded fetches

    00:23:52 Recovery, monitoring, and result publication

    00:30:19 Final frontier policy and recap


    Daniel is the interviewer, voiced by Liam. Maya is the engineer, voiced by Bella. AI narration at a calm pace, with three thinking pauses.


    Opening music: Stealth Groover by Kevin MacLeod (incompetech.com). Licensed under Creative Commons Attribution 4.0: https://creativecommons.org/licenses/by/4.0/ . Edited excerpt with EQ, volume automation, a smooth fade, and narration.

    34 min
  • S2 E14 — Design Ad Click Analytics: Deduplication, Late Events, and Reprocessing

    Yesterday's click count changes and an advertiser disputes the result. Daniel and Maya design an analytics pipeline that can explain which events were counted, which day they belong to, and which rules were used.


    Late events, duplicate processing, hot campaigns, and replay challenge the baseline. Event time and processing time answer different questions. Rebuilding historical aggregates requires preserving definitions as well as data, so a newly computed number is not silently presented as an equivalent measurement.


    Chapters

    00:00:00 Welcome and a disputed click count

    00:03:07 Event identity and counting contracts

    00:06:54 A click through the aggregation pipeline

    00:10:42 Event time, late data, and corrections

    00:15:14 Hot campaigns and duplicate processing

    00:19:13 Replay and versioned counting rules

    00:22:44 Cost, monitoring, and bounded recovery

    00:29:53 Final count and supporting evidence


    Daniel is the interviewer, voiced by Liam. Maya is the engineer, voiced by Bella. AI narration at a calm pace, with three thinking pauses.


    Opening music: Stealth Groover by Kevin MacLeod (incompetech.com). Licensed under Creative Commons Attribution 4.0: https://creativecommons.org/licenses/by/4.0/ . Edited excerpt with EQ, volume automation, a smooth fade, and narration.

    33 min
  • S2 E13 — Design a Payment System: Idempotency, Ledgers, and Reconciliation

    A provider charges a customer, but the payment service crashes before saving the answer. Daniel and Maya design recovery around durable payment identities and uncertain outcomes rather than treating a timeout as a declined charge.


    Provider attempts, idempotency, ledger entries, refunds, and payouts are connected in one lifecycle. A balanced ledger can still record the wrong business event. Reconciliation supplies independent evidence for missing or mismatched results, with controlled repair instead of an unexplained adjustment to a balance.


    Chapters

    00:00:00 Welcome and an uncertain charge

    00:03:08 Payment IDs, money, and lifecycle states

    00:07:05 A complete payment and its records

    00:11:32 Provider timeouts and idempotent recovery

    00:16:08 Ledger entries and business correctness

    00:20:44 Refunds, payouts, and new requirements

    00:24:49 Reconciliation and controlled repair

    00:30:44 Final money flow and interview recap


    Daniel is the interviewer, voiced by Liam. Maya is the engineer, voiced by Bella. AI narration at a calm pace, with three thinking pauses.


    Opening music: Stealth Groover by Kevin MacLeod (incompetech.com). Licensed under Creative Commons Attribution 4.0: https://creativecommons.org/licenses/by/4.0/ . Edited excerpt with EQ, volume automation, a smooth fade, and narration.

    34 min
  • S2 E12 — Design a Distributed Job Scheduler: Leases, Retries, and Cancellation

    A worker loses its lease, its replacement starts, and both eventually finish the same export. Daniel and Maya design a scheduler that distinguishes a job, a scheduled run, and an execution attempt.


    The flow follows durable scheduling, assignment, lease expiry, cancellation, and dependency recovery. Midnight bursts add fairness and missed-schedule decisions. Detecting an expired worker is only part of recovery: the design must also prevent that old worker from later publishing a result it no longer owns.


    Chapters

    00:00:00 Welcome and duplicate job completion

    00:03:17 Jobs, scheduled runs, and attempts

    00:07:11 A recurring job through the scheduler

    00:11:16 Leases, stale workers, and fencing

    00:16:00 Cancellation and dependency recovery

    00:19:57 Schedule bursts, fairness, and missed runs

    00:23:55 Monitoring and safe scheduler changes

    00:30:18 Result publication and final recap


    Daniel is the interviewer, voiced by Liam. Maya is the engineer, voiced by Bella. AI narration at a calm pace, with three thinking pauses.


    Opening music: Stealth Groover by Kevin MacLeod (incompetech.com). Licensed under Creative Commons Attribution 4.0: https://creativecommons.org/licenses/by/4.0/ . Edited excerpt with EQ, volume automation, a smooth fade, and narration.

    34 min
  • S2 E11 — Design Notifications and Webhooks: Retries, Deduplication, and Delivery

    The delivery system records one logical notification, but the customer receives two emails. Daniel and Maya trace durable intent through scheduling, workers, provider calls, acknowledgments, and retries to find the uncertainty.


    A slow webhook endpoint tests fleet fairness, while outbound requests introduce security boundaries. Local deduplication alone cannot erase an external side effect whose response was lost. Monitoring and repair tools provide a way to investigate an uncertain delivery before sending it again.


    Chapters

    00:00:00 Welcome and a duplicate email

    00:03:09 Delivery contracts and channel ownership

    00:06:50 Durable intent to provider delivery

    00:10:41 Lost acknowledgments and deduplication

    00:15:23 Slow endpoints and fair worker use

    00:20:05 Webhook security and outbound requests

    00:24:07 Monitoring, repair, and safe changes

    00:30:42 Final delivery flow and guarantees


    Daniel is the interviewer, voiced by Liam. Maya is the engineer, voiced by Bella. AI narration at a calm pace, with three thinking pauses.


    Opening music: Stealth Groover by Kevin MacLeod (incompetech.com). Licensed under Creative Commons Attribution 4.0: https://creativecommons.org/licenses/by/4.0/ . Edited excerpt with EQ, volume automation, a smooth fade, and narration.

    34 min
  • S2 E10 — Design a Distributed Rate Limiter: Token Buckets and Global Quotas

    A customer sends requests through three regions and stays below each local limit while exceeding the intended total. Daniel and Maya define the quota contract before choosing token buckets or counters.


    They build a regional limiter, spend its last credit concurrently, and lose an admission response. Global budgets, hot tenants, combined limits, and partitions force a choice between coordination and allocated capacity. The final design states its allowed error and failure policy alongside the algorithm.


    Chapters

    00:00:00 Welcome and a customer in three regions

    00:02:22 Defining quotas, windows, and errors

    00:05:55 A regional token-bucket limiter

    00:09:44 Last-token races and lost responses

    00:14:50 Global budgets during partitions

    00:21:51 Hot tenants and combined limits

    00:25:40 Failure policy, monitoring, and recovery

    00:29:13 Final rate-limit contract and recap


    Daniel is the interviewer, voiced by Liam. Maya is the engineer, voiced by Bella. AI narration at a calm pace, with three thinking pauses.


    Opening music: Stealth Groover by Kevin MacLeod (incompetech.com). Licensed under Creative Commons Attribution 4.0: https://creativecommons.org/licenses/by/4.0/ . Edited excerpt with EQ, volume automation, a smooth fade, and narration.

    33 min
  • S2 E09 — Design a Ride-Hailing System: Location Search and Driver Matching

    Two riders are offered the same nearby driver. Daniel and Maya design the path from location updates and geographic candidate search to an assignment that one authority can confirm.


    A driver's latest reported position is not a reservation of their time. Stale locations, simultaneous offers, offer expiry, and city-level ownership test that distinction. The interview follows matching under scale and network partitions, then reconstructs the final flow to show exactly who may promise a driver to a rider.


    Chapters

    00:00:00 Welcome and two riders, one driver

    00:02:42 Matching contracts and city ownership

    00:06:05 Location-to-assignment baseline

    00:09:21 Stale locations and candidate search

    00:14:59 Concurrent offers and driver assignment

    00:20:18 Scaling matching during partitions

    00:26:14 Monitoring and safe recovery

    00:29:47 Final assignment authority and recap


    Daniel is the interviewer, voiced by Liam. Maya is the engineer, voiced by Bella. AI narration at a calm pace, with three thinking pauses.


    Opening music: Stealth Groover by Kevin MacLeod (incompetech.com). Licensed under Creative Commons Attribution 4.0: https://creativecommons.org/licenses/by/4.0/ . Edited excerpt with EQ, volume automation, a smooth fade, and narration.

    33 min
  • S2 E08 — Design File Sync: Offline Edits, Conflicts, and Versioning

    Two laptops edit the same file offline and reconnect after a flight. Daniel and Maya design synchronization that recognizes both versions rather than silently choosing the later timestamp.


    Stable file identities, version relationships, local edits, and a durable change history establish the baseline. The interview then follows conflict detection and safe application of a remote version while local work continues. Chunks, storage reclamation, client rollouts, and recovery complete the path from one edit to a converged file history.


    Chapters

    00:00:00 Welcome and two offline edits

    00:02:52 File identity, paths, and versions

    00:06:55 A local edit through the sync service

    00:10:52 Detecting concurrent file versions

    00:15:51 Applying remote edits without data loss

    00:21:31 Chunks, storage, and garbage collection

    00:26:54 Client rollout, monitoring, and recovery

    00:30:26 Final conflict resolution and recap


    Daniel is the interviewer, voiced by Liam. Maya is the engineer, voiced by Bella. AI narration at a calm pace, with three thinking pauses.


    Opening music: Stealth Groover by Kevin MacLeod (incompetech.com). Licensed under Creative Commons Attribution 4.0: https://creativecommons.org/licenses/by/4.0/ . Edited excerpt with EQ, volume automation, a smooth fade, and narration.

    34 min
  • S2 E07 — Design a Video Platform: Uploads, Transcoding, and Playback

    A worker dies near the end of processing a large video. Daniel and Maya build a video platform that can retry useful work without publishing an incomplete playback result.


    The flow connects resumable uploads, object storage, transcoding attempts, renditions, manifests, and delivery. Queue pressure and scarce processing capacity introduce backpressure and fairness. The interview asks who may publish a completed version, how a viewer learns that it is ready, and what deletion and recovery must preserve.


    Chapters

    00:00:00 Welcome and a failed processing job

    00:02:48 Control services versus media delivery

    00:06:22 Upload, processing, and playback baseline

    00:10:06 Resumable uploads and safe retries

    00:15:08 Renditions and complete manifests

    00:20:53 Backpressure and fair transcoding

    00:27:25 Monitoring, rollouts, and deletion

    00:30:26 Final upload-to-playback flow


    Daniel is the interviewer, voiced by Liam. Maya is the engineer, voiced by Bella. AI narration at a calm pace, with three thinking pauses.


    Opening music: Stealth Groover by Kevin MacLeod (incompetech.com). Licensed under Creative Commons Attribution 4.0: https://creativecommons.org/licenses/by/4.0/ . Edited excerpt with EQ, volume automation, a smooth fade, and narration.

    34 min