HomeComputer ScienceConflict Resolution

Mobile Backup Sync Conflict Resolver

Interactive distributed-systems simulator: two mobile devices edit the same record while offline, vector clocks detect whether the edits are causally ordered or truly concurrent, and a CRDT-style merge or last-write-wins policy reconciles the conflict on reconnect.

Computer Science2DEasy60 FPS📱 Mobile-adapted⇄ 3D version
mobile-backup-sync ↗ Open standalone

Offline-first mobile apps let you keep editing when there's no signal, then reconcile with the server once you're back online — the exact problem behind mobile backup and sync. This simulator gives two devices, A and B, a shared record with a counter field and a color field. Edit either device while it's "offline" and its vector clock advances on its own axis. Press reconnect and the algorithm compares vector clocks: if one causally dominates the other it's a clean fast-forward, and if neither does, it's a genuine concurrent conflict resolved either by a lossless CRDT-style merge or by last-write-wins.

⚙ Under the hood

Resolve conflicts when two devices independently edit the same record offline using vector clocks and CRDT merge or last-write-wins policies.

syncconflict resolutionvector clocks

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)