
S2 E17 — Design an AI Chat Service: Streaming, Reconnection, and Cancellation
An AI answer is still being generated when its browser connection breaks. Daniel and Maya design a chat service that resumes the existing answer rather than silently starting and charging for another generation.
Conversation branches, generation IDs, durable stream events, cursors, and worker ownership connect the interface to model execution. Cancellation has its own outcome; closing a socket is not enough. Admission, latency, and cost limits test which work the system accepts and how it handles a worker that keeps running.
Chapters
00:00:00 Welcome and an interrupted AI answer
00:03:08 Conversation branches and generation IDs
00:07:09 A complete streamed generation
00:11:05 Durable events, cursors, and reconnection
00:15:41 Cancellation and stale-worker ownership
00:19:40 Admission, latency, and generation cost
00:23:41 Lifecycle monitoring and recovery
00:31:01 Final resume and cancellation 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.
Więcej odcinków z kanału "System Design on the Road"



Nie przegap odcinka z kanału “System Design on the Road”! Subskrybuj bezpłatnie w aplikacji GetPodcast.








