Question 4 of 10Pro Only
Design a real-time chat system that supports one-on-one messaging, group chats, and online presence indicators for millions of users.
Sample answer preview
A real-time chat system at scale requires careful design across connection management, message delivery, storage, and presence tracking. Here is how I would architect it to support millions of concurrent users.
WebSocketconnection gatewaymessage queuepresencefan-outpub/sub