Design Unsent Message Draft Sync Across Messenger Devices
Last updated: November 29, 2026
Quick Overview
Design how a half-typed Messenger message on your phone appears in the same chat on the desktop app, and what happens when both devices edit the draft.
Meta
November 29, 20260
0
0 solved
Design how a half-typed Messenger message on your phone appears in the same chat on the desktop app, and what happens when both devices edit the draft.
A small sync problem that Meta interviewers use to see if a candidate can keep scope tight, choose a simple conflict rule, and avoid flooding the backend with every keystroke.
What the Interviewer Expects
- Store drafts per user per thread on the server
- Debounce writes from the client
- Pick a conflict rule (last writer wins with timestamps or versions)
- Push updates to other online devices
- Clear the draft reliably on send
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How often should the client upload while typing?
- What if the user types on both devices at once?
- Should drafts be end-to-end encrypted?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: while typing, the draft is saved; opening the same thread elsewhere shows it; sending clears it everywhere; drafts expire after some days.
Non-functional: cheap (people type a lot...
High-Level Design
- Draft store: key
(user_id, thread_id) -> {text, version, updated_at, device_id}, small rows, sharded by user. - Client: saves locally immediately; uploads after 2 seconds of no typing, or ...