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”.
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.
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.
| uptime | available, in CAP | |
|---|---|---|
| what it is | A number: the share of time the service works. | Yes or no: a promise about every request. |
| a server refuses | The number drops a little. | The answer is no. |
| KataTube | 99.99% | no |
In CAP, “available” means every running server answers every request, not that the site is usually up.