Implement server sync handler logic #40

Open
opened 2026-10-30 21:03:18 -06:00 by west · 0 comments
Owner

📋 Server-side logic for processing sync requests from clients.

🎯 Acceptance Criteria:

  • Accepts batch outbox actions from client
  • Replays each action against server state (create/update/delete)
  • Detects conflicts: same entity modified on both client and server
  • Resolves conflicts: last-write-wins by entity last_modified timestamp
  • Records conflict resolution in a log (for debugging)
  • Returns server outbox actions that the client does not have
  • Advances server sequence counter
  • All operations are transactional (atomic)
  • Performance tested with 100+ actions per sync

📝 Notes: This works in tandem with the sync endpoint (SRV-7). The endpoint handles HTTP, this handles the actual replay logic.

📋 **Server-side logic for processing sync requests from clients.** 🎯 **Acceptance Criteria:** - [ ] Accepts batch outbox actions from client - [ ] Replays each action against server state (create/update/delete) - [ ] Detects conflicts: same entity modified on both client and server - [ ] Resolves conflicts: last-write-wins by entity last_modified timestamp - [ ] Records conflict resolution in a log (for debugging) - [ ] Returns server outbox actions that the client does not have - [ ] Advances server sequence counter - [ ] All operations are transactional (atomic) - [ ] Performance tested with 100+ actions per sync 📝 **Notes:** This works in tandem with the sync endpoint (SRV-7). The endpoint handles HTTP, this handles the actual replay logic.
Sign in to join this conversation.
No description provided.