Design ChatGPT homepage with streaming choices
Company: OpenAI
Role: Software Engineer
Category: ML System Design
Difficulty: hard
Interview Round: Technical Screen
Design the ChatGPT-style homepage end to end. Describe the frontend and backend architecture required to stream model outputs to the browser. Compare Server-Sent Events (SSE) and WebSockets for streaming tokens: when to use each, trade-offs in latency, reliability, backpressure, reconnection, and browser support. Show how you would integrate a Chat Completions API, including authentication, rate limiting, conversation state storage, streaming tokenization, error handling and retries, observability (logs/metrics/traces), and scalability/cost considerations.
Quick Answer: Design ChatGPT homepage with streaming choices evaluates ML product requirements, data/labeling, modeling, serving architecture, evaluation, monitoring, and trade-offs in a realistic interview setting. A strong answer states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.