Example article.

The subway, the plane, the countryside: the network always drops at the wrong moment. An offline-first app writes to its local database, then sends when it can.

Three principles

  1. The screen reads the local database, never the network.
  2. Every change is a dated, replayable mutation.
  3. The server merges; it doesn't blindly pick a winner.

What it costs

A bit more code up front, far fewer bugs afterwards.