Conflict Resolution Service
Component Detail
Service Layer
high complexity
mobile
2
Dependencies
0
Dependents
3
Entities
0
Integrations
Description
Detects and categorizes data conflicts arising when locally queued mutations clash with server-side state during background sync. Applies resolution strategies (last-write-wins for most entities, manual-review flagging for critical records) and surfaces unresolvable conflicts to the sync status store for user notification on next foreground launch.
conflict-resolution-service
Responsibilities
- Detect version conflicts between local mutations and server state
- Apply last-write-wins resolution for non-critical entities
- Flag critical conflicts (e.g., activity approvals) for manual review
- Record conflict details in the sync status store
Interfaces
detectConflict(localRecord, serverRecord)
resolveConflict(conflict, strategy)
flagForManualReview(conflict)
getUnresolvedConflicts()
clearResolvedConflicts()
Relationships
Dependencies (2)
Components this component depends on
Related Data Entities (3)
Data entities managed by this component