OpenAI
S20
HardPremiumDesign a ChatGPT-Style Chat Assistant at Consumer Scale
Design a consumer chat assistant for web and mobile: streamed answers, saved conversations, optional file uploads, tens of millions of daily users.
StreamingConversation StatePrompt CachingAdmission ControlScale
Key Requirements
- Stream answers to web and mobile, and resume a dropped stream without regenerating
- Store conversations and assemble each turn's context within a token budget
- Keep the cached prompt prefix stable as chats grow
- Per-user and global limits, with a queue that has a deadline
- Degrade by tier at peak, visibly, free tier first
Interviewer Follow-ups
- Q1A phone loses its connection halfway through an answer. What happens?
- Q2A chat has 300 turns. What do you send on turn 301?
- Q3Launch traffic is three times the forecast. Who waits, and who gets a smaller model?
Loading...