← Questions

Technical recruiter screen: duplicate requests and a streaming chat UI

0
OpenAISystem designLast asked Apr 2026

A system design interview question asked in OpenAI's recruiter screen, last asked Apr 2026. It tests idempotency, streaming and frontend.

The first recruiter call is more technical than most. After the background questions (how much of the last year you spent writing code, whether you lean frontend, backend or full stack, and the languages and frameworks you use every day), expect short design and fundamentals questions:

  1. How do you make sure the same request is never processed twice?
  2. How would you build a chat UI that streams model replies reliably?
  3. A chatbot backend gets a flood of messages: what fails first, and if the bot system goes down, how do you bring it back to its earlier state?
  4. Front-end basics, for example how JavaScript handles threads and the difference between useState and useRef in React.

Short, concrete answers that name the mechanism (idempotency keys, retries, state recovery) land best.

Clarifying questions

  • For duplicate requests: client retries, a queue redelivering messages, or both? Must the side effect happen exactly once?
  • For the streaming chat UI: a web client, over SSE or WebSockets?
  • How deep should each answer go in a recruiter call: a couple of minutes each?

What a strong answer covers

  • Background answers that are concrete: how much of the last year was coding, the stack used daily, one recent project.
  • Duplicates: a client-generated idempotency key stored with the result under a unique index, so the same key returns the stored result; consumers that deduplicate when the queue delivers at least once.
  • Streaming chat: SSE or a WebSocket with message ids and numbered chunks, reconnecting and resuming from the last chunk received, rendering partial Markdown, a stop button, and backoff on errors.
  • A flood of messages: what fails first (provider rate limits, connection limits, growing queues), with rate limiting, queues and shedding; recovery from saved conversation state and from a durable queue of unprocessed messages.
  • Front-end basics: JavaScript runs on one thread with an event loop (Web Workers for parallel work); useState triggers a re-render, useRef holds a mutable value that does not.

Follow-ups

  • How long do you keep idempotency keys, and why?
  • How does the UI show a reply that was cut off mid-stream?
  • What would you change for a chat system used by millions?

Where it's asked

  • OpenAI · Recruiter screen · Last asked Apr 202630 min · Call with a recruiter (sometimes the hiring manager)

What it tests

idempotency · streaming · frontend · recruiter screen

Your canvas
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing