Design Shared Group Chat Lists That Merge Offline Edits Using CRDTs
Last updated: November 29, 2026
Quick Overview
Design a shared checklist feature inside a WhatsApp group chat, such as a trip packing list, where members can add, check, reorder, and delete items even while offline and everyone ends up with the same list.
Meta
November 29, 20260
0
0 solved
Design a shared checklist feature inside a WhatsApp group chat, such as a trip packing list, where members can add, check, reorder, and delete items even while offline and everyone ends up with the same list.
WhatsApp users are often on flaky networks and expect features to work offline, and group content is end-to-end encrypted so the server cannot merge for them. The interviewer checks whether you recognize that this pushes merging to clients and pick an appropriate CRDT.
What the Interviewer Expects
- Explain why the server cannot resolve conflicts in an encrypted group
- Pick CRDTs for set membership, checked state, and ordering
- Encode operations and deliver them as group messages
- Handle a member joining later and needing the current state
- Bound metadata growth from tombstones
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
- Which CRDT would you use for the checked flag?
- How do you order items so concurrent inserts do not interleave strangely?
- How does a new member get the list without full history?
- What if two people edit the same item's text?
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: create a list in a group; any member adds items, edits text, checks or unchecks, reorders, deletes; works offline and syncs later; all members converge.
Non-functional: end-to-end...
High-Level Design
- Each list is a CRDT document stored locally on each member's device.
- Every local change produces an operation that is encrypted and sent as a special message type through the normal group mess...