Design a chat assistant service with multi-question threads
MediumSystem design45 minSWEREPro outline
The question
Design a chat product backed by a large language model. Users keep long threads, and a user may send a second question before the first answer finishes.
What the interviewer is looking for
- Clear data model for threads and messages
- Streaming responses
- A rule for concurrent questions in one thread
- Context window management for long threads
- Reliability: resume after disconnects
Your answer
Saved in this browser only. Nobody else sees it.
Why this question
Written by BlogLLM in the style of a publicly reported Anthropic question type: design a chat service like Claude, including handling several questions in one thread.
Reported in: interviewing.io
Practice question written by BlogLLM based on publicly reported interview formats. Not an official Anthropic question.