Skip to content

JsonPatch and Differential Synchronization algorithm #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
pdorgambide opened this issue Jan 7, 2015 · 2 comments
Open

JsonPatch and Differential Synchronization algorithm #23

pdorgambide opened this issue Jan 7, 2015 · 2 comments

Comments

@pdorgambide
Copy link

To allow implements the Differential Synchronization algorithm (https://neil.fraser.name/writing/sync/) in the use case 4:Guaranteed Delivery Method we need send with patch the client-server version.
Create a JsonVersionedPatch that extends JsonPatc is not possible since JsonPatch is declared as final.
I will like know if you have in consideration implements this great algoritm in the future roadmap.

@fge
Copy link
Collaborator

fge commented Jan 7, 2015

Yow... I need to read that page, but can you give me a quick rundown of what the ultimate goal is?

@pdorgambide
Copy link
Author

You can see the spring slides about the use of patch with diffsync at
http://www.slideshare.net/briancavalier/differential-sync-and-json-patch-s2-gx-2014
The spring-sync implementations is avaliable at https://github.com/spring-projects/spring-sync
I have checked it but seems that depends a lot of the entity type (class, generics, ) and in my test project only works with entities fields and have couldn't synchronized with entities relations (OneToMany)
Looking your library I think that one option will be apply the differential syncrhonization algorimt at JSON format and finally use Jackson to come back to entity context (POJO) and persist the resource.
In my opinion this could decouple the diff algoritm from the Java entities and simplify the code, but maybe I could be wrong. ;o)

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

No branches or pull requests

2 participants