Software Engineer • Staff-Level
Software Engineer • Staff-Level
High QualityPrep Other System Design Questions Asked by Anthropic
Continue with targeted system design prep from Anthropic's system design questions.
Interview Summary
The Anthropic backend system design screen asked me to design a text messaging platform for roughly 100 million daily active users. The initial scope was intentionally narrow—1:1 text conversations on the web—but the follow-ups went deep into database scalability, offline message recovery, ordering, routing between app servers, replication lag, traffic spikes, caching, and deduplication.
Interview Details
System Design — Large-Scale 1:1 Messaging
The system supported only direct conversations between two users. The scope explicitly excluded:
- Group chats
- Images and video
- Mobile push notifications
The client was web-only, with a target scale of approximately: 100 million DAU. Messages sent to offline users needed to be persisted and delivered or fetched after the recipient returned.
I initially identified requirements around:
- Message persistence
- Message ordering
- Deduplication
- Low latency
- Scalability
My high-level design included a gateway, app servers maintaining WebSocket connections, a message store, and a presence service tracking whether users were online and which server they were connected to. For an online recipient, the message would first be persisted, acknowledged to the sender, then routed to the recipient's app server and pushed over the existing WebSocket connection.
For an offline recipient, the client could later recover missing messages using conversation sequence numbers and its last-seen position.
Follow-Up — Database Scalability at 100M DAU
The interviewer asked how the database would handle the write and read volume at this scale. I initially discussed scaling app servers and using read
Unlock Full Details
Create a free account to unlock this interview experience report.