Design Conversation Sync Across Claude Web, Desktop and Mobile

Last updated: November 29, 2026

Quick Overview

Design the backend that keeps a user's chat conversations, including in-progress streamed replies, edits and branches, consistent across the web app, desktop app and mobile apps in near real time.

Anthropic
System Design
Software Engineer
Anthropic
November 29, 2026
Software Engineer
System Design Round
System Design
Medium

0

0

0 solved


Design the backend that keeps a user's chat conversations, including in-progress streamed replies, edits and branches, consistent across the web app, desktop app and mobile apps in near real time.

Claude users switch between web, desktop and phone mid-conversation, and they expect a reply that is still streaming on one device to appear on another. Interviewers use this to probe data modeling for branching conversations, real-time fan-out, offline handling and ordering, rather than a generic chat app with many participants.

What the Interviewer Expects
  • Models a conversation as a tree of messages so edits and regenerations create branches
  • Separates durable message storage from the transient streaming channel
  • Uses per-conversation sequence numbers for ordering and gap detection
  • Describes catch-up sync for a device that was offline
  • Handles concurrent actions from two devices on the same conversation
  • Considers cost of keeping connections open for mostly idle clients
Key Topics to Cover
real-time sync
websockets
data modeling
event ordering
offline clients
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
  • Two devices send a message to the same conversation at the same moment. What does each user see?
  • How would you let a phone that joins mid-stream see the reply generated so far?
  • How would you support projects with shared documents edited by several team members?
  • What changes if a user deletes a conversation while another device is offline?
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

Functional: list and open conversations on any device; send messages; see a streaming reply live on all open devices; edit a past message or regenerate a reply, creating a branch; rename, delete, star...

High-Level Design

Clients talk to an API service for writes and hold one persistent connection (WebSocket, falling back to SSE or long polling) to a sync gateway for pushes. Conversation metadata and messages live in a...


Submit Your Answer
Markdown supported