Consistency Trade-offs

Talk it through out loud with your AI coach.

The problem

  • hard
  • Pro

Your app stores data in two data centres, and the network link between them sometimes fails. Using the CAP theorem, explain the choice the system faces during such a failure, and which behaviour you'd want for a shopping basket compared with a bank balance.

What a strong answer covers

  • What the theorem says a system must choose between during a network split.
  • When that choice actually applies, and the trade-off at other times.
  • Which behaviour suits a shopping basket, and why.
  • Which behaviour suits a bank balance, and why.

Common mistake: Saying a system simply picks two of the three properties all the time, rather than facing a choice when the network splits.

Knowing this is half of it. Saying it clearly out loud is the part the coach helps you practise.

Practise it out loud