# SLA

> A written promise about how reliable a service will be, and what happens if it is not.

- Level: Basic
- Topics: Cloud
- URL: https://tidbit.legios.com.ar/sla/
- In Spanish: [SLA](https://tidbit.legios.com.ar/es/sla/)

An **SLA** (service level agreement) is the part of a contract where a provider commits to a level of service: usually how much of the time it will be up, sometimes also how fast it will respond or how quickly support will answer. It also says what you get if the promise is broken, which in cloud services is almost always **service credits**, a discount on next month's bill, not a refund for the business you lost.

The famous number is uptime, written as a percentage. It sounds tiny but each extra "nine" matters a lot. **99%** allows roughly 3.65 days of downtime a year. **99.9%** (three nines) allows roughly 8.8 hours a year, or about 43 minutes a month. **99.99%** (four nines) allows roughly 53 minutes a year, about 4 minutes a month. Going from three to four nines usually means running in several availability zones or regions, with automatic failover.

Engineers use two related terms. An **SLI** (service level indicator) is what you actually measure, like the share of requests that succeed. An **SLO** (service level objective) is the internal target for it, usually stricter than the public SLA so there is a safety margin. Read the fine print: an SLA defines what counts as "down", often excludes planned maintenance, and covers only that one service, not the whole system you built on top of it.

## An analogy

A pizza place that promises delivery in 30 minutes or the next pizza is free. The promise tells you what to expect, but a free pizza does not save the dinner party that went hungry.

## Keep in mind

- A contractual promise of service level, usually uptime, with credits if missed.
- 99.9% allows roughly 8.8 hours of downtime a year; 99.99% roughly 53 minutes.
- SLI is what you measure, SLO is the internal target, SLA is the external promise.
- Check the definitions and exclusions; credits rarely cover real losses.

## Go deeper

- [Service-level agreement on Wikipedia](https://en.wikipedia.org/wiki/Service-level_agreement)
- [Service level objectives (Google SRE book)](https://sre.google/sre-book/service-level-objectives/)
- [AWS service level agreements](https://aws.amazon.com/legal/service-level-agreements/)

## Related terms

- [Cloud computing](https://tidbit.legios.com.ar/cloud-computing/): Renting computers over the internet instead of buying your own.
- [Regions and Availability Zones](https://tidbit.legios.com.ar/regions-and-availability-zones/): Where AWS physically lives: cities worldwide, each split into separate data centers.
- [High availability](https://tidbit.legios.com.ar/high-availability/): Designing a system so it keeps working when one of its parts fails.
