Scale targets: 50M DAU, 10M sockets & <100 ms delivery
Serving **50M DAU** averaging 40 messages/day means **2B messages/day** (`~70K msg/s` peak) and **10 million concurrent persistent connections**.
Unlike read-heavy feeds or URL shorteners, chat is **1:1 write-and-read heavy** with tight latency expectations (`< 100 ms`), strict message ordering, multi-device sync, online indicators, and offline push.
idea:One tuned gateway holds ~150K idle WebSockets in RAM—so 10M live devices require ~67 aligned stateful gateways plus fast cross-node routing.