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

How does rollback work when the server rejects an optimistic mutation?

When the server responds with an error, the UI reverts the local state to its pre-mutation value, typically showing an error toast. The mutation is then queued with an idempotency key and retried when connectivity is restored or after a backoff delay. Users see a clear error message and the option to retry.

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.