AlgoViz

The CAP theorem

medium 28 min

When the network between copies of your data breaks, each copy must either refuse some requests or risk answers that disagree.

What each level should show

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

  • Mid

    Must show

    • Defines C, A and P correctly
    • Explains CP and AP during a partition
    • Gives a use for each

    Will be probed on

    • Majority arithmetic
    • Why CA is not a choice

    Stands out

    Chooses for each operation rather than for the product.

  • Senior

    Must show

    • Adds the latency trade-off
    • Designs the merge for AP
    • Says what refused users see

    Will be probed on

    • Limits of quorums
    • Split brain
    • Testing a partition

    Stands out

    Bounds the damage of AP with a business rule.

  • Staff

    Must show

    • Questions brand labels and reads settings
    • Places homes for data to limit refusals
    • Connects to isolation and cost

    Will be probed on

    • One-way partitions
    • Failover that loses writes
    • Proof in plain words

    Stands out

    Turns the theorem into a decision the business can sign.