Design Group Chats Where Several People Share One ChatGPT Thread

Last updated: November 29, 2026

Quick Overview

Design a feature that lets multiple users join a single ChatGPT conversation, see each other's messages and the assistant's replies in real time, and decide when the model should respond.

OpenAI
System Design
Software Engineer
OpenAI
November 29, 2026
Software Engineer
Onsite
System Design
Medium

0

0

0 solved


Design a feature that lets multiple users join a single ChatGPT conversation, see each other's messages and the assistant's replies in real time, and decide when the model should respond.

ChatGPT has been moving from single-player to shared experiences, and this prompt checks whether you can blend a classic real-time messaging design with the quirks of an LLM participant. Interviewers look for clean membership and ordering semantics plus a sensible answer to who pays for and triggers model turns.

What the Interviewer Expects
  • Define membership, invites and permissions for a shared thread
  • Guarantee a single total order of messages per thread
  • Deliver messages and streamed model output to all online members
  • Decide when the assistant replies (mention, toggle, every message) and how context is built
  • Handle privacy: personal memory and custom instructions must not leak into a group
Key Topics to Cover
fan-out
message ordering
WebSockets
presence
access control
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How would you handle 50 people typing at once and the model being asked twice?
  • Whose rate limit and plan is charged for a model turn?
  • How do offline members catch up on a long thread efficiently?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements
  • Create a group thread, invite by link or user ID, roles owner and member, remove members.
  • Messages from humans and the assistant appear for everyone within about 200 ms.
  • The assistant responds w...
High-Level Design
  • Thread service owns metadata and membership in a relational store sharded by thread_id.
  • Message service appends messages with a per-thread sequence number assigned by the shard leader, p...

Submit Your Answer
Markdown supported