Repair ordering, message identity and per-device catch-up.
Whole systems · Intermediate · 11 min
Design a Chat System
Separate accepted messages, ordered history and each device’s catch-up position.
1Alice’s device2Connection gateway
- 1Alice’s device → Connection gatewayRequestDefine the messaging promise
- 2Connection gateway → Alice’s deviceReplyReply: Connection gateway
Conceptual illustration · figures do not imply user counts, deployed capacity or replica counts.
2 components visible · Alice’s device + Connection gateway highlighted
Orange: request / query · Blue: reply · Purple: event / control · Arrows show direction; speed is illustrative.
You’ll learn
- Retry identity and membership checks protect message acceptance.
- Ordering needs an explicit scope and authority.
- Recovery must reconcile data, not merely reconnect transport.
PUT THE IDEA TO WORK

