Skip to content
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

Add usage example #81

Open
ngortheone opened this issue Sep 30, 2019 · 1 comment
Open

Add usage example #81

ngortheone opened this issue Sep 30, 2019 · 1 comment

Comments

@ngortheone
Copy link

ngortheone commented Sep 30, 2019

Hi,

Thanks for awesome library. It is quite difficult for a regular developer like me to figure out how to use the library. Could you please add some usage examples that would demonstrate convergence of two replicas with serialization/deserialization to/from JSON in between merges?

Something like

p = initial state
q = initial state

p.someops
q.someops

p_ser:String = p.serialize
q_ser:String = q.serialize
<-- here it would be interesting for app developer to actually see JSON text, as if it is transmitted over network.


p.merge(deserialize(q_ser))
q.merge(deserialize(p_ser))

Thanks!

@Tamriel
Copy link
Contributor

Tamriel commented Jan 29, 2020

They are here: https://github.com/fthomas/crjdt/tree/master/modules/core/src/test/scala/eu/timepit/crjdt/core/examples
They are the same as in the paper and explained there.

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