- Difficulty
- Intermediate
- Time
- 45–60 min
Pick a transport
Choose between server-sent events and a WebSocket for token streaming, and defend that choice against the option you rejected. Name the failure each option handles better.
What to demonstrate: Is the choice made on failure behaviour and operating cost rather than novelty?
Define resume
A connection drops halfway through an answer. State what a reconnecting client may show, how much output is replayed, and how duplicates are suppressed when the server and the client both retry.
What to demonstrate: Do the resume rules survive retries from both ends?
Render incrementally
Markdown arrives faster than the layout can settle. Describe how you would render partial output without reflowing the whole transcript, and where you would deliberately wait.
What to demonstrate: Can the candidate trade instant rendering for a stable reading surface?
Hold position and memory
The reader scrolls back while output continues, and the transcript is larger than the DOM can keep. Explain virtualization, scroll anchoring, and history paging as one design.
What to demonstrate: Can position, memory, and continuity stay consistent together?