konsistenssitasojen
Konsistenssitasojen, or consistency levels, is a concept used in distributed computing to describe the guarantees a system provides about the visibility and ordering of updates across replicas. It characterizes how uniformly data appears after writes and during reads, balancing data correctness against latency and available performance. The term is common in databases, distributed caches, and cloud services.
- Strong consistency (linearizability): after a write completes, all reads reflect the new value, with a global
- Sequential consistency: operations appear in a single, global sequence that preserves each process’s order, but not
- Causal consistency: causal relationships between operations are preserved; if one operation causally affects another, the effect
- Eventual consistency: replicas converge over time, but reads may initially show stale data; there is no
- Session or read-your-writes: within a session, a client’s reads reflect its own prior writes; often includes
- Bounded staleness: reads are guaranteed to be within a defined freshness window or version.
Implementation and measurement considerations include replication strategies, quorum-based reads and writes, and the use of clocks
Trade-offs are central: stronger consistency typically increases latency or reduces availability during partitions, whereas weaker levels
---