Skip to content
Theory · Distributed basics · lesson 2 of 8

CAP in the interview

The CAP theorem comes up in almost every system design interview, and almost as often it is stated loosely. The interviewer does not want the three letters spelled out but a decision: what your system does with a given operation when the network is partitioned. Let us work it through on ticket sales: during a partition a purchase and the seat map behave differently.

In this lesson

  • The three letters, precisely
  • P is not a choice
  • A choice per operation
  • Without a partition: PACELC
  • How to say it to the interviewer
  • Common mistake
  • Key points