cachapa / tudo

A simple to-do app
Apache License 2.0
88 stars 11 forks source link

Questions about fields #38

Closed tim-coder closed 3 months ago

tim-coder commented 3 months ago

Thank you so much for creating the tudo example. I'm learning a lot from it.

I want to make sure I understand your implementation of CRDT. Please let me know if this correct:

To use CRDT for a generic table, the following fields are added:

If this is correct, then I have two questions:

  1. Isn't appending the node ID to the modified field redundant since the node writing the record would know its own ID?
  2. Isn't appending the node ID to the hlc entry redundant, since that value will always be equal to the value of the node_id field? Or is it needed for compatibility with earlier versions of the code?