
Sign up to save your podcasts
Or


When a message disappears, does that mean nobody can open it, that its stored bytes are erased, or both? Daniel and Maya define the clocks before designing the send and open paths.
Two devices compete to open the same message, a client reconnects after expiration, and backups complicate cleanup. The interview separates access decisions from asynchronous deletion and recovery. It also makes explicit which copies and observations the service cannot retract once a recipient has seen the content.
Chapters
00:00:00 Welcome and disappearing-message promises
00:03:00 Open deadlines versus deletion deadlines
00:06:45 Sending and opening a message
00:10:26 Concurrent opens from two devices
00:15:29 Expiration checks and delayed deletion
00:22:39 Offline devices, backups, and recovery
00:26:11 Timer-service operations and monitoring
00:29:52 Final access and deletion 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.
A photo uploads successfully but never becomes a visible post. Daniel and Maya design the lifecycle from direct upload and object storage through metadata, processing, and publication.
They trace retries across stores without a shared transaction, late workers, and failures between stages. An old image link remains after a photo becomes private, exposing a separate access-control problem. Scaling and processor changes must preserve the distinction between having bytes, publishing a photo, and allowing someone to retrieve it.
Chapters
00:00:00 Welcome and an unpublished photo
00:02:40 Upload, processing, and publication states
00:06:30 A photo from upload to display
00:11:48 Retries across metadata and object storage
00:17:25 Private photos and stale media links
00:23:07 Scaling storage and processing safely
00:26:45 Worker changes, monitoring, and recovery
00:29:47 Final upload-to-revocation 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.
One ordinary post is cheap to distribute. An account with a hundred million readers changes the workload. Daniel and Maya build a working news feed before comparing fan-out on write, fan-out on read, and a hybrid approach.
The interview then follows ranking changes while a reader scrolls, asking what pagination should preserve. Stale timelines and background backlogs test recovery. The final design ties its storage, ranking, and distribution choices to the experience seen by an author and a reader.
Chapters
00:00:00 Welcome and a celebrity post
00:02:40 Requirements and a working feed
00:06:37 Feed reads, candidates, and ranking
00:09:36 Celebrity traffic and hybrid fan-out
00:15:14 Stable pagination through changing ranks
00:20:41 Backlogs, stale feeds, and recovery
00:26:08 Metrics, rollouts, and design alternatives
00:29:10 Final post-to-reader flow 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.
A sender retries after losing a response, and a message appears twice. Daniel and Maya design a chat service that distinguishes durable acceptance from delivery to each recipient device.
They follow message identities, conversation ordering, offline history, reconnection, and group fan-out through a complete send. Slow recipients, privacy, and operational changes test the design. Sent, received, and displayed describe different events; the service needs evidence for each rather than treating an open socket as a delivery guarantee.
Chapters
00:00:00 Welcome and a duplicate message
00:02:50 Delivery contracts and conversation owners
00:06:36 A durable send from client to recipient
00:10:52 Message retries and conversation ordering
00:15:45 Offline devices, history, and group fan-out
00:21:14 Capacity, privacy, and slow recipients
00:25:27 Monitoring and changing the design
00:30:26 Final message 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.
Two customers select the same seats. One starts paying, loses the response, and sees a charge without tickets. Daniel interviews Maya as they build a booking service around seat ownership, temporary holds, orders, and payment attempts.
The design follows competing reservations, expired holds, delayed requests, and uncertain provider responses. A large on-sale event adds admission control and overload. Entering checkout does not itself prove that seats have been sold, and a payment timeout is not proof that a charge failed.
Chapters
00:00:00 Welcome and a disputed ticket purchase
00:00:57 Seat inventory and checkout contracts
00:04:46 Holds, orders, and a successful purchase
00:08:55 Concurrent seat claims and expiration
00:16:10 Uncertain payments and recovery
00:24:44 On-sale traffic and admission control
00:29:07 Consistency across the booking lifecycle
00:33:35 Final purchase 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.
A short link is disabled in the database, but customers still reach its destination. Why? Daniel interviews Maya as they design a URL shortener and trace the decisions that make that promise difficult to keep.
They begin with requirements, traffic estimates, APIs, and a working redirect path. Then they examine competing code reservations, retries after a lost response, viral links, and stale caches. The design must stop redirects within one minute of disabling a link—even during a database outage.
Listen for the distinction between a unique code and an idempotency key, why copying a cache entry must not reset its freshness deadline, and when returning an error protects a correctness guarantee. Three thinking pauses let you consider the interview questions before Maya answers.
Chapters
00:00:00 Welcome and the disabled-link problem
00:01:06 Requirements, scale, and disable deadline
00:05:12 APIs, data model, and redirect behavior
00:10:04 Unique codes and idempotent creation
00:17:50 Hot links, caching, and freshness
00:24:55 Cache failures, overload, and recovery
00:31:55 Monitoring, abuse, and final walkthrough
00:36:33 Interview recap and transferable lessons
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.
An estimate is useful when it changes a design decision. Daniel and Maya take an explicit booking workload from daily users to peak requests per second, storage growth, bandwidth, working sets, and concurrent work.
They apply the numbers to servers, databases, caches, and queues, keeping units and assumptions visible. Skew, latency, headroom, and recovery can dominate the average. The interview exercise asks which capacity assumption needs measurement and what changes when a component fails.
Chapters
00:00:00 Welcome and useful capacity estimates
00:01:27 Estimates that change the design
00:04:31 Latency, time, and distance
00:07:30 Daily traffic to peak requests/second
00:12:32 Storage growth and working sets
00:17:38 Bandwidth and transferred bytes
00:21:11 Concurrency versus processing capacity
00:26:09 Database and queue workload estimates
00:30:32 Headroom, skew, and failure capacity
00:33:35 Revising estimates as constraints change
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.
Two regions lose contact after one accepts an update. What may a customer reading from the other region observe? Daniel and Maya use that timeline to explain CAP, then make the stakes concrete by trying to book the last place on a hike.
Linearizability, causal ordering, read-your-writes, monotonic reads, and eventual convergence describe different observable promises. ACID consistency uses another meaning of consistency. The interview requires a guarantee for a particular operation and failure, rather than relying on a database's name.
Chapters
00:00:00 Welcome and two disconnected regions
00:01:29 What users may observe
00:05:12 CAP during a network partition
00:10:26 Tracing an update and a later read
00:15:51 Strong, causal, and session guarantees
00:21:35 ACID consistency versus CAP consistency
00:26:25 Configuration and concrete failures
00:32:08 Choosing consistency for an operation
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.
A cluster adds one server, and modulo hashing sends many existing keys to different owners. Daniel and Maya work through a small example before building the intuition for a consistent-hash ring.
Virtual nodes can improve the distribution of ownership, but they do not make a popular key less popular. The interview separates choosing a destination from copying its data, maintaining replicas, and recovering from failure. Rebalancing still needs an operating plan after the routing calculation is finished.
Chapters
00:00:00 Welcome and changing cluster membership
00:01:32 Key ownership during membership changes
00:05:06 Modulo hashing and key movement
00:09:16 Consistent hashing and the hash ring
00:14:02 Virtual nodes and key distribution
00:18:55 Hot keys versus balanced ownership
00:23:14 Data copying, replicas, and failover
00:31:28 Rebalancing under a new constraint
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.
Adding shards does not divide every kind of work evenly. One popular departure can overload a single owner, while a global report can require many owners to answer. Daniel and Maya examine hotspots, scatter-gather queries, and writes that cross shard boundaries.
Local transactions, distributed coordination, compensation, and derived copies have different failure and recovery costs. Managed databases remove some operating work but leave placement and application guarantees to explain. The discussion follows those responsibilities through changes and migration.
Chapters
00:00:00 Welcome and uneven shard workloads
00:01:26 Locality and distributed work
00:05:20 Hotspots and splitting busy data
00:10:05 Cross-shard queries and scatter-gather
00:15:17 Cross-shard writes and atomicity
00:20:22 Derived copies and failure recovery
00:27:08 Managed databases and data migration
00:32:09 Adapting to a new ownership constraint
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.