Design Facebook Messenger or WhatsApp


🙋 Here are some details you should know about this question:

How do you ensure low-latency message delivery (<100ms) across millions of users?

What communication protocol will you use (long polling, WebSockets)?

How do you handle offline users and guarantee eventual delivery?

Where do you store messages - do you persist all, or support auto-deletion?

How will you implement push notifications on iOS/Android reliably?

How do you support multi-device sync (message states consistent across devices)?

How will you manage group messaging - fan-out on write vs fan-out on read?


← Back to Main Table