---
answer: direct
beat: system-design
source: 1 article · updated: August 12, 2026
---

How do you handle ordering when mutations are queued offline and replayed later?

Offline mutations are stored in a queue in the order they were attempted. When connectivity is restored, the queue replays sequentially, not in parallel. Each mutation waits for its server ACK before the next begins. This ensures dependent operations (e.g., create a post, then add a comment) complete in the correct order.

Answered in

Optimistic UI: The Illusion of Instant

Apply mutations locally and reconcile in the background, collapsing perceived latency from 150 ms to instant. Rollback, idempotency keys, offline queues.

Crashtech Editorial August 12, 2026 System Design

Read the full analysis

Other questions this article answers

More system design questions

Every answer on Crashtech is written by the editor of the article it comes from — never auto-summarised. Browse all answers or the System Design beat.