LWW Register를 사용해보자!

<aside> 💬

https://redundant4u.com/post/crdt

https://blog.stackademic.com/understanding-crdts-and-lww-with-swift-a-deep-dive-dc98205e3aae

</aside>

timestamp

오브젝트가 생성, 수정된 시간 Date 값.

오브젝트를 수신했을 때, 또는 직접 수정 했을 때 같은 오브젝트끼리 timestamp를 비교하여 더 늦게 수정된 것으로 적용..

peerID

timestamp의 값이 같을 경우 peerID를 비교하여 적용..

고민 해봐야할 것들