Design discussion: Handling conflicts in offline services #253
adrianhall
started this conversation in
Ideas
Replies: 1 comment
-
Hi Adrian, Paul. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I’m wondering about improving the conflict handling in the offline “PushAsync” code. Right now, you have to check the PushResult and divine what to do based on the results. This is less than ideal.
My thought is to provide something on the PushOptions - something like
Let’s say you wanted to use a “last update wins”, you could do something like
The conflicts would then be handled “in-push-operation” rather than after the fact, with no additional operations afterwards - just the single “force” operation to get the client entity up to the server if necessary. Nor would you need to deal with the operations queue.
Wondering:
Appreciate the design discussion with the community!
Beta Was this translation helpful? Give feedback.
All reactions