Consistency Patterns (Strong, Eventual, Weak) in System Design
Understanding Consistency in Distributed Systems In distributed systems, consistency defines how and when updates to data become visible across multiple nodes or replicas. When a client performs a ...

Source: DEV Community
Understanding Consistency in Distributed Systems In distributed systems, consistency defines how and when updates to data become visible across multiple nodes or replicas. When a client performs a write operation on one node, the system must decide whether subsequent read operations on any other node will immediately reflect that change or tolerate some delay. This decision directly influences availability, latency, throughput, and overall system behavior under network partitions or failures. Consistency patterns provide structured guarantees that help architects balance these competing requirements. The three primary patterns—Strong Consistency, Eventual Consistency, and Weak Consistency—form a spectrum from the strictest guarantees to the most relaxed. Each pattern addresses different real-world demands, from financial accuracy to massive-scale user-generated content. Strong Consistency Strong Consistency, also known as linearizability, guarantees that once a write operation complete