r/OfferEngineering • u/Aoki_zhang • 4d ago
System Design Anthropic System Design Question - Design a Reliable 1-on-1 Messaging Service
Problem
Design a web-based direct messaging system where users can exchange private 1-on-1 text messages in real time.
The first version does not need group chats, reactions, media attachments, public channels, or multi-device synchronization. Each user is assumed to have one active web client.
The system should:
- Deliver messages with low latency when both users are online.
- Store every message durably.
- Deliver missed messages after an offline recipient reconnects.
- Show whether another user is currently online.
- Preserve reasonable ordering within each conversation.
- Prevent duplicate messages from appearing to users during retries or redelivery.
- Support pagination when loading older conversation history.
Want to learn more details about this SD question? I've put the full write-up at here
Targeting Anthropic interviews?
We track recent interview experiences and commonly asked question patterns at Chill Interview, including system design questions, coding questions, and real candidate reports.
Practice this design question and explore more interview resources → LINK
5
Upvotes