Interview practice question
Message delivery in a chat app
System Design · Messaging and Queues · Experienced
In a chat app, how do you make sure messages are delivered to offline users and shown in the right order?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Persist messages before delivery.
- Per-conversation sequence numbers.
- Online: push via WebSocket.
- Offline: store and push notification; sync on reconnect.
- Client acks and dedup by message ID.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.