Explained step by step
SLA, SLO and SLI let companies define, track and monitor what they promise about a service. They're more on the business and reliability side than the code side, but they're worth knowing. Together they build user trust and push teams to improve how incidents are handled. It's like a pizza place promising «in 30 minutes or it's free»: the promise, the target and the clock that measures go together.
An SLA (Service Level Agreement) is an agreement between a company and the users of a service. It defines the promises about concrete metrics, like availability, and usually says what happens if they're not met, for example refunding 10% of the bill. It's usually written by business or legal teams, not engineers. It's like a lease: it says what they promise you and what happens if they don't deliver.
An SLO (Service Level Objective) is a promise about a concrete metric, like incident response time or uptime. SLOs live inside the SLA: each one is an individual promise, and meeting them all is meeting the agreement. They must be simple, clear and easy to measure. It's like «delivery in 30 minutes» within a pizza place's rules: 1 clear number that can be checked.
The 3 fit inside each other. The SLA is the full agreement; inside it has several SLOs, each an objective; and each SLO has its SLI, the measurement that says whether it's met. For example: an email service's SLA, with an SLO of 99.9% uptime and an SLO of incident response within 1 hour, and SLIs measuring the real uptime and real response time. It's like an exam: the course syllabus, the minimum grades to pass, and the grade you got.
An SLI (Service Level Indicator) is the metric measured to know whether the SLO is met: the real value. If the SLO says 99.9% uptime, the SLI is the measured uptime, for example 99.95%. To comply with the SLA, the SLI must always meet or exceed the SLO. It's like the grocer's scale: the sign says 1 kg, the scale says how much there really is.
Availability SLOs are usually expressed in «nines». 99% allows about 3.65 days down per year; 99.9%, about 8.8 hours; 99.99%, about 52 minutes; 99.999%, about 5 minutes. Each extra nine divides the downtime by 10 and costs much more to achieve. It's like a train's punctuality: being on time 99 of every 100 days is easy compared to 99,999 of every 100,000.