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.

What each level should show

The same question is judged differently for mid, senior and staff.

  • Mid

    Must show

    • Ring with tokens and a preference list
    • N, R, W and what each changes
    • Vector clocks versus timestamps

    Will be probed on

    • Why skip positions in the list
    • What R + W > N promises

    Stands out

    Explains why a read can return two versions and who merges them.

  • Senior

    Must show

    • Sloppy quorum and hinted handoff
    • Merkle anti-entropy and read repair
    • Resurrected deletes and a fix

    Will be probed on

    • When R + W > N fails
    • Adding a node without downtime

    Stands out

    States the trade-off for this product in one sentence and picks N, R, W with reasons.

  • Staff

    Must show

    • Partitioning separate from placement
    • Tail latency: coordinator choice, client routing
    • When not to use leaderless replication

    Will be probed on

    • Dynamo versus DynamoDB
    • Operational cost of every team running a store

    Stands out

    Uses the paper's lessons, including what Amazon changed later, to argue for or against the design.