Designing Offline-First Sync for a Mobile App
How I design sync for apps that must work without a connection: the local database as the source of truth, an outbox of idempotent changes, cursor-based pulls, tombstones and conflict rules decided per entity.