Skip to content
This repository has been archived by the owner on Jun 16, 2018. It is now read-only.

Apply shadow checksum #8

Open
habuma opened this issue Oct 28, 2014 · 0 comments
Open

Apply shadow checksum #8

habuma opened this issue Oct 28, 2014 · 0 comments

Comments

@habuma
Copy link
Contributor

habuma commented Oct 28, 2014

Per the last paragraph in section 4 of Neil Fraser's Differential Synchronization paper...

However, on a network with best-effort delivery, nothing is guaranteed. Therefore a simple checksum of Client Shadow ought to be sent along with the Edits and compared to Server Shadow after the patches have been applied. If the checksum fails to match, then something went wrong and one side or the other must transmit the whole body of the text to get the two parties back in sync. This will result in data loss equal to one synchronization cycle.

Spring Sync should accept a checksum from the client when applying a patch and verify the shadow's state before applying the patch to the local resource. This could be optional, applying the checksum only if one is provided, proceeding without verification otherwise. Or Spring Sync could be configured to fail if the client does not send a checksum.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

1 participant