Reliable Message Delivery: Offline Storage and the Sent→Read State Machine
goyalshaliniuk · x · 2026-12-04
Parts 3-4 of a messaging design series. Delivery pipeline: sender submits, Message Service validates and assigns a unique ID, the message is persisted, a delivery event enters a queue, and the Delivery Service routes it to the recipient. For offline users: durably store undelivered messages, track per-recipient delivery state, notify via APNs/FCM when appropriate, deliver pending messages on reconnect, and update acknowledgements. Message states (Sent → Server Accepted → Delivered → Read) must be tracked separately, since server acceptance does not mean recipient delivery.
More from coding & agent
- Multi-Agent Swarms Match But Don't Beat Single Agents, New Replication Finds — rosstaylor90 · 2026-12-04
- How to Design WhatsApp at Scale: Core Architecture Explained — goyalshaliniuk · 2026-12-04
- Agent Evals 101: a 7-step playbook for testing AI agents before production — Solid-Target-530 · 2026-12-04
- Rest of the 13-agent resource list: Magentic-One, Stanford self-improving agents and more — FinanceYF5 · 2026-12-04
- Inkling-2-Mini-pi-adapted tested: same score in 21 min vs 36 min, 43% fewer tokens — dh7net · 2026-12-04
- MCP design question: should a render tool return a link or the file bytes? — Mkhere · 2026-12-04