Clean record Pending edit(s) Just synced Sync packet
⚠ Couldn't load the 3D engineThree.js failed to load from the CDN. Check your connection and reload.

Offline Sync Queue: Write Coalescing & Payload Compaction

An offline-first mobile app treats the local database as the source of truth and queues every edit while the network is unavailable. This simulator renders that local store as a 3D grid of records: editing while "offline" appends entries to a raw mutation log, and a last-write-wins coalescing step — a plain Map keyed by record id — collapses repeat edits to the same record down to one before the sync round trip. Tune the active record count and offline edit rate to control how often edits collide on the same key, toggle coalescing on or off to compare raw versus compacted payload size, and watch the sync packets fly to the server at a rate set by the bandwidth slider while live readouts track queue length, payload bytes, compression ratio and estimated sync time.