Design: Chat System — Concept Check
Questions on Design: Chat System. A real-time chat system (WhatsApp, Slack) requires persistent WebSocket connections, message ordering, delivery guarantees (sent/delivered/read), offline message storage, and group messaging.
Questions in this quiz
7 questions on Design: Chat System — Concept Check. Work through them here, then start the quiz to answer them and see your score.
1.A user reports that messages they send are not being received by their friend who is offline. What component should be checked first?
- APresence service
- BWebSocket gateway
- CMessage store
- DPush notification service
2.A chat system is experiencing high latency in message delivery. Which component is most likely causing this issue?
- AWebSocket gateway
- BPresence service
- CPush notification service
- DMessage store
3.In a chat system, a message is sent but not marked as 'delivered' even though the recipient is online. What could be the issue?
- AMessage not stored in the message store
- BPresence service not updated
- CWebSocket gateway not routing correctly
- DPush notification service failure
4.A chat system needs to scale to 10 million concurrent users. What is a primary concern?
- AWebSocket connection memory usage
- BPush notification limits
- CMessage store capacity
- DPresence service accuracy
5.A message is sent in a group chat with 500 members. What is the main challenge in this scenario?
- ATracking delivery receipts
- BEnsuring message ordering
- CFan-out to all members
- DStoring the message
6.Why might a chat system use Cassandra for message storage instead of a relational database?
- ACassandra is optimized for write-heavy operations
- BCassandra supports SQL queries
- CCassandra provides better read performance
- DCassandra is easier to scale vertically
7.A user connects to a chat system but does not receive any messages. What could be the issue?
- AMessage store is full
- BIncorrect last_seen_message_id sent
- CPresence service not updated
- DWebSocket gateway is down