Beta Phase: Square45 is currently in beta testing. Expect some features or content to be incomplete or missing.
45

Eventual Consistency

A common consistency model in NoSQL, where data updates may not be immediately reflected across all replicas, prioritizing availability.
📜

The statement of the theorem

Consider a distributed system with NN replicas, R={r1,,rN}\mathcal{R} = \{r_1, \dots, r_N\}, and a state variable SS. Let St(ri)S_t(r_i) be the state of replica rir_i at time tt. The system is eventually consistent if, for any write operation WW applied at time t0t_0, the state St(ri)S_{t}(r_i) converges to the final state SS_{\infty} for all riRr_i \in \mathcal{R} as tt \to \infty. Formally, there exists a time TT such that for all tTt \ge T and all ri,rjRr_i, r_j \in \mathcal{R}, St(ri)=St(rj)=SS_t(r_i) = S_t(r_j) = S_{\infty}. This convergence is guaranteed despite potential network partitions.
Source: Wikipedia