AlgoViz

Data integrity and uptime

medium 30 min

When copies of your data cannot talk to each other you must choose: refuse some requests and stay correct, or answer and repair differences later.

Where it shows up

The same pattern appears across everyday software.

  • Amazon's shopping cart

    The Dynamo paper describes a cart that must accept items even while disks and networks fail. Different versions are merged when they are read.

  • etcd in Kubernetes

    Cluster state needs one truth. If etcd loses its majority it refuses writes: running pods continue, but nothing new is scheduled.

  • Bank machines

    Eric Brewer uses them as an example of choosing availability with a limit: during a partition a machine may still pay out, but only up to a limit.

  • DynamoDB

    Reads are eventually consistent by default, and a strongly consistent read of a table is an option on the request.

  • Redis Cluster

    Its specification says plainly that acknowledged writes can be lost during a failover, because replication is asynchronous.

  • DNS

    A huge, always available, eventually consistent system: an old address may be served until its TTL ends.