Re:Automerge: JSON-like data structure for building collabor...
by paulhodge on Monday February 05, 2018 @04:54PM
(#16312593)
The challenge is when there are multiple observers that have a different opinion on what order the commands happened in. Redux and Vuex don't have that problem, that's why it's a nonissue there.
[ Parent
| on HN ]
Re:Automerge: JSON-like data structure for building collabor...
by grrowl on Tuesday February 06, 2018 @07:26AM
(#16315810)
Using lamport/logical timestamps you can ensure a distributed and totally consistent ordering of actions.
I wrote a middleware for Redux which propagates actions peer-to-peer in a consistent order using these timestamps and the scuttlebutt gossip protocol, you might find it interesting. https://github.com/grrowl/redux-scuttlebutt