Availability
Every request gets an answer, even if not with the newest data. It's measured as a percentage of time up.
Example
99.9% availability is about 8.8 hours down per year; 99.99% is about 52 minutes.
Test yourself: Availability
Availability
How is availability computed?
If it was up 99 of 100 hours, availability is 99 / (99 + 1) = 99%.
Availability
99.99% availability is ___ nines.
You count all the 9s: 99.99 has 4. It allows at most 52.6 minutes of downtime per year.
Availability
Two pieces at 99.9% in sequence give a total availability below 99.9%.
In sequence they multiply: 0.999 × 0.999 = 0.998, or 99.8%. Either one failing takes everything down.
0/3
â–¶ PlayLessons that use it
Load balancers
Sharing the work
Clusters
Many machines, one system
CDN
Content close to every user
Availability
Counting the nines
CAP theorem
Pick 2 of 3
PACELC theorem
CAP plus latency
Sharding
Splitting the database into pieces
N-tier architecture
An app in floors
Service bus (ESB)
One hub to integrate everything
SLA, SLO and SLI
Promise, target and measure
The design steps
From data to bottlenecks
Designing a URL shortener
A long link in 7 characters
Designing WhatsApp
2 billion messages a day
Designing Twitter
1 billion tweets a day
Designing Netflix
1 billion videos watched a day
Designing Uber
10 million rides a day
