AlgoViz

Defining high availability

easy 25 min

Availability is the share of time, or of requests, that a system works for its users.

When it comes up

The moments this idea belongs in a design interview, and the moments it does not.

Signals

When to bring it up

You hearSayBecause
"It must always be up"Turn it into a number and a periodAlways is not a target
Payments, calls, emergenciesFour nines or more on that pathA minute is expensive
An internal dashboardTwo or three ninesNobody pays for more
Calls to other companiesTheir SLA is in our chainAvailabilities multiply
Many microservices per pageWhich ones are hard dependencies?Ten at 99.9% give 99.0%

Options

Compare your moves

How many nines do you choose for an online shop?

BreaksFive nines everywhere
How
Say 99.999% because it sounds strong.
Limit
5.3 minutes a year for every page. The design cannot reach it through a 99.95% database, and the cost has no reason.
Choose when
A few core systems where an outage endangers people or a market.
WorksOne number for the whole shop
How
99.9% of requests a month.
Limit
Simple, but treats a failed payment like a failed recommendation.
Choose when
A small product, or the first version of an SLO.
StrongA number per user action
How
Checkout 99.99%, browsing 99.9%, reports 99%. Check each against its hard dependencies.
Limit
More to measure and explain.
Choose when
Actions differ in value, which is nearly always.