System Design Question Preview
Design a web-based direct messaging system where users can exchange private 1-on-1 messages in real time. The product does not need group chats, public channels, reactions, media attachments, or multi-device sync in the initial version. Each user is assumed to use one active web client.