skip to content
~11 min

Available, as CAP means it

KataTube picks the safe reply. While the link is down, only the EU creates channels. The US data centre answers every request for a new channel with “try later”.

Both data centres are running. One answers, one refuses. CAP looks at the one that refuses.
AliceBerlincreate @novaok, it's yours· EU · runninganswers@nova→AlicesavedKataTube · US · runningrefuses@nova→freeBobBostoncreate @novaerror: try later

Few people notice. Cuts are rare and, in this story, short. Over a year KataTube works 99.99% of the time. That number is its : the share of time a service works for its users. It is what “available” means in everyday speech.

CAP asks a different question. It does not measure a year. It looks at each request.

definitionavailable, in CAP

Every request that reaches a running server gets an answer, not an error. There is no time limit, but the answer must come. This holds even when that server can reach no other.

The US data centre has not crashed. Its servers are running, and refusing. One refused request is enough: this KataTube is not available in CAP's sense, however high its uptime.

uptimeavailable, in CAP
what it isA number: the share of time the service works.Yes or no: a promise about every request.
a server refusesThe number drops a little.The answer is no.
KataTube99.99%no
in one line

In CAP, “available” means every running server answers every request, not that the site is usually up.