Design Multi-Device Message Sync for Google Messages RCS
Last updated: November 29, 2026
Quick Overview
Design how Google Messages keeps RCS conversations consistent across a user's phone, the web client, and a newly paired device, including delivery state and end-to-end encryption.
Google
System Design
Software Engineer
Software Engineer
System Design Round
System Design
Hard
0
0
0 solved
Design how Google Messages keeps RCS conversations consistent across a user's phone, the web client, and a newly paired device, including delivery state and end-to-end encryption.
A hard Google onsite question for Android and messaging teams. The interviewer probes ordering, idempotent delivery, offline devices, and how end-to-end encryption constrains what the server can store and sync.
What the Interviewer Expects
- Define a per-conversation sequence and per-device cursors
- Explain store-and-forward with acknowledgements and retries
- Address E2EE: server stores ciphertext and fans out per device
- Handle new device onboarding without breaking encryption
- Discuss delivery and read state as separate replicated events
- Cover offline devices and inbox size limits
Key Topics to Cover
store-and-forward
per-device fan-out
end-to-end encryption
sequence numbers
idempotency keys
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 does a new device get history if the server cannot read messages?
- What happens when a device is offline for 30 days?
- How do you deduplicate a message the phone resent after a timeout?
- How would group chats with 100 members change key management?
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
- Send and receive 1:1 and group RCS messages; every linked device sees the same conversation in the same order.
- Status per message: sent, delivered, read.
- Messages are end-to-end encrypted (Signa...
High-Level Design
- Identity and key directory: each device registers identity and prekeys. A user is a set of devices.
- Messaging Service accepts an envelope per recipient device (the sender encrypts once per...
Submit Your Answer
Markdown supported