Design a scalable real-time one-to-one (1:1) chat system. Only single-device (web) usage needs to be supported; group chat, channels, and multi-device sync are explicitly out of scope. The design must address: (1) real-time message delivery between two users; (2) offline message queuing and delivery when the recipient comes back online;…