Module lwwreg

Module lwwreg 

Source
Expand description

Last-Write-Wins (LWW) Register CRDT

The LWW Register always retains the value with the highest timestamp. In case of a tie, the replica with the highest ID wins.

This is a simple eventual-consistency mechanism that resolves concurrent writes by always choosing the “latest” update based on timestamp and replica ordering.

Structs§

LWWRegister
A Last-Write-Wins Register CRDT