AlgoViz

Inside a key-value store

medium 24 min

A distributed key-value store keeps simple pairs on many machines.

What each level should show

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

  • Mid

    Must show

    • Draws the ring and N replicas
    • Explains coordinator, W and R
    • Knows why mod N is bad

    Will be probed on

    • What W = 2 waits for
    • What happens if one node is down

    Stands out

    Says that a timed-out write has an unknown result.

  • Senior

    Must show

    • Adds virtual nodes and zone placement
    • Explains versions, hints and repair
    • Sizes the cluster from load and storage

    Will be probed on

    • Limits of R + W greater than N
    • Hot keys
    • Catching up after an outage

    Stands out

    Chooses R and W for each feature and gives the reason.

  • Staff

    Must show

    • Chooses between leaderless and consensus from the business rules
    • Plans growth, repair load and failure tests

    Will be probed on

    • Multi-region behaviour
    • How operators see divergence
    • Migration to another store

    Stands out

    States which anomalies the product will show and who agreed to them.