jlongster / crdt-example-app

A full implementation of CRDTs using hybrid logical clocks and a demo app that uses it

Home Page:https://crdt.jlongster.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[question] Is it possible to subscribe dynamically to ToDo notes?

volyx opened this issue · comments

For example, Bob shares the link to subscribe on note22, Alice subscribes on note22. Now Alice gets all updates on note22.

Before:
Alice
-note11
-note12
-note13

Bob
-note21
-note22

After:
Alice
-note11
-note12
-note13
-note22

Bob
-note21
-note22

One of the approaches is that every user has own Merkle tree, and when Alice subscribes on note22, we insert timestamps of note22 to the Alice Merkle tree, so she will get an update on the next sync.