Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is also the way to do it if you want a number that multiple nodes can edit independently.

When you sync back up, do a big tally at the end, and that's your final number.

(This constitutes a CRDT, and is known as the Positive/Negative Counter).



The idea is similar/equivalent to a stack of git deltas yeah? Each line is a change of one of two types and then you combine them to get a net change?


I'm actually not too familiar with git deltas, but that does sound very similar to an Observed/Removed Set, another CRDT.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: