AlgoViz

Dynamo: Amazon's highly available key-value store

medium 35 min

Amazon's shopping cart had to accept every add, even while servers and links failed.

Where it shows up

The same pattern appears across everyday software.

  • Amazon's shopping cart

    The paper's main example. Adds and removes are puts. Divergent carts are merged by business logic, so an add is never lost (§4.4, §6).

  • Session state

    The paper names the service for customer sessions as a user of timestamp-based reconciliation: the version with the largest timestamp wins (§6).

  • Product catalog as a read engine

    Services with many reads and few updates set R = 1 and W = N, sometimes as the authoritative cache in front of heavier stores (§6).

  • Apache Cassandra

    Its documentation describes Dynamo-style consistent hashing with tokens, gossip, hints and Merkle tree repair, with last write wins on timestamps instead of vector clocks.

  • Riak KV

    A Dynamo-style store that returns siblings for concurrent updates and recommends dotted version vectors to keep their number down.

  • Amazon DynamoDB

    Launched in 2012 on the principles of Dynamo, but built as a managed service with a Multi-Paxos leader per partition, per its 2022 paper.