Skip to content

feat(sync): offline-first sync with conflict resolution#825

Open
bkennedyshit wants to merge 1 commit intorohitdash08:mainfrom
bkennedyshit:feat/offline-sync
Open

feat(sync): offline-first sync with conflict resolution#825
bkennedyshit wants to merge 1 commit intorohitdash08:mainfrom
bkennedyshit:feat/offline-sync

Conversation

@bkennedyshit
Copy link
Copy Markdown

Closes #98. Redis op queue, 4 conflict strategies (last_write_wins/server_wins/client_wins/merge), sync status. 3 tests.

- queue_operation(): Redis-backed offline op queue per user
- get_pending_ops(): retrieve queued ops for sync
- resolve_conflict(): last_write_wins / server_wins / client_wins / merge strategies
- get_sync_status(): pending_ops + conflict count + in_sync flag
- 3 tests: queue+get, last_write_wins, sync status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Offline-First Sync with Conflict Resolution

1 participant