Highest Write Wins flag, register, map and set#40
Conversation
|
Bit lacking on comments now, will add more info later. |
|
@drewhk This looks great at a first overflight. Is it described in some paper, or is it invented by Varga? It will require protobuf serialization, i.e. |
There was a problem hiding this comment.
setValue is a bit strange for an immutable data type, perhaps withValue?
There was a problem hiding this comment.
I was thinking about this. The problem is that a name that is passive does not convey the meaning that you should not just cache True/False values but always operate on the latest value by setting it. I don't know what name would be nice here.
|
I don't know if this is invented or reinvented by me, but I haven't read about such a structure before. I will add the serialization formats later, I just wanted a validation first so I flushed what I had here. |
|
Btw, according to this: http://www.bailis.org/blog/linearizability-versus-serializability/ |
There was a problem hiding this comment.
Trying to understand the end user semantics.
In the case of concurrent updates during a partition the most active replica (or side of the partition) will win. By "most active" I mean changing the flag back and forth most number of times.
Is that correct understanding?
Only for discussion not finished yet