Why it matters
Chat is common design. Understanding shapes realtime apps.
Advertisement
The architecture
WebSocket for realtime.
Message queue for async.
Persistent store for history.
Advertisement
How it works end to end
Delivery guarantees: at-least-once with dedup.
Ordering: per-conversation.
Read receipts + typing indicators.
End-to-end encryption: Signal Protocol.